Skip to content

add showback option to support direct url - #922

Open
SharonStrats wants to merge 2 commits into
stagingfrom
layout-fix
Open

SharonStrats wants to merge 2 commits into
stagingfrom
layout-fix

Conversation

@SharonStrats

@SharonStrats SharonStrats commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Add support for showing the back button so that we can hide it on a direct url since it does not know where to go back to.

Screenshot 2026-11-06 at 5 20 18 PM

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the change adding configurable Back-button visibility.

No open issues 🎉

What changed in this PR

Adds a showBack option to the file explorer so direct resource views can hide the Back button while preserving its default visibility.

Changes:

  • Passes optional showBack configuration through explorer composition and header components.
  • Adds a test confirming that composition forwards showBack: false.
  • Adds a zinc color token and bumps the package version to 5.0.2-7.
File Description
test/​components/​compose-explorer.test.ts Tests forwarding showBack: false to the header.
src/​styles/​theme.css Adds zinc-300 and groups zinc color tokens.
src/​lib/​file-explorer/​compose-explorer.ts Accepts optional showBack, defaulting to true.
src/​components/​file-explorer-header/​FileExplorerHeaderSummary.ts Conditionally renders the Back button.
src/​components/​file-explorer-header/​FileExplorerHeader.ts Exposes showBack and forwards it to the summary.
package.json Bumps the version to 5.0.2-7.
package-lock.json Synchronizes package version metadata.

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants