Repository navigation
Update downloads tracking snapshot - #39
Conversation
PR Summary by QodoRefresh release download snapshot and charts for October 7
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1. Offline dashboard shows an old snapshot
|
| "firstDate": "2026-10-07", | ||
| "lastDate": "2026-10-07", | ||
| "series": { | ||
| "2026-10-06": 2095 | ||
| "2026-10-07": 2095 |
There was a problem hiding this comment.
1. Offline dashboard shows an old snapshot 🐞 Bug ≡ Correctness
The embedded FALLBACK in stats/dashboard.html remains dated October 6 while this update advances the canonical snapshot and chart data to October 7. When fetching downloads.json fails or the page is opened from file://, the dashboard keeps rendering that fallback, showing stale coverage and statistics alongside the current charts.
Agent Prompt
## Issue description
The workflow preserves `stats/dashboard.html` while replacing the generated snapshot, so its embedded fallback remains on the previous snapshot after each daily update. Offline or failed-fetch views can therefore show stale dates and statistics.
## Fix Focus Areas
- stats/downloads.json[6-24]
- stats/dashboard.html[157-170]
- .github/workflows/stats-daily-with-chart.yml[107-130]
## Recommended Fix
Update the embedded `snapshot-data` in `stats/dashboard.html` whenever the generated `stats/downloads.json` changes, preferably by adding a workflow step that replaces the embedded JSON from the current snapshot while preserving the rest of the customized dashboard. Add validation to ensure the fallback and external JSON have matching generated dates, totals, and snapshot series before creating the pull request.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Automated update of the release download snapshot and charts.
Total: 2095
Day: 0
Week: 0
Month: 0