Each landing-page block has an optional Link name: lowercase letters, digits and -, up to 40 characters, unique on the page, and not starting with reg-. The public page renders it as the block's id.
Button and rich-text links accept #name. The same rule applies in services-counter, isSafeLink, the rich-text editor and the sanitiser.
Custom HTML frames: the injected frame script turns clicks on #name links into a colite-frame-anchor message. The page acts only on messages from its own frame, with the name checked against the pattern, and only scrolls. The target is the frame's own id first, then a named block in <main>. The frame gets no new sandbox grants.
reg- is reserved because the sign-up form renders its fields with literal reg-* ids, so a block named reg-email would have duplicated an input id. Other ids on the public page come from useId.
Labels in English and Chinese: sql/01-anchor-labels.sql (DML only, no DDL) and sql/99-rollback.sql.
OpenSpec change `add-page-anchor-links`. Design: `docs/superpowers/specs/2026-12-03-page-anchor-links-design.md`.
## What
- Each landing-page block has an optional **Link name**: lowercase letters, digits and `-`, up to 40 characters, unique on the page, and not starting with `reg-`. The public page renders it as the block's id.
- Button and rich-text links accept `#name`. The same rule applies in services-counter, `isSafeLink`, the rich-text editor and the sanitiser.
- Custom HTML frames: the injected frame script turns clicks on `#name` links into a `colite-frame-anchor` message. The page acts only on messages from its own frame, with the name checked against the pattern, and only scrolls. The target is the frame's own `id` first, then a named block in `<main>`. The frame gets no new sandbox grants.
- `reg-` is reserved because the sign-up form renders its fields with literal `reg-*` ids, so a block named `reg-email` would have duplicated an input id. Other ids on the public page come from `useId`.
- Labels in English and Chinese: `sql/01-anchor-labels.sql` (DML only, no DDL) and `sql/99-rollback.sql`.
## Verification
- services-counter: 360 tests green.
- Portal: vitest 1892 passed / 1 skipped (exit 0), `tsc` clean, lint 0 errors (4 old warnings).
- Live Playwright check on a local portal from this branch, using two disposable INS pages that were deleted afterwards:
- a bad link name, a reserved name (`reg-email`) and a duplicate name are each refused at their field;
- an in-frame `#signup` link scrolls to the form (1280 and 360 px);
- an in-frame `#top` link scrolls back to the start of the frame;
- a Hero button linking to `#signup` jumps to the form (360 px);
- a rich-text `#signup` link added through the editor's link prompt jumps to the form (360 px);
- no sideways scroll at 360 px.
- Not run live: link-name ids in the staff preview, and the Hero button at 1280 px.
## Notes
- One existing test (`PageEditor.test.tsx`) changed only to match the reworded `PagesBadLink` text.
- On the INS page after deploy, staff name the form block `signup` and change `#consult` to `#signup` in its HTML (see `docs/deployment.md` §12).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
OpenSpec change
add-page-anchor-links. Design:docs/superpowers/specs/2026-12-03-page-anchor-links-design.md.What
-, up to 40 characters, unique on the page, and not starting withreg-. The public page renders it as the block's id.#name. The same rule applies in services-counter,isSafeLink, the rich-text editor and the sanitiser.#namelinks into acolite-frame-anchormessage. The page acts only on messages from its own frame, with the name checked against the pattern, and only scrolls. The target is the frame's ownidfirst, then a named block in<main>. The frame gets no new sandbox grants.reg-is reserved because the sign-up form renders its fields with literalreg-*ids, so a block namedreg-emailwould have duplicated an input id. Other ids on the public page come fromuseId.sql/01-anchor-labels.sql(DML only, no DDL) andsql/99-rollback.sql.Verification
tscclean, lint 0 errors (4 old warnings).reg-email) and a duplicate name are each refused at their field;#signuplink scrolls to the form (1280 and 360 px);#toplink scrolls back to the start of the frame;#signupjumps to the form (360 px);#signuplink added through the editor's link prompt jumps to the form (360 px);Notes
PageEditor.test.tsx) changed only to match the rewordedPagesBadLinktext.signupand change#consultto#signupin its HTML (seedocs/deployment.md§12).🤖 Generated with Claude Code
https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs