Skip to content

Show document paths in browser tab titles - #217

Merged
ssowonny merged 2 commits into
runbear-io:mainfrom
sseungwonnn:diplay-tab-name
Sep 16, 2026
Merged

ssowonny merged 2 commits into
runbear-io:mainfrom
sseungwonnn:diplay-tab-name

Conversation

@sseungwonnn

@sseungwonnn sseungwonnn commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

TL;DR

  • Browser tabs now show the active path before the project name.
  • Contextual titles no longer spend space on the BearDrive suffix.
  • History and past-version tabs identify both the path and view.
  • Hub and volume titles update through SPA navigation and Back/Forward.

What changed

Added one route-aware title formatter and used it in both HubApp and VolumeApp. Project roots use the project name alone; file, folder, special-view, and past-version routes put the distinguishing route first. Configured branding remains the fallback when no project or volume context is available.

Updated the committed frontend bundle and added unit plus Playwright coverage for exact title formats and browser-history navigation.

Browser preview

Five real Chrome tabs against the seeded hub: project root, two documents, a nested document, and path-scoped History.

Browser tabs showing distinct BearDrive page titles

Verification

  • npm run build
  • node --test src/router.test.ts — 24 passed
  • npm run e2e -- browse.spec.ts --grep "tab title" — 1 passed
  • ./check-dist.shinternal/webapp/static is fresh

Known test gap

npm test still has one pre-existing date-dependent failure in src/lib/heat.test.ts:258: the fixture uses a fixed August 2026 date while staleNote() reads the real current time.

@ssowonny ssowonny 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.

Lgtm!

@ssowonny
ssowonny merged commit c11a64f into runbear-io:main Sep 16, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants