Repository navigation
feat(navigation): open the web's /command-center/<section> addresses - #79
Conversation
Core PRD-292 moves Command Center's tabs to their own addresses (/command-center/board?task_id=<n>, /command-center/questions, ...). Both forms now map to the same screens; the old ?tab= form is unchanged. The section is taken as written (never decoded), the query keeps readQuery's limits, and a path-form link that also names tab is refused. Core writes new-form links only after this ships. Signed-off-by: Gerard Kavanagh <gerard@automatos.app>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
What
The web app (automatos-ai PRD-292) is moving Command Center's tabs to their own addresses:
/command-center(Summary),/command-center/board,/calendar,/activity,/watchlist,/questions,/governance. A ticket link becomes/command-center/board?task_id=<n>[&question=<id>].Go now opens both forms the same way. The old
?tab=form is unchanged, because stored rows keep it forever.How
web-links.ts:routeForchecks first for/command-center/<section>...,bo%61rdorBoardis not a section; those links go where an unknown tab goes.readQuery, limited totask_idandquestion, with the same limits as the query form: at most 16 pairs, no repeated name, values up to 512 characters. A section longer than 512 characters is refused.tab(written or escaped) is refused, the stricter of ignoring and refusing.tabRoute, which both forms use./command-center/*was already covered by the universal-link association (docs/release/association.json,app.jsonpathPrefix). No change there, and no native change.Go still builds two links of its own on the old form:
STUDIO_CALENDAR_PATHandGOVERNANCE_HREF. The web redirects them.Order
Core writes new-form links from the backend (ticket receipts, activity rows) only after a build with this change is on phones. This PR is that first step.
Follows / deviates
Follows the link-table pattern (rule 5.2): one table, rebuilt routes, ids held to
isUsableId. No deviation.Verified
Run on this branch, using the pure-Node checks allowed by CLAUDE.md:
npx vitest run: 589 files, 10,894 tests passed.npm run typecheck: clean.npm run lint: 0 errors. The two warnings are in files this PR does not touch (src/cc/strings.ts,src/styles/strings.ts).Not checked: on a device.
AI-assisted (Claude Code).
Summary by CodeRabbit