- ci: move the workflows to Gitea Actions (D38)
- feat(site): source on Gitea, issues and bug reports on the GitLab mirror
- docs: where the project lives now — Gitea, the GitLab mirror, e-mail
- docs: the suite on Gitea — D38, CI/CD rewritten, every GitHub-era claim synced
- fix(ci): what the first Gitea runs found — Qodana and gitleaks
- fix(ci): .gitleaksignore describes the Sonar key instead of quoting it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- fix(deps): bump the minor-and-patch group with 15 updates (Dependabot #78)
- ci: bump the actions group with 3 updates (Dependabot #77)
- ci: pin SonarScanner CLI 8.4.0.16527 — action v8.5.0's default had passed the old pin
- chore(deps): pnpm 11.28.12, minimatch override scoped to typescript-estree
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- docs: maintenance mode — scope, status, badges and a listing change form (D36)
- chore(release): v1.4.1 — changelog and version
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ci: qodana analysis with the ultimate js linter (D35)
- docs: qodana in the ci/cd, stack, architecture and security docs (D35)
- fix: the first qodana findings — local throws, redundant escapes, a trivial if
- ci(qodana): keep the twin dark palette, try the astro and svelte plugins
- ci(qodana): keep the astro and svelte plugins, minus their unused-import false positive
- docs: record the first qodana runs (D35)
- ci(qodana): code scanning files the results as tool qdjs
- ci(qodana): drop the svelte plugin, whose results were not deterministic
- ci(qodana): drop the astro plugin too — plugin type checks flip between runs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OSV-Scanner failed `gates` on both open Dependabot PRs (#63, #64) with
two advisories published 2026-10-30:
- glob GHSA-3g3m-2fjr-6pw4 (>=9 <14.0.2), via workbox-build 7.4.1
- minimatch GHSA-g3hv-75wg-m249 (<11.0.1), via eslint, typescript-eslint
and filelist (ejs -> jake)
Neither upstream range reaches a fixed major, so both get override floors
(glob ^14.0.2, minimatch ^11.0.1). Every caller uses API the new majors
kept; the service worker's precache list is identical (16 entries) and
eslint lints the same 157 files with the same 151 rules. minimatch 11
requires brace-expansion ^5.0.12, which retires that floor; miniflare now
pins the fixed undici 7.30.1 itself, which retires `miniflare>undici`.
Bumps: #64's ten (astro 7.4.5, svelte 5.57.3, @astrojs/svelte 9.1.2,
eslint 10.14, typescript-eslint 8.72.1, knip 6.44.1, wrangler 4.156.2,
@types/node 26.6.6, iconify sets) plus tailwindcss 4.3.4, vitest and
coverage-v8 5.1.0, globals 17.14; pnpm 11.15.1 -> 11.28.9; #63's
sonarqube-scan-action (to 8.4.1, CLI 8.3.1.16491) and pnpm/action-setup
6.1.1.
Code: simple-icons' JSON now types as IconSet, so the assertion lint
flagged is gone; eslint.config.js uses ESLint's defineConfig in place of
the deprecated tseslint.config(); knip reads CSS, so the Fontsource and
tailwindcss ignoreDependencies are no longer needed.
@vite-pwa/astro 2.0.0 was tried and held back: under pnpm it emitted a
sw.js with bare @vite-pwa/workbox-swkit imports and an empty precache
(check:sw failed six ways). Reasoning in pnpm-workspace.yaml and docs/09 §7.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- feat(security): VirusTotal re-check — assisted, never decided (D30)
- fix(copy): say what the dated security note now rests on
- docs: VirusTotal re-check (docs/12 §4b, D30); checkedAt = latest scan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- chore(toolchain): Node 26 and TypeScript 6/7 side by side
- test: measure every analysed source; fix the date refinement crash
- ci: SonarQube Cloud CI-based analysis with coverage
- docs: Node 26, TypeScript 6/7, SonarQube Cloud CI analysis (D28, D29)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- test(e2e): match Cloudflare hosts by hostname, not substring
- docs: amend hard rules 1 and 7; decision log D25–D27
- docs(legal): v1.1 legal set — Cloudflare services, operator, notices, contacts
- feat(gate,analytics): Turnstile human check after consent; GPC-aware Web Analytics
- feat(worker): POST /api/verify — server-side Turnstile check (D25)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- fix(check-csp): match end tags the way the HTML tokenizer does
- ci(deps): keep @types/node on the Node major in .nvmrc
- test: Playwright + axe e2e, script tests, island coverage, CI gates
- fix(sort): pin the category-page and API orders to the data
- fix(a11y): keep the visible EN/VI code in the switcher's accessible name
- fix(nav): reliable cross-document View Transitions opt-in
- feat(data): enforce the data rules CONTRIBUTING promised; fix quarantine flow
- feat(prefs): display menu with theme, custom scrollbar and motion choices
- fix(i18n,a11y): real small type, translated chips and errors, nav semantics
- fix(search): race-free search with URL state, stable sort and relevance
- fix(pwa): installable app, styled offline page, prompt SW updates, head fixes
- refactor(scripts): hashed pre-paint scripts, CSP meta first, richer error log
- refactor(nav): replace <ClientRouter /> with native cross-document view transitions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Squashed from 8 signed commits:
- chore: normalise line endings to LF with .gitattributes
- fix(deps): refresh dependencies and close every open advisory
- style: adopt prettier-plugin-astro 1.x formatting
- fix: resolve the SonarCloud findings in scripts and issueUrl
- ci: pin actions to SHAs, fix notify/quarantine/link-check, add Dependabot config
- fix(headers): stop Cache-Control concatenation that disabled asset caching
- fix(theme): guard storage access in the pre-paint theme script
- chore(config): TS6-safe tsconfig, type-aware lint, gated build script
Each commit's full rationale is preserved on the PR (#21).
Verified on the Workers Builds preview: hashed assets now carry a single
`Cache-Control: public, max-age=31536000, immutable`, the JSON feeds a single
`max-age=300`, security.txt is utf-8, and preview hosts send noindex.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 pages (/apps, /categories, 24 category pages, all legal pages) shared
site.tagline as their meta description. Four new bilingual keys take the
build from 654 to 694 distinct descriptions across 699 pages; the rest are
the home page and noindex error pages. Legal pages also gain the
"— SoftHarbor" title suffix.
Audit found the rest of docs/16 §7 already correct: sitemap, hreflang,
canonicals, JSON-LD, and offers omitted for paid apps.
Also: codeql now runs on pull_request. It was a required status check that
only ever ran on push to main, which made it unsatisfiable and deadlocked
merging the moment branch protection went active.
Service worker: omitting `navigateFallback` does not disable it —
vite-plugin-pwa defaults it to index.html, so the SW registered
NavigationRoute(createHandlerBoundToURL('/')) and threw non-precached-url
on every SW-handled navigation. Had '/' been precached it would have
served the home page for every navigation instead, silently. Fixed with
navigateFallback: '' and a new `pnpm check:sw` gate that asserts the
emitted sw.js rather than the config.
Repo docs: README, CONTRIBUTING (inclusion criteria, gates, auto-close
list) and CODE_OF_CONDUCT (Contributor Covenant 2.1 by reference).
Four issues found in a real browser session, three of which had passed
every automated gate.
- **Sorting never worked**: `el.style.order` is refused by CSP style-src
(D20), so the grid never reordered. Nodes are moved directly now, and
`src/lib/grid.test.ts` covers it.
- **503 on hover**: Cloudflare refuses speculative prefetch on Worker
routes (`Cf-Speculation-Refused`), so `prefetch: false`.
- **Legal pages** dropped their duplicate in-body document nav.
- **AI Disclosure** added at `/legal/ai-disclosure` in both locales
(docs/14 §3f), naming model, version and developer.
Also fixes the PR link check, which had failed on every code-only PR
since it was written — lychee treats an empty URL list as a config error.
Takes SoftHarbor from 5 seed entries to the full catalogue, with the
docs/09 §6 vetting pass recorded for every one.
- 326 apps / 697 pages, all 12 categories populated
- 320 `clean`, 6 held at `unverified`, 0 `flagged`; every entry carries
its VirusTotal permalink in `security.evidence`
- New `logo` form `monogram` (D23) for the 209 apps with no brand mark,
since docs/14 §3d sanctions only Simple Icons or vendor-official assets
- `security.evidence` is now actually rendered — it had been required by
docs/09 §6 and shown nowhere, invisible because it was always null
- L3 caught ten dead official links, incl. henrypp.org 301ing to an
unrelated site; `ds4windows` dropped as having no maintained home
- /apps measures 112 KB gzip against the 200 KB budget, so pagination
stays deferred (docs/15 §2 item 9)
Does not tag v1.0.0: the L4 read-through of summaries, licences and
developer names is still open.
The repo is connected to Cloudflare Workers Builds via the dashboard git
integration, which builds and deploys on push to main and produces PR previews
itself. Two pipelines racing on the same Worker is worse than either alone.
Removed preview.yml alongside deploy.yml, which is slightly beyond the literal
ask: it performs a deployment too (versions upload), Cloudflare's integration
already provides PR previews, and it would fail with the same token error.
Easy to restore if that reading was wrong.
This also retires the token problem rather than fixing it. The API token needed
Zone -> Workers Routes -> Edit and Zone -> DNS -> Edit once wrangler.jsonc
declared a custom_domain; the dashboard integration deploys with account-level
credentials and has no such gap. CLOUDFLARE_API_TOKEN and
CLOUDFLARE_ACCOUNT_ID are now unused by any workflow and should be deleted —
an unused deploy credential is pure risk. Action item H3 is retired.
docs/12 §1-§3 rewritten to describe what actually runs, including that
wrangler.jsonc is still the source of truth for routes and that the build
environment is now Cloudflare's and must match .nvmrc. §2 also no longer
describes ci.yml as a reusable-workflow caller, which stopped being true when
it was made self-contained.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Two more, both found by reading the failures rather than guessing:
- codeql died at startup because the caller's permissions must be a SUPERSET
of every job in the called workflow, and reusable-codeql.yml declares
`packages: read` (for fetching CodeQL query packs) which the caller did not
grant. Same rule that killed ci.yml. GitHub validates this before running
anything, so the symptom is a 1-second startup_failure with no logs and no
annotation naming the cause — worth documenting, since the obvious reading
of "explicit least permissions" is the opposite of what is required.
- The OSV scanner action lives in a SUBDIRECTORY of its repo and publishes no
rolling major tag, so `google/osv-scanner-action@v2` does not resolve at all.
Pinned to v2.3.8; Renovate keeps it current.
Also records in docs/12 §1 that CLOUDFLARE_API_TOKEN needs Zone -> Workers
Routes -> Edit and Zone -> DNS -> Edit once wrangler.jsonc declares a
custom_domain. A local deploy can never surface that: local wrangler
authenticates via OAuth with full rights, so CI is the only place the gap
appears.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The reported overlap - page content bleeding through the sticky header - was
not a layout bug. The header's computed background-color was rgba(0,0,0,0):
fully transparent, despite style="background: var(--sh-bg)" being present in
the emitted HTML.
Cause: CSP style-src governs inline style ATTRIBUTES, not just <style> blocks,
and hashes do not apply to attributes - only 'unsafe-hashes' or
'unsafe-inline' would permit them, and our policy (D20) has neither. So every
style="..." was being discarded by the browser. Nothing errored. The build
passed, the source read correctly, and the declaration simply was not applied.
49 of them had accumulated since P1, which is also why muted text was rendering
in --sh-ink and borders in the wrong token.
Verified by probe rather than inference: an element given
style="background: rgb(1,2,3)" computes to transparent in this page context.
Fix, not workaround: the design tokens are now Tailwind colours mapped to the
runtime custom properties, so every use is a utility (text-sh-muted,
bg-sh-surface, border-sh-border) and theming still switches on
html[data-theme]. Relaxing style-src to 'unsafe-inline' would have "fixed" the
symptom while giving up the policy.
Added scripts/check-no-inline-styles.mjs, run in CI after build: any style=
reaching dist/ fails. This class of bug is invisible - it deserves a permanent
check rather than vigilance. It immediately earned its place by catching a
dynamic style={`color: var(--sh-${...})`} that the literal-match conversion
could not see.
CI workflows, both of which failed at startup on every push:
- ci.yml is now self-contained. reusable-web-react.yml's Pages-deploy job
declares pages: write and id-token: write; a caller cannot request less, so
GitHub rejected the whole run before any step - even though that job is
skipped by deploy-pages: false. Granting those would hand a Workers-deployed
site the ability to mint OIDC tokens it never uses. Separately, that workflow
runs lint/typecheck/test only "if the script exists", so a renamed script
silently green-lights. This repo has already shipped four silent no-ops; a
quietly-skipping CI is the wrong tool for it.
- codeql.yml passes languages as a JSON ARRAY STRING. The reusable workflow
feeds it to fromJSON for its matrix, so a bare value throws at startup.
NOT fixed here, because it is not mine to fix: the deploy workflow fails with
Cloudflare "Authentication error [code: 10000]" on /workers/routes. The API
token needs Zone -> Workers Routes -> Edit and Zone -> DNS -> Edit. My local
deploys succeeded throughout because wrangler uses OAuth, which masked the gap
entirely.
Gate: lint, i18n:check, validate:data, 99 tests, astro check (0 errors), build,
check:styles, knip - all green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Repo automation, the config changes Kokone asked for, and a full error pass.
Kokone's asks:
- LEGAL_VERSION -> 2026-07-28, the H6 approval date. Anyone who accepted the
pre-approval wording sees the gate once more; that is intended, they agreed
to different text.
- X-Robots-Tag: noindex REMOVED. It existed only while the dataset was empty,
where an indexed blank site can linger as "Crawled - currently not indexed".
With real entries, legal pages and a sitemap live, that objection is gone.
- The existing favicon.svg is now the PWA manifest icon, sizes "any" with
purpose "any maskable". One scalable asset covers every size, and browsers
without SVG-manifest support fall back to the favicon - strictly better than
the empty icons array that shipped in M5 and suppressed the install prompt.
The www deletion, diagnosed: a `www` DNS record added by hand is not part of
the Worker's trigger list, so `wrangler deploy` reconciles triggers and can
remove it - the redirect then dies silently. Declaring www.softharbor.net as a
second custom_domain makes wrangler CREATE and KEEP the record, so it survives
deploys and reproduces from a fresh clone instead of depending on a manual
step. www still never SERVES the site: Redirect Rule R1 runs before Workers
and 301s it to apex. That rule is now a documented hard prerequisite, because
without it www would serve a duplicate - the exact hazard docs/16 N1/N2 exist
to prevent.
CI/CD (docs/12): ci.yml with the two-job split the reusable workflow forces,
plus codeql, notify, deploy, preview, quarantine and link-check. Also
renovate.json - which pins TypeScript below 7 and flags Astro/Vite/Tailwind
majors for a fresh S1 - CODEOWNERS on the three highest-risk paths, and the
remaining issue templates.
quarantine.mjs implements hard rule 5 mechanically, and I tested it rather
than assuming: flagging VLC and running the sweep removed it from the detail
page, the grid, the API export, the RSS feed AND the search index - all five
surfaces - then restored cleanly.
Error sweep found real things:
- Two exactOptionalPropertyTypes violations. Under that flag `foo?: string`
means "absent or string", not "may be passed undefined", and both props came
from optional lookups. Object.fromEntries also widens to { [k: string]: … }
and no longer satisfies Record<Locale, …>.
- ShProbe.svelte was still in the tree - a dead S1 leftover sitting in
islands/ where docs/02 §5 caps the count at six.
- Five unused exports and an unused PWA type reference.
knip now passes clean, so the next dead export is visible instead of buried.
Gate: lint, i18n:check, validate:data, 99 tests, astro check (0 errors), knip,
build (55 pages) - all green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Deployed to a Cloudflare preview URL (Worker created with a routes-free
config, so nothing is attached to softharbor.net yet) and tested against a
real origin. Four bugs that only a real deploy could surface:
1. trailingSlash x html_handling — S1's last open question, now answered.
With build.format 'directory', Workers' auto-trailing-slash 307s /apps to
/apps/, while every canonical, sitemap entry, hreflang alternate and
internal link we emit uses the NO-slash form. So each advertised URL cost
a redirect and none ever returned 200. Fixed with build.format 'file' +
html_handling 'drop-trailing-slash': measured after, every canonical
returns 200 and only the slashed variant redirects, to it.
2. The service worker never registered. @vite-pwa/astro emits registerSW.js
and sw.js but references them from no page, and the build reports success
regardless - so the entire offline story silently did not exist. Base.astro
now loads the emitted file (external, to satisfy script-src).
3. navigateFallback served the offline page to ONLINE visitors. On its own it
registers a NavigationRoute that answers every navigation from the
precache; an online request for /apps returned "You appear to be offline".
docs/08 Part D already had the right shape - NetworkOnly navigations with
precacheFallback - and this config had dropped it. Restored, and the
regression is now an explicit check.
4. clientsClaim was false, so the SW controlled only pages loaded after
activation: a first-time visitor losing connection mid-session got the
browser error page, not ours. Set true, which is what 'autoUpdate' implies.
Also: the workbox globs are coupled to build.format ('offline.html', not
'offline/**') and Workbox normalises the precache key to the extensionless
'/offline' - both verified against the emitted manifest rather than assumed.
Verified on the preview origin: _headers applies (CSP, X-Frame-Options,
Referrer-Policy, cache rules), /nope returns a real 404, SW is active AND
controlling, offline page is precached with all 13 fonts and renders both
languages, and online navigation still serves real pages.
Pre-launch X-Robots-Tag: noindex added to _headers - the site is deployable
but has no dataset, and an empty site indexed early can linger as "Crawled -
currently not indexed". Removing it is now a launch-checklist item.
Supporting: /offline and /404 pages, robots.txt, ringbuffer.ts and
issueUrl.ts (S3's subject) with tests covering budget truncation, oldest-line
eviction and unicode round-tripping.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>