Skip to content

feat(site): a website on GitHub Pages with downloads, set-up and help - #24

Merged
Kkkermit merged 3 commits into
mainfrom
feature/docs-site
Dec 3, 2026
Merged

Kkkermit merged 3 commits into
mainfrom
feature/docs-site

Conversation

@Kkkermit

@Kkkermit Kkkermit commented Dec 3, 2026

Copy link
Copy Markdown
Owner

What and why

A website for Statsify, published on GitHub Pages at https://kkkermit.github.io/Statsify/. It has the downloads, the set-up guide, the changelog, troubleshooting and the FAQ on one page, so people don't need to piece them together from the README, the user guide and the Releases page.

The page, in order:

  • First screen: "Your Spotify, by the numbers." over a large screenshot of the app. The main button downloads the right file for the visitor's system ("Download for Windows"). Linux goes to the choice between the .deb and the AppImage, and phones are told Statsify is for computers.
  • Features: three short lists (your stats, listening, everything else) and the Insights and playlist screenshots.
  • Download: every file of the latest release for Windows, macOS, Linux and the web, with sizes, and the visitor's system marked. There's a note about the unsigned-installer warnings and how to check a download against SHA256SUMS.txt.
  • Set up: install (tabs per system, opening on the visitor's own), connect Spotify (with a copy button for the redirect URI), and import the history. The steps are laid out like a tracklist, with a length for each.
  • Changelog: recent releases from GitHub's generated notes, grouped by label, with each pull request linked.
  • Troubleshooting and FAQ: searchable, with a topic list beside them. The content comes from the README and docs/GUIDE.md.

Design: the page went through an "unslop" pass (the unslop skill by Damir Sokolovsky). It has:

  • no glows, gradients, pill badges, icon-card grids, uppercase labels or scroll-in animation;
  • the app's own Midnight and Light colours and Figtree, following the system's light or dark mode;
  • green only on the main action, the selected tab and "Your system";
  • one fade-in on the first screen, plus feedback when something is opened, switched or copied.

How it's built:

  • site/ holds plain TypeScript and CSS with its own Vite config (site/vite.config.ts). The config adds a <meta> CSP, because Pages can't send headers. No framework, about 5 KB of JS gzipped.
  • scripts/site-releases.mjs saves the release list while the site is built. Visitors' browsers never call GitHub's API, and there's no rate limit to hit.
  • Website workflow (pages.yml): builds and tests the site.
    • It publishes from main whenever the site changes.
    • release.yml starts it after publishing a release, so new versions appear on their own. This needs actions: write, added to release.yml's publish job and to the job in release-on-main.yml that calls it.
    • Pull requests that change the site get the build and tests only.
  • ci.yml skips the app's end-to-end tests for changes only under site/. The checks job still type-checks, lints and unit-tests the site.
  • labeler.yml labels site-only changes as documentation.

One-time set-up before it can publish: Settings → Pages → Source: GitHub Actions, or:

gh api -X POST repos/Kkkermit/Statsify/pages -f build_type=workflow

Then merge this, or run the Website workflow by hand.

How it was tested

  • npm run typecheck, npm run lint, npm test (576 tests, 26 of them new in site/releases.test.ts) and npm run build pass. npm run site:build builds the site.
  • npm run site:test passes in Chromium. It covers:
    • axe WCAG 2.2 AA in dark and light, on a laptop and a phone, with every answer open;
    • no sideways scroll at 320, 375, 768, 1024, 1440, 2560 and 3840 px;
    • the right download per system (Windows, Mac, Linux, phone), pre-releases skipped, the checksum link;
    • falling back to GitHub when the release list can't be loaded;
    • the changelog, and that release notes are only ever shown as text;
    • tab keyboard support, the copy button, search, the phone menu (Esc returns focus), the section highlight in the navigation and the skip link.
  • Looked at screenshots at 320 and 375 px (phones), 820 px (tablet), 1366, 1920 and 3840 px, in dark and light.
  • Not tested in Safari or Firefox.
  • actionlint is clean on every workflow.

Checklist

  • The branch is named feature/<name> and the commits follow the commit style.
  • npm run check passes (typecheck, lint, unit tests, build).
  • npm run e2e passes, or the change can't affect the UI. The app's UI is unchanged; the site has its own tests (npm run site:test).
  • Rust changed: no Rust code changed.
  • New behaviour has tests (Vitest for logic, Playwright with an axe check for UI, Rust tests for commands).
  • UI changes work at desktop, tablet and phone sizes, by keyboard, with reduced motion and in every theme. The site follows the system's light or dark mode.
  • Docs are updated (README, docs/, AGENTS.md) where behaviour, commands or architecture changed.
  • No secrets, tokens, personal data or real listening history in code, tests, screenshots or logs. The tests use a fixture release list.

Generated by Claude Code

A static website in site/ for https://kkkermit.github.io/Statsify/: the
downloads for each system (the visitor's own picked out), the set-up guide,
the changelog from GitHub's release notes, troubleshooting with search, and
the FAQ. It's plain TypeScript and CSS with its own Vite config and a
strict CSP, in the app's colours and font, light or dark with the system.

The release list is saved while the site is built (scripts/site-releases.mjs),
so visitors' browsers never call GitHub's API. The new Website workflow
(pages.yml) builds and tests it and publishes it from main; release.yml
starts it after each release, so a new version shows up on its own.

Tests: Vitest for reading releases, picking files, detecting the system and
parsing release notes; Playwright for axe (both colour schemes, laptop and
phone), no sideways scroll from 320 px to 4K, downloads per system, the
changelog shown as text only, tabs, copy buttons, search and the menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN
@github-actions github-actions Bot added the enhancement New feature or improvement label Dec 3, 2026
Comment thread site/releases.ts Fixed
Comment thread scripts/site-releases.mjs Fixed
Kkkermit and others added 2 commits December 3, 2026 14:08
… saving

CodeQL flagged two things on the website:

- Release notes lost their HTML comments through one regular-expression
  replace, which is never a complete HTML sanitiser. The notes are only ever
  shown as text, so they don't need one: the parser now leaves out lines in
  a comment, on one line or several, and takes nothing else from them.
- The release list was written to the file as GitHub sent it. Now only what
  the page uses is written, once checked: version tags, dates, whole-number
  sizes, text cut to a sane length and links into this repository, with the
  answer capped at 5 MB. Anything else is dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN
…nd a coffee

The website no longer calls GitHub's API at all. While it builds, every v*
tag is a release and the pull requests squash-merged since the tag before it
are its changes, grouped by their commit type like GitHub's notes, then
bundled into the page (virtual:releases). Download links follow the file
names release.yml gives. Nothing is fetched or written from the network, so
there's no rate limit, no loading state and no release list file, and
scripts/site-releases.mjs is gone. The Website workflow checks out the full
history and tags; release.yml still starts it after each release.

- Visitors are asked to star the repository (the header's button, a support
  box under the downloads, the footer and the FAQ) and to buy a coffee: in
  that box, and from a button in the corner that shows only while the first
  screen, the box and the footer are out of view.
- Shorter, fewer comments; simpler tabs, copy buttons and search code; the
  file sizes and the loading skeleton go with the API.
- Tests build with a fixture release list (SITE_RELEASES) into
  site/dist-test, and check the page without JavaScript, the star and
  coffee links and the corner button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN
@Kkkermit
Kkkermit merged commit 71bdc03 into main Dec 3, 2026
31 checks passed
@Kkkermit
Kkkermit deleted the feature/docs-site branch December 3, 2026 14:42
@Kkkermit Kkkermit mentioned this pull request Dec 3, 2026
8 tasks done
Kkkermit added a commit that referenced this pull request Dec 3, 2026
## What and why

This sets the version to 1.2.1 in all six places (`npm run version:set
-- 1.2.1`). It's a patch release that ships the fixes merged since
1.2.0:

- **#23** The macOS icon now fills the app-icon shape instead of sitting
small on a grey tile in macOS 26. The icon is built into the installer,
so it only reaches people through a release.
- **#22** The app's links point at the repository's new name, Statsify.

Merging this starts **Release on main**. It finds no `v1.2.1` tag, so it
runs the Release workflow:

- CI and the desktop builds run;
- the release is published with the generated notes and tagged on the
merged commit;
- the Website workflow then rebuilds
https://kkkermit.github.io/Statsify/, so 1.2.1 shows up there by itself.

The website (#24) is published separately, so it isn't part of this
release.

Before merging, it's worth trying the macOS `.dmg` that the **Desktop
app** workflow built on `main` (the `statsify-macOS` artifact) on macOS
26, to confirm the new icon.

## How it was tested

- `npm run version:set -- --check 1.2.1` reports 1.2.1 in every place.
- `npm run check` passes: typecheck, lint, 568 unit tests and the build.

## Checklist

- [x] The branch is named `feature/<name>` and the commits follow the
[commit
style](https://github.com/Kkkermit/Statsify/blob/main/CONTRIBUTING.md#commits).
- [x] `npm run check` passes (typecheck, lint, unit tests, build).
- [x] `npm run e2e` passes, or the change can't affect the UI. It's the
version number only.
- [x] Rust changed: only the version in `Cargo.toml` and `Cargo.lock`.
CI runs the Rust checks.
- [x] New behaviour has tests: not applicable.
- [x] UI changes work at desktop, tablet and phone sizes, by keyboard,
with reduced motion and in every theme: not applicable.
- [x] Docs are updated (README, `docs/`, `AGENTS.md`) where behaviour,
commands or architecture changed: nothing changed.
- [x] No secrets, tokens, personal data or real listening history in
code, tests, screenshots or logs.

---
_Generated by [Claude Code](https://claude.ai/code)_

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants