Repository navigation
feat(gui-plugins): show the folder path before the file name in the file viewer - #67800
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
N/A
Type of change
What does this PR do?
The file viewer header in the side panel showed only the file name, so files with the same name in different folders (for example several
README.mdfiles) looked identical. The header now shows the folder path, relative to the project, in faint text before the file name. Files at the project root show only the name.When space runs out, the folder path is cut off first (with
…, keeping the/before the file name), and the file name is cut only once the path is gone. The full path is still shown on hover. The header is shared by every viewer type (Markdown and HTML previews, code, images, media and binary files).There's no feature flag because this is a small visual change to an existing header.
GUI plugin SDK: this changes
packages/gui-plugins, so it needs Hona's OK before merging.How did you verify your code works?
bun typecheckandbun run typecheck:tscinpackages/gui-plugins: passbun test src/fileinpackages/gui-plugins: 196 pass, 0 failbun run lint:changed origin/dev: 0 problems/stays visible when the path is cut.Screenshots / recordings
Before/after use the same window, light theme and tabs. "Before" is from
origin/dev.Markdown preview,
packages/desktop/README.mdBefore:
After:
Long path,
packages/ai/test/fixtures/recordings/azure/responses-continues-after-a-tool-result.jsonBefore:
After:
Checklist