Skip to content

Homepage: drop the last-7-days charts, show crops covered - #91

Merged
masonearles merged 1 commit into
mainfrom
homepage-stats
Oct 21, 2026
Merged

masonearles merged 1 commit into
mainfrom
homepage-stats

Conversation

@masonearles

Copy link
Copy Markdown
Contributor

Summary

  • Removes the two "Last 7 days" chart panels from the homepage. Snapshots in dataset_history.json are hand-run, so the daily forward-filled series was a flat line nearly all week. The unused lastNDaysForwardFilled helper goes with it.
  • Replaces the "CV task types" figure in the stats row with "Crops covered": the number of distinct crop_types values across top-level datasets (614 today). Species rolled up from iNatAg's child datasets are excluded on purpose, since they are ~2,900 wild plant species rather than crops and would swamp the number.
  • taskTypeCount is kept in computeDatasetStats because the datasets page hero still shows it.

Test plan

  • tsc --noEmit clean
  • npm run build succeeds; served locally and checked the homepage: stats row reads 735 / 8,597,576 / 614, "Growth over time" is followed directly by "What's covered"

🤖 Generated with Claude Code

…CV task types

The two "Last 7 days" panels only ever showed a flat line between hand-run snapshots, so
they are removed along with the forward-fill helper that fed them. The stats row's third
figure is now the number of distinct crops named by top-level datasets (species rolled up
from iNatAg's child datasets are excluded, since they are wild plants, not crops).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@masonearles
masonearles merged commit f07c0ff into main Oct 21, 2026
1 check 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