Repository navigation
feat(pm-stack): render flow analytics charts on Roadmap and Projects from the #4829 twin (#4830) - #8410
Conversation
Pre-merge checks:
|
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8431c4f1df
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…istory (Codex P2 x2, #4830)
Closes #4830.
Step 3 of the #1281 split: the Projects/Roadmap pages now render the #4829 flow analytics as charts.
What renders, and where
src/flow-charts.ts: per group (project/epic subject, plus the explicit unassigned group) a weekly-throughput SVG bar chart and a time-in-status stacked bar with an exact-value legend, preceded by the stated computation window.renderRoadmap, section appended after the roadmap body) and the Projects page — which since dashboard: clean up the page list (12 registered pages, overlaps to resolve) #1497 is the #projects-pool section of /program (renderProgrampool section). Both handlers compute the twin exactly as/api/flow-analytics.jsondoes (computeFlowAnalytics(await itemHistoryStore.readAll())) and pass that object in; the renderers take it as an optional input, so other callers are unchanged.Acceptance mapping
test/flow-charts-4830.test.tsasserts, for a fixture window, that every group/week/status value in the twin appears in the HTML with the twin's own number, including the known fixture values (Done 21 / In Progress 14 / Todo 7 item-days; completions 1, 1, 0).Tests
bun test test/flow-charts-4830.test.ts test/flow-analytics-4829.test.ts— 10 pass.Codex P2 fixes (head after first review)
src/ui.css(bar/value/label/axis + a six-step time-in-status palette, dark base with light-theme overrides) and the committedsrc/assets/app.cssregenerated viabun run build:css— the charts no longer render default-black on the dark page.