diff --git a/README.md b/README.md index b3db08d..005ebcc 100644 --- a/README.md +++ b/README.md @@ -169,9 +169,9 @@ substandard shows a badge when the site you're visiting has a standard.site publ - That page's picture is a drawing rather than a capture: Chrome's toolbar and its extensions menu are native UI and do not render into a page screenshot, the same reason `scripts/capture-status-docs.mjs` draws its badge tiles. Its - words are placeholders (grep `SNICKERSNEE`) until a human writes them, and - `scripts/deploy-ext.sh` refuses to package a build that still carries the - token. + words are a human's. `scripts/deploy-ext.sh` still refuses to package a + build carrying the `SNICKERSNEE` placeholder token, so a later rewrite + cannot ship one. ## Install diff --git a/TODO.md b/TODO.md index 5aeb155..db3b2f1 100644 --- a/TODO.md +++ b/TODO.md @@ -57,13 +57,11 @@ state — opened by the worker on `chrome.runtime.onInstalled` with `reason === "install"`. It draws the extensions menu, and polls `getUserSettings` so the line under the picture answers the moment the icon is pinned. The dev build's popup footer carries a debug menu that reopens it, -since Chrome otherwise shows it exactly once per install. Three things are -still open: +since Chrome otherwise shows it exactly once per install. Its words have since +been written by a human. `scripts/deploy-ext.sh` still refuses a build +carrying the `SNICKERSNEE` placeholder token, now a guard against a later +rewrite rather than a gate on unwritten copy. Two things are still open: -- **Its words are placeholders** (grep `SNICKERSNEE`), so nothing on it has - been approved by a human yet. `scripts/deploy-ext.sh` refuses to package a - build that still carries the token, which is the only check standing - between the placeholder and the store listing. - **Its picture is a drawing, not a capture.** Chrome's toolbar and its extensions menu are native UI and never appear in a page screenshot — the same reason `scripts/capture-status-docs.mjs` draws its badge tiles rather diff --git a/scripts/deploy-ext.sh b/scripts/deploy-ext.sh index edf07d2..2d5d0ca 100755 --- a/scripts/deploy-ext.sh +++ b/scripts/deploy-ext.sh @@ -76,10 +76,11 @@ rm -rf dist export SUBSTANDARD_CHANNEL=release npm run build npm run verify:dist -# The welcome page (welcome.html) carries placeholder copy until a human -# writes the words it says — this repo does not write the brand's prose (see -# CLAUDE.md). Nothing else would stop that token reaching store users, since -# every build, test and load of the page works perfectly well with it in. +# A regression guard, not a live gate: the welcome page's words are written +# now, but this repo leaves the brand's prose to a human (see CLAUDE.md), so +# a new or rewritten page starts out carrying this token again. Nothing else +# would stop it reaching store users, since every build, test and load of a +# page works perfectly well with it in. placeholders="$(grep -rl SNICKERSNEE dist || true)" if [[ -n "$placeholders" ]]; then echo "$placeholders" >&2 diff --git a/scripts/deploy-ext.test.mjs b/scripts/deploy-ext.test.mjs index 5dcbc5d..71b1749 100644 --- a/scripts/deploy-ext.test.mjs +++ b/scripts/deploy-ext.test.mjs @@ -72,10 +72,11 @@ describe('deploy-ext.sh preflight', () => { expect(at('\nnpm ci')).toBeLessThan(at('\nnpm run build')) }) - // The welcome page's copy is placeholder until a human writes it, and every - // other check in this script passes with the token still in — so this is - // the only thing standing between SNICKERSNEE and the store listing. - it('refuses a build whose welcome copy is still the placeholder', () => { + // Copy this repo has not had a human write yet is placeholder (see + // CLAUDE.md), and every other check in this script passes with the token + // still in — so this is the only thing standing between SNICKERSNEE and the + // store listing. + it('refuses a build whose copy is still the placeholder', () => { expect(source).toMatch(/grep -rl SNICKERSNEE dist/) expect(at('grep -rl SNICKERSNEE dist')).toBeLessThan(at('zipfile=')) })