Add interactive download statistics dashboard with GitHub Pages deployment#15
Merged
Merged
Conversation
…yment Co-authored-by: hechth <12066490+hechth@users.noreply.github.com> Agent-Logs-Url: https://github.com/RECETOX/specdatri_reporting/sessions/c9d3775d-5c9c-4145-8b29-c9cd5be0882d
Copilot
AI
changed the title
[WIP] Add interactive dashboard for download statistics
Add interactive download statistics dashboard with GitHub Pages deployment
Mar 25, 2026
Member
|
@copilot would it make sense to use some software framework to build the dashboard, rather than using pure plotly? |
Co-authored-by: hechth <12066490+hechth@users.noreply.github.com> Agent-Logs-Url: https://github.com/RECETOX/specdatri_reporting/sessions/36060020-ecc3-4977-be17-77149a910c33
Contributor
Author
Yes — I switched from manually-crafted Plotly JSON to Altair (commit f1655fd), a declarative Python visualization framework built on the Vega-Lite grammar. Key reasons Altair fits well here:
Server-based frameworks (Dash, Streamlit, Panel in server mode) were ruled out because GitHub Pages only serves static files. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repo collects download stats across PyPI, Bioconda, CRAN, and GitHub but had no way to visualise them. This adds a self-contained interactive HTML dashboard that can be hosted on GitHub Pages or generated locally for inspection.
New module:
src/dashboard.pyreports/YYYY/across all year subdirectoriesvegaEmbed— no server requiredNew CLI command
CI/CD
actions.yml: adds agenerate-dashboardstep aftergenerate-reports, so the page rebuilds every Mondaypages.yml: new workflow that deploysdocs/to GitHub Pages whenever it changes onmain— enable via Settings → Pages → Source: GitHub ActionsNotes
altair==6.0.0added torequirements/base.txtdocs/index.htmlis the initial generated dashboard committed to the repoOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.