Skip to content

feat(dashboard): presentation-ready chart export PNG/PDF with glossary (#106)#137

Merged
William-Hill merged 2 commits into
mainfrom
feat/issue-106-chart-export-png-pdf
May 3, 2026
Merged

feat(dashboard): presentation-ready chart export PNG/PDF with glossary (#106)#137
William-Hill merged 2 commits into
mainfrom
feat/issue-106-chart-export-png-pdf

Conversation

@William-Hill
Copy link
Copy Markdown
Collaborator

Summary

Closes #106 (or link when issue exists).

Adds a per-chart Export menu on the home dashboard Recharts and readiness distribution cards: CSV, PNG, and PDF. Exports include title, glossary Plain English blurb (1–2 sentences), data source + generated date, and Bishop State branding footer.

Implementation notes

  • Client-side capture: html-to-image → PNG; jspdf embeds PNG for PDF.
  • Filenames: bishop-state-community-college_<chart-slug>_YYYY-MM-DD.{csv,png,pdf}.
  • Glossary text is aligned with content/metric-glossary.md via lib/chart-export-glossary.ts; coverage test extended in metric-glossary-coverage.test.ts.
  • Shared helpers: chart-export-csv.ts, chart-export-card-meta.tsx, chart-export-capture.ts.

Charts covered

  • Risk Alert Distribution, Retention Risk Funnel
  • Readiness Level Distribution, Score Distribution

Out of scope (per issue)

  • PPTX / bulk deck; courses page charts unchanged.

Verify

  • cd codebenders-dashboard && npm run test && npm run build

Made with Cursor

William-Hill and others added 2 commits May 3, 2026 13:49
Add per-chart Export menu (CSV, PNG, PDF) on home risk/retention charts and
readiness distribution cards. Captions use Plain English lines from the metric
glossary, data source and generated date, and institution branding. Filenames
follow bishop-state-community-college_<chart-slug>_YYYY-MM-DD. Client-side
capture via html-to-image; PDF wraps the PNG with jsPDF.

Co-authored-by: Cursor <cursoragent@cursor.com>
Extract chart-export-csv, chart-export-card-meta, and shared download/CSV
helpers; keep behavior identical to PNG/PDF glossary export.

Co-authored-by: Cursor <cursoragent@cursor.com>
@William-Hill William-Hill merged commit ac96b01 into main May 3, 2026
2 checks passed
@William-Hill William-Hill deleted the feat/issue-106-chart-export-png-pdf branch May 3, 2026 18:39
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.

feat: presentation-ready chart export (PNG/PDF) with definitions baked in

1 participant