1. Add metric to data generation
Update preprocessing so the new metric is written in both formats:yearly/<year>.jsonentriescolumnar/<metric>.npy
columnar/metadata.json(metricslist)
2. Publish updated data files
Copy processed output into:/Users/columbus/Development/idopt/visualsApi/public/data
Then run local checks:
3. Update frontend metric definitions
InvisualWeb, update:
src/lib/colors.ts(METRICSlabel + formatting)src/lib/api.ts(CountyRecordtype if yearly payload adds field)
src/components/map/Tooltip.tsxsrc/components/map/ScaleLegend.tsx
4. Validate UI behavior
- Metric appears in dropdown.
- Choropleth colors render (no all-gray fallback).
- Tooltip shows expected value formatting.
5. Merge order
- Merge
visualsApidata/API changes first. - Merge
visualWebmetric UI changes second.