Skip to content

refactor: improve navigation tab mapping and page title logic#48

Open
poketonova wants to merge 1 commit into
mainfrom
dev-agent-app-navigation-improvement-2026-07-05
Open

refactor: improve navigation tab mapping and page title logic#48
poketonova wants to merge 1 commit into
mainfrom
dev-agent-app-navigation-improvement-2026-07-05

Conversation

@poketonova

Copy link
Copy Markdown
Collaborator

This automated PR improves the navigation and title logic in App.vue:

  1. Simplifies currentPageTitle: Instead of manually mapping route names to titles (which was incomplete and redundant), it now uses route.meta.title from the router configuration as the default source. Special handling remains for dynamic portfolio names.
  2. Extends TAB_FOR_ROUTE: Missing routes (like MetaDecks, BoothDisplay, Settings, etc.) are now correctly mapped to their respective navigation tabs, ensuring the active state is preserved during deep navigation.
  3. Consistency: Ensures that the displayed page title in the top bar matches the document title set by the router.

Pro Value: This change reduces manual maintenance overhead for new routes and ensures a more consistent UI state across the application's expanding feature set.

@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
pokemon-collectr Error Error Jul 5, 2026 3:01pm

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