Skip to content

dash: Workflow panel and Spend punchcard#783

Open
iamtoruk wants to merge 1 commit into
mainfrom
feat/dash-workflow-punchcard
Open

dash: Workflow panel and Spend punchcard#783
iamtoruk wants to merge 1 commit into
mainfrom
feat/dash-workflow-punchcard

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

Phase 1 and 2 of the surfacing plan for the web dashboard.

Workflow panel beside Model efficiency: correction rate with count, median time-to-first-edit, pricing coverage (renders only when computable, null is absent and never shown as 100%), and the top reworked files (basenames, edits x sessions). The whole panel gates on hasWorkflowContent, so payloads from older CLIs render today's dashboard unchanged and Model efficiency keeps full width.

Spend punchcard below it: hour-of-day by weekday matrix computed client-side from history.timeline, dot size and intensity encoding spend, per-cell exact-USD tooltips. Honesty rules: empty cells stay empty, the panel hides when the timeline is absent, and coarser-than-hourly periods (month and up produce daily buckets) show a notice pointing at Today or 7 days instead of faking a midnight column.

Verified on a real cache copy: month workflow block corrections 6 / TTFE 6m24s / coverage 95.5% with 8 reworked files; week punchcard covers all 168 cells, peak Fri 02:00 at 96.80 USD. Typecheck and vite build clean; the dash has no test harness, so verification is typecheck, build, and a rendered-DOM smoke pass.

Part of the phased surfacing plan; not for release until the wave is reviewed together.

Workflow panel sits beside Model efficiency and surfaces correction rate
(with count), median time to first edit, pricing coverage (rendered only
when a real number, never as 100% for unknown), and the top reworked files
(basenames with session and edit counts). The whole panel hides when the
payload carries no workflow block, so an older peer renders the dashboard
unchanged.

Spend punchcard is an hour-of-day by weekday matrix computed client-side
from history.timeline, dot size and intensity encoding spend, with a
per-cell tooltip. Cells with no bucket render empty, the panel hides when
the timeline is absent, and daily-bucket periods show an honest notice
instead of faking hour-of-day resolution.
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