Skip to content

Update downloads tracking snapshot - #27

Merged
N6REJ merged 1 commit into
mainfrom
update-stats
Oct 8, 2026
Merged

N6REJ merged 1 commit into
mainfrom
update-stats

Conversation

@N6REJ

@N6REJ N6REJ commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Automated update of the release download snapshot and charts.

Total: 915
Day: 0
Week: 0
Month: 0

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Refresh release download snapshot and charts for October 8

✨ Enhancement 🕐 Less than 5 minutes

Grey Divider

AI Description

• Add the October 8 snapshot; total downloads remain 915, with no new daily downloads.
• Regenerate download charts to show two dates and the unchanged totals.
• Mark daily data complete while weekly and monthly data remain partial.
Diagram

graph TD
  A(["Downloads action"]) --> B["Snapshot JSON"]
  A --> C["Black charts"] --> E["Stats dashboard"]
  A --> D["Trend SVG"]
Loading
High-Level Assessment

Keep the workflow-generated snapshot and charts together so their dates and values remain consistent. Manually editing the artifacts offers no benefit for this routine refresh.

Files changed (6) +37 / -31

Enhancement (6) +37 / -31
downloads.jsonRecord the October 8 download snapshot +7/-6

Record the October 8 download snapshot

• Adds a second snapshot at 915 total downloads and advances the generation date. The recorded window increases to 90 days, and the daily partial flag clears; weekly and monthly flags remain partial.

stats/downloads.json

daily--black.svgExtend the daily chart through October 8 +6/-5

Extend the daily chart through October 8

• Replaces the single plotted point with a two-date line at zero and updates the generated date.

stats/charts/daily--black.svg

monthly--black.svgExtend the monthly chart through October 8 +6/-5

Extend the monthly chart through October 8

• Shows both snapshot dates at zero and updates the generated date.

stats/charts/monthly--black.svg

total-trend--black.svgShow the unchanged total across two dates +6/-5

Show the unchanged total across two dates

• Plots 915 downloads on both October 7 and October 8 and updates the generated date.

stats/charts/total-trend--black.svg

weekly--black.svgExtend the weekly chart through October 8 +6/-5

Extend the weekly chart through October 8

• Shows both snapshot dates at zero and updates the generated date.

stats/charts/weekly--black.svg

downloads-trend.svgRefresh the separately published total-trend chart +6/-5

Refresh the separately published total-trend chart

• Plots the unchanged 915-download total across both snapshot dates, matching the black-theme total-trend chart.

stats/downloads-trend.svg

@N6REJ
N6REJ merged commit bbac1c0 into main Oct 8, 2026
5 checks passed
@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Dashboard shows stale snapshot coverage 🐞 Bug ≡ Correctness
Description
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.
Code

stats/downloads.json[R14-20]

+    "day": false,
    "week": true,
    "month": true
  },
  "snapshots": {
-    "windowDays": 45,
-    "count": 1,
+    "windowDays": 90,
+    "count": 2,
Evidence
The new JSON reports a 90-day window, two snapshots, and a complete day value, while the published
Markdown dashboard still reports a 45-day window, one snapshot, and all periods as partial. The
workflow explicitly preserves the customized dashboard while replacing the generated stats files, so
these values are not refreshed by this PR's normal automation.

stats/downloads.json[13-25]
stats/dashboard.md[40-46]
.github/workflows/stats-daily-with-chart.yml[100-126]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## 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

Dismiss ↗ | View ↗


2. Offline dashboard shows old totals 🐞 Bug ≡ Correctness
Description
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.
Code

stats/downloads.json[R8-15]

    "total": 915,
    "day": 0,
    "week": 0,
    "month": 0
  },
  "partial": {
-    "day": true,
+    "day": false,
    "week": true,
Evidence
The changed JSON now contains total 915, generated date 2026-10-08, two snapshots, and a 90-day
window, but the HTML fallback still contains total 5924, generated date 2026-10-06, one snapshot,
and a 45-day window. The page renders the fallback before fetching and only replaces it after a
successful fetch; its catch handler leaves the fallback in place, while the workflow preserves the
HTML unchanged.

stats/downloads.json[6-25]
stats/dashboard.html[158-182]
stats/dashboard.html[255-269]
.github/workflows/stats-daily-with-chart.yml[100-126]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## 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

Dismiss ↗ | View ↗


Grey Divider

Context sources
Review mode: Auto: 🚀 Fast: Automated snapshot and chart asset updates are localized and low risk.

Grey Divider

Tip of the day
💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread stats/downloads.json
Comment on lines +14 to +20
"day": false,
"week": true,
"month": true
},
"snapshots": {
"windowDays": 45,
"count": 1,
"windowDays": 90,
"count": 2,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remediation recommended

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

Dismiss ↗ | View ↗

Comment thread stats/downloads.json
Comment on lines 8 to 15
"total": 915,
"day": 0,
"week": 0,
"month": 0
},
"partial": {
"day": true,
"day": false,
"week": true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remediation recommended

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

Dismiss ↗ | View ↗

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.

2 participants