Skip to content

Statistics with charts, and colour in the delivery report - #1

Merged
blaz1988 merged 2 commits into
mainfrom
feature/statistics
Sep 30, 2026
Merged

blaz1988 merged 2 commits into
mainfrom
feature/statistics

Conversation

@blaz1988

Copy link
Copy Markdown
Owner

Where a plan's time went, and a delivery report with colour.

What's new

  • plan-driven stats PLAN: phases (planning, tickets, development, proof), idea-to-delivery time, first-time approvals, criteria proven, the split between agents and people, and every ticket's time.
  • Statistics page in the wizard (/plan_driven/plans/:key/statistics), linked from each plan and from the Proof & report step. It has KPI cards, four charts and a table for each ticket. "Print in the terminal" runs plan-driven stats, like every other button.
  • Statistics section in the delivery report, with the same charts.
  • Charts are SVG drawn in Ruby (PlanDriven::Charts), with no JavaScript and no dependencies:
    • a burn-up of acceptance criteria merged and proven by a passing test, against the scope, with a dot for each evidence run (red when it failed);
    • a timeline for each ticket: queued, agent coding, waiting for review, agent fixing feedback, approved but not merged;
    • a donut showing the agents' and people's share of the time tickets were worked on;
    • a bar showing every criterion's result.
  • Colour in the delivery report: each criterion's result is a green, red, amber or grey pill with a matching edge on its row, failed rows are tinted red, and merged tickets are green. The Markdown shows ✅ ❌ ⏸️ ⚠️ so it reads at a glance on GitHub too. The PDF keeps the colours (print-color-adjust: exact).

Nothing is estimated and no LLM is involved (PlanDriven::Statistics). Every number is the time between two events in the audit trail. The report writes the SVGs next to delivery-report.md, so GitHub renders them, and inlines them in the HTML and PDF, so both stand alone.

Statistics page

Checked

  • 268 specs pass, 10 of them new (statistics_spec.rb, plus the wizard engine now renders the Statistics page). RuboCop is clean.
  • Run against real data in the Gather demo app:
    • PD-3 (delivered): 42 of 42 proven, 91% of the work done by agents, 1 review round.
    • PD-4 (still in development): open tickets run up to the current time.
    • PD-2 (not started yet): the page says statistics start when the tickets are approved.
  • Delivery report for PD-3 written to Markdown, HTML and PDF. The charts are inlined and the colours survive printing.

…delivery report

plan-driven stats, a Statistics page in the wizard and a Statistics section in the delivery
report, all computed from the audit trail. Charts are SVG drawn in Ruby. Acceptance criteria
results in the report are coloured pills.
@blaz1988
blaz1988 merged commit 9c84ff5 into main Sep 30, 2026
33 of 34 checks passed
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