2.8 KiB
2.8 KiB
phase, plan, subsystem, tags, dependency_graph, tech_stack, key_files, decisions, metrics
| phase | plan | subsystem | tags | dependency_graph | tech_stack | key_files | decisions | metrics | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 27-top-nav-restructure-and-search-bar-rethink | 02 | client-routing |
|
|
|
|
|
|
Phase 27 Plan 02: Setups Elevation and Collection Tab Simplification Summary
One-liner: Setups promoted to standalone /setups route; Collection page reduced to Gear and Planning tabs with Zod .catch("gear") graceful fallback for legacy URLs.
Tasks Completed
| Task | Name | Commit | Files |
|---|---|---|---|
| 1 | Create setups index route | 329bfce |
src/client/routes/setups/index.tsx (created) |
| 2 | Remove Setups tab from Collection page | 7fd9845 |
src/client/routes/collection/index.tsx (modified) |
What Was Built
Task 1 — /setups top-level route
Created src/client/routes/setups/index.tsx using TanStack Router's createFileRoute("/setups/"). The route wraps SetupsView in the standard max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 container, matching the Collection page layout. The TanStack Router dev server auto-regenerates routeTree.gen.ts — file was not edited manually.
Task 2 — Collection page simplified to 2 tabs
Removed the Setups tab from collection/index.tsx:
TAB_ORDERchanged from["gear", "planning", "setups"]to["gear", "planning"]TAB_LABELSreduced to Gear and Planning entriessearchSchemaz.enum updated to["gear", "planning"]with.catch("gear")— old?tab=setupsURLs fall back to Gear tab automaticallySetupsViewimport removed- Conditional render simplified to a binary:
tab === "gear"?<CollectionView />:<PlanningView /> - AnimatePresence, slide variants, and motion.div animation left exactly as-is
Deviations from Plan
None — plan executed exactly as written.
Known Stubs
None.