Milestones at the front door (#1083)
The few biggest open milestones sit on a signed-in person's door (/front) and on an app's page, as plain rows: the name, how far it is, what landed in 7 days (or "quiet this week"), and the estimate when there is one. A region paints nothing when none of them moved this week. No spend is ever shown: that is the owner's, on the milestones page.
- Read:
biggestMilestonesinsrc/web/studio/milestone_lines.ts, over the plan the milestones pages use (planFor). At most 3 milestones from at most 30 apps. - Whose apps:
frontApps. A signed-in person gets their own apps (an admin, every one). A signed-out visitor gets no lines on the door, and the terminal does not offer a guest the screen: milestone names and paces are the owner's working plan. An app's page reads only that app, for whoever may read it. - Live:
GET /live/milestonesandGET /:owner/:name/app/milestonesredraw the region onissue.*,pull.mergedandpull.closed. - The wave that moved a milestone: its page says "Last moved in wave X", and its JSON has
lastWaveandmovedThisWeek. The newest 8 wave files are read from git once per repository's latest event (src/story/wave_last.ts), then kept for a minute. - Terminal: the palette entry Milestones (
src/tui/screens/frontms.ts) lists the same rows, gated by the samefrontApps, for a signed-in person;enteropens one on the web. - Tests:
test/milestone-front-door.test.ts,test/tui-front-milestones.test.ts.
A milestone's own page: open work first (#14795)
A milestone's page (/:owner/:name/milestones/:n) lists its limbs and its building, blocked and open issues. Done issues fold behind one link, Show done issues (N); the count line above ("X of Y done") owns the number. The link opens ?done=1, the first 50 done issues, and ?done=N is page N: a line says "page a of b" with Hide done, Previous and Next as plain links. A page past the end answers the last one; anything but a whole number from 1 is the first view. Only the rows of the page asked for are built, so a milestone with 1,500 done issues renders its first view as cheaply as its open work.
- Read:
doneFoldanddonePageOfinsrc/web/pages/milestones.ts. - Terminal: the Milestones screen (
src/tui/screens/limbs.ts) lists each limb with itsdone/total donecount and no per-issue rows, so there is no done list to fold;enteron a limb opens its sub-limbs. - Tests:
test/milestone-done-fold.test.ts,test/milestones.test.ts.