Skip to content

feat(site): chart wheel readiness over time with version upgrades and latest label (#78) - #143

Merged
patrickballard merged 3 commits into
wheelgap:mainfrom
dianatofficial:feat/home-readiness-chart-78
Nov 17, 2026
Merged

patrickballard merged 3 commits into
wheelgap:mainfrom
dianatofficial:feat/home-readiness-chart-78

Conversation

@dianatofficial

Copy link
Copy Markdown
Contributor

Resolves #78

Summary

Tracks and displays wheel readiness per target over time across nightly scans, highlighting version transitions and latest coverage:

  • History Capping & Version Marks (scripts/update_history.py):
    • Added MAX_DAYS = 730 capping data/history.json at 2 years of daily scans so the repository stays lightweight over time.
    • Added version_marks(history) identifying the initial scan date for each new wheelgap release.
  • Chart Series Extraction (site/logic.js):
    • Added chartSeries(history, label) producing normalized per-target data points with date, coverage percentage (including Pyodide bundled builds), raw package counts, and upgrade version markers when wheelgap is upgraded across scans.
  • Home Page Charts & Latest Point Labels (site/app.js, site/home.css, site/style.css):
    • Rendered inline SVG per-target readiness charts with padding for the latest point label (<text class="spark-label">...%</text>).
    • Marked points where wheelgap was upgraded with distinct upgrade lines (.spark-upgrade-line), upgrade marker circles (.spark-upgrade), tooltips, and screen-reader accessible attributes.
    • Updated renderTrends() #trend-note to explicitly mention that latest points are labelled and version upgrade points are marked.
  • Unit Tests:
    • tests/test_scripts.py: covered history capping at max_days and version_marks detection.
    • tests/site/logic.test.js: covered chartSeries percentage calculations, bundled handling, upgrade detection, and malformed history safety.
    • tests/site/app.test.js: covered SVG markup generation with latest label and upgrade lines.

@patrickballard

Copy link
Copy Markdown
Contributor

Thanks @dianatofficial, this looks good overall: the readiness chart is a nice addition to the home page, and it comes with tests for the series maths, the version marks and the history cap.

Because it changes scripts/update_history.py (part of the nightly scan, and it caps data/history.json), Patrick will review and merge this one himself.

(Review assisted by Claude.)

@dianatofficial
dianatofficial force-pushed the feat/home-readiness-chart-78 branch from cd6d18a to 57b60b9 Compare November 17, 2026 09:20
@patrickballard

Copy link
Copy Markdown
Contributor

Thanks for the update, @dianatofficial! The new commits look fine. This PR still changes scripts/update_history.py, so it stays with Patrick to review and merge himself. Heads-up: it currently conflicts with main, so he'll sort that out when he gets to it.

(Review assisted by Claude.)

@dianatofficial
dianatofficial force-pushed the feat/home-readiness-chart-78 branch from 57b60b9 to 571ee96 Compare November 17, 2026 09:55
@patrickballard

Copy link
Copy Markdown
Contributor

Thanks for the rebase, @dianatofficial! It now merges cleanly with main. It still changes scripts/update_history.py (part of the nightly scan), so Patrick will review and merge this one himself.

(Review assisted by Claude.)

patrickballard and others added 2 commits November 17, 2026 11:46
…ghts, tighten validation (wheelgap#78)

- The trend note said the Pyodide sparkline was PyPI wheels only; it now counts
  Pyodide's own builds like the percentages, so say that.
- Mark the first night Pyodide's own builds were counted as well as wheelgap
  version changes (neither is like for like, wheelgap#58), and call it a version change.
- chartSeries validates counts with isCount, so a malformed history entry is skipped.
- Use the --amber token; drop the unused style.css rules, the dead fallback in
  coverageSeries and the unused version_marks().

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patrickballard
patrickballard merged commit 2dd5d46 into wheelgap:main Nov 17, 2026
1 check passed
@patrickballard

Copy link
Copy Markdown
Contributor

Merged, thanks @dianatofficial! The readiness chart is a great addition to the home page. Before merging I pushed a few small fixes:

  • the Pyodide note now says the line counts Pyodide's own builds, like the percentages;
  • the first night those builds were counted is marked, along with wheelgap version changes;
  • the history validation is stricter.

If you'd like another, wheelgap/wheelgap#463 (--from-log for Poetry and PDM logs) is open.

(Reply assisted by Claude.)

patrickballard added a commit to dianatofficial/tracker that referenced this pull request Nov 17, 2026
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.

Home page: wheel readiness per platform over time

2 participants