diff --git a/README.md b/README.md index 2ed8555..f01f21b 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,17 @@ Turnstile fixtures the page reads at build time. CI runs `npm run test:browser:a which repeats it on Chromium, Firefox and WebKit. It uses a temporary local server and blocks external requests. The root Lefthook configuration runs staged Biome checks and typechecking at -commit time. Keep those checks enabled. +commit time, plus gitleaks on staged changes when it's installed. Pre-push runs +`qlty check` against `origin/dev` when qlty is installed. Keep those checks enabled. Changes go through a feature PR into `dev`, followed by a reviewed promotion from `dev` to `main`. Preserve the same tested content through promotion. -The `Website contracts` workflow (`verify` job) checks pull requests and pushes -to `dev` and `main`. +The `Website contracts` workflow checks pull requests and pushes to `dev` and +`main`. The test work runs in a `tests` job inside the digest-pinned Playwright +container. A `reuse` job skips it when the exact tree already passed on a `dev` +push, and the always-run `verify` job is the gate (the required check). CodeQL +runs on pushes to `main`, pull requests to `main` and `dev`, and weekly. OpenSSF +Scorecard runs on pushes to `main`, weekly and on branch protection changes. ## Deployment and verification diff --git a/ROADMAP.md b/ROADMAP.md index 8f19d48..d795798 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -8,7 +8,9 @@ plates (`frontend/components/catalogue/sprites.ts`). The old WebGL homepage and its progressive-enhancement fallback plan are gone with it. Already shipped, so not on the list below: double opt-in newsletter signup with -Turnstile (`/api/subscribe`), the nonce-based CSP set in the Next proxy, PostHog +Turnstile (`/api/subscribe`), the static hash-based CSP filled in at build time by +`frontend/csp-adapter.mjs`, CodeQL, OpenSSF Scorecard and gitleaks (CI and +pre-commit), PostHog through the `e.codeswhat.com` proxy, the `/support` page with Stripe Payment Links, `llms.txt` and `.well-known/security.txt`. diff --git a/docs/SEO-PLAN.md b/docs/SEO-PLAN.md index c3ba5ba..6349d2c 100644 --- a/docs/SEO-PLAN.md +++ b/docs/SEO-PLAN.md @@ -94,7 +94,7 @@ const jsonLd = { The organization selected one US PostHog project, `CodesWhat Public Websites`, with the managed proxy `https://e.codeswhat.com`. The website initializes the -pinned `posthog-js@1.417.0` SDK only from `instrumentation-client.ts` and sends +exact-pinned `posthog-js` SDK (see `frontend/package.json`) only from `instrumentation-client.ts` and sends only sanitized `$pageview`, `cta activated`, and `$web_vitals` events. Cookies, persistence, autocapture, session recording, and query/hash URL data stay off. @@ -185,13 +185,13 @@ export const metadata: Metadata = { ## Implementation Timeline ### Week 1 -- [ ] Implement robots.txt -- [ ] Create dynamic sitemap +- [x] Implement robots.txt +- [x] Create dynamic sitemap - [x] Set up privacy-first PostHog analytics -- [ ] Verify Google Search Console +- [x] Verify Google Search Console ### Week 2 -- [ ] Add structured data +- [x] Add structured data - [ ] Optimize existing metadata - [x] Set up PostHog (shared US project and managed proxy) - [ ] Create SEO monitoring dashboard diff --git a/frontend/README-VERCEL.md b/frontend/README-VERCEL.md index 076839b..b0f5ab8 100644 --- a/frontend/README-VERCEL.md +++ b/frontend/README-VERCEL.md @@ -25,7 +25,7 @@ Then run the PostHog response contract against the canonical domain: POSTHOG_BROWSER_BASE_URL=https://codeswhat.com npm run test:posthog:browser ``` -CI (`.github/workflows/website.yml`, `verify` job) runs `test:posthog`, builds with `build:test`, +CI (`.github/workflows/website.yml`, `tests` job) runs `test:posthog`, builds with `build:test`, then runs `test:posthog:browser` against an isolated local production server and `test:browser:all` on Chromium, Firefox and WebKit. Without `POSTHOG_BROWSER_BASE_URL`, the response contract starts and stops its own server; diff --git a/frontend/lib/specimens.ts b/frontend/lib/specimens.ts index 6159fe0..ffa6c6f 100644 --- a/frontend/lib/specimens.ts +++ b/frontend/lib/specimens.ts @@ -127,7 +127,7 @@ const FIELD: Record = { temperament: "Won't blink first.", marks: "Two red eyes on a yellow tile, pupils wide open. It's been up a while.", handling: - "A menu bar app that keeps your Mac awake: timed holds, triggers, a CLI for agents, and an opt-in closed-lid mode. Public beta.", + "A menu bar app that keeps your Mac awake: timed holds, triggers, a CLI for agents, and an opt-in, still experimental closed-lid mode.", alt: "Pixel art of a yellow tile with two wide red-outlined eyes and small square pupils", docs: `${GITHUB_URL}/dilated/tree/main/docs`, repo: `${GITHUB_URL}/dilated`,