Skip to content

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

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

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

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