Repository navigation
feat(site): a website on GitHub Pages with downloads, set-up and help - #24
Merged
Merged
Conversation
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
… 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
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>
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.
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:
.deband the AppImage, and phones are told Statsify is for computers.SHA256SUMS.txt.docs/GUIDE.md.Design: the page went through an "unslop" pass (the unslop skill by Damir Sokolovsky). It has:
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.mjssaves the release list while the site is built. Visitors' browsers never call GitHub's API, and there's no rate limit to hit.pages.yml): builds and tests the site.mainwhenever the site changes.release.ymlstarts it after publishing a release, so new versions appear on their own. This needsactions: write, added torelease.yml's publish job and to the job inrelease-on-main.ymlthat calls it.ci.ymlskips the app's end-to-end tests for changes only undersite/. The checks job still type-checks, lints and unit-tests the site.labeler.ymllabels site-only changes as documentation.One-time set-up before it can publish: Settings → Pages → Source: GitHub Actions, or:
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 insite/releases.test.ts) andnpm run buildpass.npm run site:buildbuilds the site.npm run site:testpasses in Chromium. It covers:Checklist
feature/<name>and the commits follow the commit style.npm run checkpasses (typecheck, lint, unit tests, build).npm run e2epasses, or the change can't affect the UI. The app's UI is unchanged; the site has its own tests (npm run site:test).docs/,AGENTS.md) where behaviour, commands or architecture changed.Generated by Claude Code