Skip to content

Refactor: Dynamic page titles from router metadata in App.vue#38

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

Refactor: Dynamic page titles from router metadata in App.vue#38
poketonova wants to merge 1 commit into
mainfrom
dev-agent-improvement-2026-06-21

Conversation

@poketonova

Copy link
Copy Markdown
Collaborator

This automated PR improves the maintainability of the App.vue component by refactoring the currentPageTitle computed property.

Key Improvements:

  • Dynamic Title Resolution: Instead of a large hardcoded if/else block, the component now pulls page titles directly from the router's metadata.
  • Improved Coverage: Routes like "Meta Decks", "Deck Builder", and "How Shelves Work" now correctly display their titles in the top bar, which previously defaulted to "Rarebox".
  • Better Maintainability: Future routes added to router/index.js with a meta.title will automatically be supported without requiring changes to App.vue.

This change reduces code duplication and leverages the existing router structure for a more robust UI.

@vercel

vercel Bot commented Jun 21, 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 21, 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