Skip to content

feat(gui-plugins): show the folder path before the file name in the file viewer - #67800

Merged
usrnk1 merged 2 commits into
devfrom
file-header-path
Dec 2, 2026
Merged

usrnk1 merged 2 commits into
devfrom
file-header-path

Conversation

@usrnk1

@usrnk1 usrnk1 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

N/A

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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.md files) 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 typecheck and bun run typecheck:tsc in packages/gui-plugins: pass
  • bun test src/file in packages/gui-plugins: 196 pass, 0 fail
  • bun run lint:changed origin/dev: 0 problems
  • In the web app, checked a root-level file, a nested Markdown preview, and a long nested JSON path at several panel widths. The file name no longer runs past the edge, and the / 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.md

Before:

After:

Long path, packages/ai/test/fixtures/recordings/azure/responses-continues-after-a-tool-result.json

Before:

After:

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@usrnk1
usrnk1 enabled auto-merge (squash) December 2, 2026 14:51
@usrnk1
usrnk1 merged commit a29a810 into dev Dec 2, 2026
10 checks passed
@usrnk1
usrnk1 deleted the file-header-path branch December 2, 2026 14:52
@amrkmn amrkmn mentioned this pull request Dec 3, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant