Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ img/stats: stats
mkdir -p img/stats
mkdir -p stats/out
cd stats && poetry run python analyze_stats.py --since 2017-07-01 --column downloads --per-week --save ../img/stats/downloads.png
cd stats && poetry run python analyze_stats.py --since 2017-07-01 --column stars --title 'GitHub Stargazers' --save ../img/stats/stars.png

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Stargazer History Starts Late

The new local stars chart is generated with --since 2017-07-01, so /stats/ will drop the 2016-to-mid-2017 stargazer history that the replacement is meant to preserve. The page now shows a truncated cumulative curve instead of the full project history from the first stars.

cd stats && poetry run python analyze_stats.py --since 2017-07-01 --column 'Chrome WAU' --title 'Chrome Weekly Active Users' --save ../img/stats/chrome-wau.png
cd stats && poetry run python analyze_stats.py --since 2017-07-01 --column 'Firefox DAU' --resample 7D --title 'Firefox Daily Active Users (7D mean)' --save ../img/stats/firefox-dau-7d.png
cd stats && poetry run python analyze_stats.py --since 2017-07-01 --column 'Android installed devices' --title 'Android Installed Devices' --save ../img/stats/android-devices.png
6 changes: 3 additions & 3 deletions stats.pug
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ div.text-center
p
| How many people have starred the ActivityWatch repository on GitHub
div.img-center
a(href="https://starchart.cc/ActivityWatch/activitywatch")
img.width-700(title="Stargazers over time" src="https://starchart.cc/ActivityWatch/activitywatch.svg")
a(href="https://github.com/ActivityWatch/activitywatch/stargazers")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid linking the chart to the restricted stargazers view

The replacement chart no longer depends on starchart, but this new click target is the same GitHub /stargazers UI view affected by the access restriction this change is trying to work around; GitHub's changelog says that repository stargazers views may return empty responses or 403s for non-admin/non-collaborator users. For those public visitors, clicking the chart still lands on a broken/restricted page, so link to the repository or the stats data instead.

Useful? React with 👍 / 👎.

img.width-700(title="Stargazers over time" src="/img/stats/stars.png")
div.small.dim
| Provided by starchart.cc
| Tracked in ActivityWatch/stats, updated every 6h

hr.my-5

Expand Down
Loading