How chinmaye5/m4c_assignment works
This Next.js app turns monthly school-response and grant CSV data into two user-facing results: a filterable PBL program review and a traceable grant-report preview. The workflow loads normalized data, computes metrics and risk explanations, then renders summaries or grant facts, finance, milestones, media, and tagged report sentences. CSV normalization is documented, but its seed script is excluded as setup machinery. Edges are limited to relationships visible in excerpts or stated in the README; unsampled capabilities use supported directory paths.
Main entry points: grants/page.tsx Grant report view · grants.ts Grant facts and writer · app/page.tsx Review dashboard · data.ts Data loader
Components 18
Program Review
- Review dashboard
app/page.tsx - Meeting summary
lib/metrics.ts
Grant Reporting
- Grant report view
app/grants/page.tsx - Copy and print
app/CopyButton.tsx - Grant facts and writer
lib/grants.ts - Finance and milestones
lib/grants.ts - Evidence and media
lib/grants.ts
Data and Analysis
- Metrics and rankings
lib/metrics.ts - Risk classification
lib/risk.ts - Data loader
lib/data.ts
Source Data
- Monthly PBL responses
data/pbl - Grant finance and profile
data/grant/01_Grant_Profile_and_Finance.csv - Grant performance
data/grant/02_Grant_Performance_and_Report_Material.csv - Evidence index
data/grant/03_Evidence_and_Media_Index.csv - Normalized data file
- Evidence images
public/evidence
Other components
- Program reviewer
- Grant reporter
Connections 23
- Program reviewer → Review dashboard: filters review
app/page.tsx - Review dashboard → Data loader: reads schools
app/page.tsx - Review dashboard → Metrics and rankings: computes dashboard
app/page.tsx - Review dashboard → Risk classification: uses thresholds
app/page.tsx - Metrics and rankings → Data loader: selects rows
lib/metrics.ts - Metrics and rankings → Risk classification: classifies scores
lib/metrics.ts - Review dashboard → Meeting summary: renders summary
app/page.tsx - Grant reporter → Grant report view: chooses report
app/grants/page.tsx - Grant report view → Data loader: reads months
app/grants/page.tsx - Grant report view → Grant facts and writer: requests facts
app/grants/page.tsx - Grant report view → Risk classification: labels statuses
app/grants/page.tsx - Grant facts and writer → Data loader: reads grant data
lib/grants.ts - Grant facts and writer → Metrics and rankings: summarizes schools
lib/grants.ts - Grant facts and writer → Risk classification: classifies facts
lib/grants.ts - Grant report view → Copy and print: provides report text
app/grants/page.tsx - Grant report view → Evidence images: renders images
app/grants/page.tsx - Monthly PBL responses → Normalized data file: normalized into
README.md - Grant finance and profile → Normalized data file: normalized into
README.md - Grant performance → Normalized data file: normalized into
README.md - Evidence index → Normalized data file: normalized into
README.md - Data loader → Normalized data file: loads JSON
lib/data.ts - Grant facts and writer → Finance and milestones: computes finance
lib/grants.ts - Grant facts and writer → Evidence and media: selects linked media
lib/grants.ts