Repository navigation
Update downloads tracking snapshot - #27
Conversation
PR Summary by QodoRefresh release download snapshot and charts for October 8
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1. Dashboard shows stale snapshot coverage
|
| "day": false, | ||
| "week": true, | ||
| "month": true | ||
| }, | ||
| "snapshots": { | ||
| "windowDays": 45, | ||
| "count": 1, | ||
| "windowDays": 90, | ||
| "count": 2, |
There was a problem hiding this comment.
1. Dashboard shows stale snapshot coverage 🐞 Bug ≡ Correctness
stats/dashboard.md still hard-codes the previous 45-day window, one collected snapshot, and fully partial status. The workflow preserves this file while replacing the generated stats directory, so every published dashboard continues to contradict the new JSON metadata.
Agent Prompt
## Issue description
The snapshot update changes the coverage window, snapshot count, and partial flags, but the preserved Markdown dashboard still displays the previous values.
## Fix Focus Areas
- stats/downloads.json[13-25]
- stats/dashboard.md[40-46]
- .github/workflows/stats-daily-with-chart.yml[100-126]
## Recommended Fix
Update the dashboard metadata from the generated JSON during the stats workflow, or generate the Markdown dashboard from the current snapshot so its window, count, dates, and partial status cannot remain stale after an automated snapshot update.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| "total": 915, | ||
| "day": 0, | ||
| "week": 0, | ||
| "month": 0 | ||
| }, | ||
| "partial": { | ||
| "day": true, | ||
| "day": false, | ||
| "week": true, |
There was a problem hiding this comment.
2. Offline dashboard shows old totals 🐞 Bug ≡ Correctness
The embedded snapshot-data fallback in stats/dashboard.html still contains the previous 5,924 total, one snapshot, and 45-day window instead of the new snapshot values. When fetching downloads.json fails for a file:// or offline preview, rendering remains on this stale fallback and shows users obsolete statistics.
Agent Prompt
## Issue description
The dashboard's embedded fallback data is not updated when the automated snapshot changes, causing offline or file-based views to display obsolete totals and coverage.
## Fix Focus Areas
- stats/downloads.json[6-25]
- stats/dashboard.html[158-182]
- stats/dashboard.html[255-269]
- .github/workflows/stats-daily-with-chart.yml[100-126]
## Recommended Fix
Synchronize the `snapshot-data` JSON in `stats/dashboard.html` with the generated `downloads.json` during the stats workflow, or change the build process to regenerate the fallback block whenever the snapshot is replaced.
ⓘ 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: 915
Day: 0
Week: 0
Month: 0