Repository navigation
fix(aggregator): restore the overview page's group and the /board route - #2604
Conversation
The #1134 (overview as the front door, board moves to /board) merge into #1135 (nav groups) resolved pages.ts by taking the #1135 side of the board entry and keeping the new overview entry verbatim. That left the manifest with two pages on / and an overview entry with no group: typecheck failed on PageDef, and the manifest/nav/overview tests failed. Restore both halves of #1134's intent: overview keeps / and gains group: 'overview', board is back on /board (server.ts already routes that way). Also refresh overview.test.ts fixtures for the HealthView and AttentionView fields added since #1134, and stop the actions snooze fixture from expiring as the wall clock passes its fixed NOW.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 13 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
Restore
PageDef.groupend-to-end rather than removing its uses.PageDef.group,PAGE_GROUPSandgroupedPages()are the nav-section model from #1135, and #1134 legitimately added theoverviewpage that needs a section. The breakage is a bad merge of those two commits (6f3fda03): the conflict inpages.tswas resolved by taking the #1135 side of theboardentry and keeping the #1134overviewentry verbatim. That produced two pages on/and anoverviewentry with nogroup.The consumers and tests are authoritative here — the manifest must name one
PAGE_GROUPSid per page (groupedPages()drops pages without one, sooverviewvanished from the nav), andserver.tsalready serves/as overview and/boardas board. So the fix restores both halves of #1134's intent:PAGES overview route "/" api /api/overview.json + group "overview" board route "/" → route "/board" group "overview"Alongside the manifest:
test/overview.test.tsfixtures are refreshed for fields added toHealthView(version,itemsCoverage) andAttentionView(watchdog) after impl(aggregator): make / the stack front door - overview of all projects, attention, health, quotas (board moves to /board) #1134 — these were 2 of the 3 typecheck errors.test/actions.test.ts's applied-snooze fixture measureduntilfrom its fixed pastNOW, so it silently expired once the wall clock passed it (render-time suppression usesDate.now()). The snooze is now live at render, which is what the test is asserting.Also corrected the README route table:
/is Overview,/boardis the board.Evidence
Verified in a fresh worktree of
origin/main(f9268e24).Before:
bunx tsc --noEmit→ 3 errors (pages.ts(44,3)groupmissing;overview.test.ts(11,7)HealthView;overview.test.ts(29,3)AttentionView).bun test→ 498 pass, 7 fail:After:
Merge Danger
Door: two-way — the manifest route/group values and test fixtures are trivially revertible.
Blast Radius: the aggregator nav and page manifest only;
/stays Overview,/boardbecomes the board again (matching whatserver.tsserves), and every page appears in exactly one nav group.Need help on this PR? Tag
@codesmith-botwith what you need.