Skip to content

refactor: improve and unify top bar page title logic#30

Closed
poketonova wants to merge 1 commit into
mainfrom
dev-agent-improvement-2026-06-13
Closed

refactor: improve and unify top bar page title logic#30
poketonova wants to merge 1 commit into
mainfrom
dev-agent-improvement-2026-06-13

Conversation

@poketonova

Copy link
Copy Markdown
Collaborator

This PR refactors the currentPageTitle computed property in App.vue to leverage the meta.title already defined in the router configuration.

Pro Value:

  • Consistency: Ensures the title displayed in the mobile top bar matches the browser tab title and the SEO meta tags.
  • Dynamic Context: Adds support for displaying the actual name of the deck currently being edited in the Deck Builder, providing better orientation for users.
  • Maintainability: Simplifies the title logic by removing a large hardcoded if/else block and automatically supporting new routes that define a meta.title.
  • Completeness: Fixes missing titles for several pages on mobile, such as Decks, Meta Decks, and the Shelf Guide.

Automated contribution by dev-agent.

- Use route.meta.title as the base for page titles to ensure consistency with browser tab titles.
- Implement dynamic deck name in the top bar when using the Deck Builder.
- Add support for missing route titles in the mobile top bar (Decks, Meta Decks, Shelf Guide).
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pokemon-collectr Ready Ready Preview, Comment Jun 13, 2026 3:02pm

poketonova added a commit that referenced this pull request Jul 18, 2026
…itle (#52)

- currentPageTitle now falls back to route.meta.title (fixes missing
  titles for Decks, Meta Decks, Deck Builder, ShelfGuide, designs)
- DeckBuilder title shows the deck's name (from #30, without its
  unrelated SVG mutation)
- TAB_FOR_ROUTE: BoothDisplay/BoothTable map to booth tab; Settings,
  Terms, ShelfGuide mapped (from #48, without its .value-removal
  regression)
- Remove aria-hidden from .topbar-page (from #28): no aria-live
  route announcer exists in the codebase, so no duplicated
  screen-reader output; makes page context available to SR users

Co-authored-by: novaoc <novaoc@users.noreply.github.com>
@poketonova

Copy link
Copy Markdown
Collaborator Author

Closing without merging. This branch contains an unrelated one-character mutation of the settings-gear SVG path data. The deck-name page title behavior was reimplemented cleanly in #52 (merged).

@poketonova poketonova closed this Jul 18, 2026
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.

1 participant