Repository navigation
Set the browser tab title from the page being viewed - #33
Merged
Merged
Conversation
Every route rendered the static "NotDrive" title from index.html, so a window full of tabs was indistinguishable. Add a useDocumentTitle hook and call it from each route with the same string the page shows as its h1, producing titles like "Sprint 71 · NotDrive". Page name leads so it survives tab truncation; blank or still-loading names fall back to the bare app name, and unmounting resets the title so a route that doesn't set one can't inherit the previous page's name. On the item page the hook tracks the live title input, so renaming a page updates the tab as you type. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gu5xuW77zX5amWS2xJrqUu
swapnadeepmohapatra
approved these changes
Aug 11, 2026
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.
Every route rendered the static "NotDrive" title from
index.html, so a window full of tabs was indistinguishable. This adds auseDocumentTitlehook and calls it from each route with the same string the page shows as itsh1, producing titles likeSprint 71 · NotDrive.ViewContainercovers workspace home, favorites, saved views and tag pages in one place.WorkspacePickeris skipped deliberately — it's a pure redirect with no heading.Testing
pnpm lint,pnpm typecheck, and the web vitest suite all pass (16 tests, including 4 new ones forformatDocumentTitle).🤖 Generated with Claude Code