feat(nav): detail-page nav highlight + breadcrumbs for rate cards/contracts (PMS-312) #173
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-312-detail-nav-highlight-breadcrumb"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements PMS-312.
Problem
Opening a rate-card or contract detail page lost navigation context: the sidebar stopped highlighting the section, and there was no breadcrumb showing where you are.
Changes
src/components/layout.rs:NavItemhighlighted only on exact route equality, so every*Detailpage left its parent list nav unhighlighted (a gap the code comment had already flagged as deferred). Addedsection_route, which maps each detail route to its list route, and used it for the active check. Covers ticket, project, company, contact, contract, rate card, invoice, asset, KB article, and report detail pages.src/pages/contracts.rs: added a breadcrumb to the rate-card detail page (Rate Cards > <name>) and the contract detail page (Contracts > <name>) via the existingBreadcrumbscomponent inPageHeader'sbreadcrumbsslot.Verification
just pre-commit(pinned rust 1.94 = CI) passes: fmt, clippy-D warnings,cargo check --target wasm32-unknown-unknown, all 91 lib tests.Acceptance criteria
🤖 Generated with Claude Code
Opening a rate-card or contract detail page lost navigation context: the sidebar stopped highlighting the section, and there was no breadcrumb. layout.rs: NavItem highlighted only on exact route equality, so every *Detail page left its parent list nav unhighlighted (a gap the code comment had already flagged as deferred). Add section_route, mapping each detail route to its list route, and use it for the active check. Covers ticket, project, company, contact, contract, rate card, invoice, asset, KB article, and report detail pages. contracts.rs: add a breadcrumb to the rate-card detail page ("Rate Cards > <name>") and the contract detail page ("Contracts > <name>") via the existing Breadcrumbs component in PageHeader's breadcrumbs slot. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>