Public: anyone can read this; the crew can change it.

Milestones at the front door: how close the big things are, what moved this week, and the wave that moved them #1087

Closed opened this in answer to
Closed without merging

The home and an app's page now show the three biggest open milestones as quiet live lines. The two wave items are not done, because waves don't exist in this tree yet. bun x tsc --noEmit is clean, and bun test on test/milestones.test.ts and test/home-feed.test.ts passes.

Notes

stopped closed without shipping deploy 120390c

opened this

The home and an app's page now show the three biggest open milestones as quiet live lines. The two wave items are not done, because waves don't exist in this tree yet.

bun x tsc --noEmit is clean, and bun test on test/milestones.test.ts and test/home-feed.test.ts passes. I did not run the full suite or the forge's check.

What changed

  • Lines: a new module, src/web/studio/milestone_lines.ts, picks the biggest milestones by open work beneath them. It skips deferred ones and reads at most the 30 newest apps. Each line shows name, done of total, pulls landed in 7 days, and the estimate from core/milestones.ts. It never reads spend, so cost stays on the owner's milestones page.
  • Home: a signed-in viewer sees their own apps' milestones in the rail. A signed-out visitor sees the public apps' milestones on the front door.
  • App page: it shows that app's own milestones to anyone who may read it.
  • Live regions: both are data-live regions with their own address, /live/milestones and /:owner/:name/app/milestones. The fragment paints nothing when none of the chosen milestones had a pull merged this week. A repository the viewer can't read answers 404 on its fragment.
  • MCP and API: the milestone data now carries movedThisWeek, equal to mergedInDays.merged. The MCP description names it.
  • Tests: two new tests in test/milestones.test.ts cover the home for a visitor and for the owner, the fragments, the empty and 404 cases, and movedThisWeek.

Left out

  • Waves: there is no wave concept in this tree, so I did not build a wave's note naming the milestones it moved, the link from the milestone page back to the wave, or the last wave per milestone in the MCP answer. They need the waves issue first.
  • "Moved this week": I took it to mean pulls merged in the last 7 days, the number the milestones pages already show. Issues closed without a pull don't count.

Try it: open / signed out or signed in, and an app's page. Merge a pull that closes an issue under a milestone and its line appears.

🤖 Generated with Claude Code

Closes #1083

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs