feat(sprint4): agile reports β burndown, velocity, CFD, PDF export#255
Merged
Conversation
S4-01 burndown: Sprints/burndown.js now also computes story points (totalPoints + per-day remainingPoints/idealPoints) alongside the existing count/hours, exposed at GET /api/v1/agile/burndown (query-aware, reuses the existing handler). S4-02 velocity + S4-03 CFD: new Modules/AgileReports/ β GET /api/v1/agile/velocity (committed vs completed points per sprint + rolling-3 avg) and /cfd (status-band counts per day). Computed on-the-fly from tasks + Task_Status history instead of a snapshot cron: the cron is production-only (untestable locally) and history already holds the transitions, so no new collection/cron and it works immediately. S4-04 PDF: new Modules/Export/ β POST /api/v1/export/pdf renders a branded PDF from a client payload (table rows + chart dataURI images) via pdfmake (lazy-required so a missing install never breaks startup; standard Helvetica font). Export PDF buttons on each Reports chart. Frontend: views/Projects/Reports/ (ReportsView + Burndown/Velocity/CFD ApexCharts). Reports added as a first-class add/removable view via the +View catalog (projectTabs response injection + ViewsDropdown preview + projectComponentsIcons + i18n). No DB schema change; backend suite unaffected (208 pass). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the βοΈ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sprint 4 β Agile Core II (Reports)
Implements all four Sprint 4 tasks (AHE-3706β¦3709) on a single branch, off staging.
Included
Sprints/burndown.jsnow also computes story points (totalPoints + per-day remainingPoints/idealPoints) alongside the existing count/hours; exposed atGET /api/v1/agile/burndown. FrontendBurndownChart.vue(sprint picker, Points/Tasks toggle, ideal vs remaining).GET /api/v1/agile/velocity(committed vs completed points per sprint + rolling-3 average) +VelocityChart.vue.GET /api/v1/agile/cfd(status-band counts/day, 30d) +CFDChart.vue(stacked area).POST /api/v1/export/pdf(pdfmake, lazy-loaded, standard fonts). Export PDF on each Reports chart.+ Viewcatalog (burndown / velocity / CFD as sub-tabs).Architecture note
The plan proposed a daily snapshot cron β
SPRINT_SNAPSHOTS. I compute the reports on-the-fly fromtasks+Task_Statushistory instead: crons run production-only here (snapshots would never populate during local/dev testing) and history already records the transitions the planned "backfill" would read. Net: no cron, no new collection, testable immediately, zero schema change.Scope
Modules/AgileReports/,Modules/Export/,frontend/.../Projects/Reports/.Sprints/burndown.js,index.js,package.json(+lock β pdfmake),projectTabs/controller.js(catalog injection),ViewsDropdown.vue,commonFunction.js(Reports icon),en.js(labels),Projects.vue(getView + Reports layout).Verified
Notes / caveats
npm installrequired for the PDF endpoint (pdfmake added to deps).π€ Generated with Claude Code