Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
10 changes: 5 additions & 5 deletions docs/SEO-PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/README-VERCEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/specimens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const FIELD: Record<string, Field> = {
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`,
Expand Down