2 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5.5 3743cfbfe0 v1.1: native view transitions, CSP-first head, PWA, search, i18n/a11y, display menu, data rules, e2e (#23)
- 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>
2026-10-21 22:22:48 +07:00
poli0981andClaude Opus 5 b75a67393e feat: M6 CI/CD, launch config, dead-code sweep
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>
2026-07-28 14:38:52 +07:00