Skip to content

fix(aggregator): restore the overview page's group and the /board route - #2604

Merged
dezren39 merged 1 commit into
mainfrom
fix/2580-page-group
Nov 1, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/2580-page-group

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Restore PageDef.group end-to-end rather than removing its uses.

PageDef.group, PAGE_GROUPS and groupedPages() are the nav-section model from #1135, and #1134 legitimately added the overview page that needs a section. The breakage is a bad merge of those two commits (6f3fda03): the conflict in pages.ts was resolved by taking the #1135 side of the board entry and keeping the #1134 overview entry verbatim. That produced two pages on / and an overview entry with no group.

The consumers and tests are authoritative here — the manifest must name one PAGE_GROUPS id per page (groupedPages() drops pages without one, so overview vanished from the nav), and server.ts already serves / as overview and /board as 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:

Also corrected the README route table: / is Overview, /board is the board.

Evidence

Verified in a fresh worktree of origin/main (f9268e24).

  • Before: bunx tsc --noEmit → 3 errors (pages.ts(44,3) group missing; overview.test.ts(11,7) HealthView; overview.test.ts(29,3) AttentionView). bun test → 498 pass, 7 fail:

    (fail) overview front door (#1134) > PAGES registers overview at / and board at /board, routes unique
    (fail) overview front door (#1134) > rendered overview carries every section and links the board at /board
    (fail) attention action controls (#1152/#1156) > pending + applied states render as badges; applied snooze lands in the Snoozed strip
    (fail) pages manifest + slice-3 renders > manifest registers dns + sessions; routes unique
    (fail) the manifest groups every page (#1135) > every page names one of PAGE_GROUPS, and groups have no page-less id
    (fail) the manifest groups every page (#1135) > groupedPages covers each page exactly once
    (fail) aa-explorer manifest + render > PAGES carries the aa-explorer page with unique routes
    
  • After:

    $ bunx tsc --noEmit
    (no output)
    
    $ bun test
     505 pass
     0 fail
     2614 expect() calls
    Ran 505 tests across 41 files.
    

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, /board becomes the board again (matching what server.ts serves), and every page appears in exactly one nav group.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

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.
@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 06:41
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 84c6d25e-6ae8-48fa-84b7-945c2b5ba533
Commits

Reviewing files that changed from the base of the PR and between f9268e2 and 1be5b74.

Files selected for processing: 4
  • pm-stack/aggregator/README.md
  • pm-stack/aggregator/src/pages.ts
  • pm-stack/aggregator/test/actions.test.ts
  • pm-stack/aggregator/test/overview.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T06:42:31.580403Z 1be5b74 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 8aca6ba into main Nov 1, 2026
3 checks passed
@dezren39
dezren39 deleted the fix/2580-page-group branch November 1, 2026 07:23
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