Pages (Events menu, module BO_PAGES): staff build a public page from blocks (hero, text, image with text, FAQ, sign-up form). The page has a draft preview, a view link, a delete confirmation and an unsaved-edits guard. Ported from babyboo's page builder.
Public page/p/{company}/{slug}: a server-rendered page with Open Graph metadata. It shows the company's logo and accent colour. The sign-up form block registers into an event with source WEB. Each sign-up records the page address and the UTM tags, and never sets the attended time. When the event ends, the form shows as closed and the rest of the page still shows. Every miss gets the same not-found page.
Company branding (super admin): logo upload and accent colour.
Event lead detail shows "Web page: …" and "Campaign: …". The source label is "Web page".
Services:
services-counter: pages, images and WEB registrations.
services-system: branding.
gateway: three public GET reads.
mobile-api: admin and public APIs.
SQL
Run in order: openspec/changes/add-landing-pages/sql/01–05. Rollback is 99-rollback.sql. docs/deployment.md §12 covers the hostname and route, the standing "enquiries" event for each company, the image ceiling and the new dependencies.
Disclosures
Pinned test edited:routeModules.test.ts now includes /pages in its pinned list of gated routes.
Sweep allow entries:
noHtmlInjection: SafeHtml. The HTML is sanitised server-side with an allow-list (design decision 8).
design-tokens: text-white in the hero, for text over a darkened photo.
Regenerated SQL:add-zh-cn-messages/sql/03 was regenerated by npm run i18n:sql for the new labels. 05-page-labels.sql holds only this change's labels.
Trimmed editor: the editor drops babyboo's YouTube, tables, inline images, emoji, colour and HTML-source features.
eventUuid as a string:CmsBlock.eventUuid is now serialised as a string, because Snowflake ids exceed JS number precision. mobile-api accepts either form.
New dependencies: Tiptap (@tiptap/react, pm, starter-kit, extension-text-align ^3.31.4) and sanitize-html ^2.18.2.
Verification
Backend: module verifies are green, including mobile-api (982 tests).
Portal: vitest 1828/1828 (exit 0), tsc clean, lint has only the 4 existing warnings.
Live Playwright check on the local stack, 1280 and 360 px:
Built and published the INS page in the editor.
Signed out, the draft gave "Page not found" and the staff preview worked.
A javascript: button link was refused at its field (server 422).
The event picker offered only INS events that are open and enabled.
Logo and accent colour show on the page.
A submit with UTM tags created an event lead: Web page, not attended, with the page and the campaign.
After the event ended, the form showed "Sign-up is closed."
Fixed during the check: the hero heading was clipped at 360 px, and the rich-text box had no accessible name (0ee9c21).
Known gaps (in deployment.md)
Image ids can be enumerated, and the images of a draft page can be read.
Uploaded images that are never saved stay as orphans.
Same-page #anchor links are refused, because the ported link rule allows only https, mailto, tel and /.
OpenSpec change `add-landing-pages`. Design: `docs/superpowers/specs/2026-12-02-landing-pages-design.md`.
## What
- **Pages** (Events menu, module `BO_PAGES`): staff build a public page from blocks (hero, text, image with text, FAQ, sign-up form). The page has a draft preview, a view link, a delete confirmation and an unsaved-edits guard. Ported from babyboo's page builder.
- **Public page** `/p/{company}/{slug}`: a server-rendered page with Open Graph metadata. It shows the company's logo and accent colour. The sign-up form block registers into an event with source **WEB**. Each sign-up records the page address and the UTM tags, and never sets the attended time. When the event ends, the form shows as closed and the rest of the page still shows. Every miss gets the same not-found page.
- **Company branding** (super admin): logo upload and accent colour.
- **Event lead detail** shows "Web page: …" and "Campaign: …". The source label is "Web page".
- **Services:**
- services-counter: pages, images and WEB registrations.
- services-system: branding.
- gateway: three public GET reads.
- mobile-api: admin and public APIs.
## SQL
Run in order: `openspec/changes/add-landing-pages/sql/01`–`05`. Rollback is `99-rollback.sql`. `docs/deployment.md` §12 covers the hostname and route, the standing "enquiries" event for each company, the image ceiling and the new dependencies.
## Disclosures
- **Pinned test edited:** `routeModules.test.ts` now includes `/pages` in its pinned list of gated routes.
- **Sweep allow entries:**
- noHtmlInjection: `SafeHtml`. The HTML is sanitised server-side with an allow-list (design decision 8).
- design-tokens: `text-white` in the hero, for text over a darkened photo.
- **Regenerated SQL:** `add-zh-cn-messages/sql/03` was regenerated by `npm run i18n:sql` for the new labels. `05-page-labels.sql` holds only this change's labels.
- **Trimmed editor:** the editor drops babyboo's YouTube, tables, inline images, emoji, colour and HTML-source features.
- **eventUuid as a string:** `CmsBlock.eventUuid` is now serialised as a string, because Snowflake ids exceed JS number precision. mobile-api accepts either form.
- **New dependencies:** Tiptap (`@tiptap/react`, `pm`, `starter-kit`, `extension-text-align` ^3.31.4) and `sanitize-html` ^2.18.2.
## Verification
- **Backend:** module verifies are green, including mobile-api (982 tests).
- **Portal:** vitest 1828/1828 (exit 0), tsc clean, lint has only the 4 existing warnings.
- **Live Playwright check on the local stack, 1280 and 360 px:**
- Built and published the INS page in the editor.
- Signed out, the draft gave "Page not found" and the staff preview worked.
- A `javascript:` button link was refused at its field (server 422).
- The event picker offered only INS events that are open and enabled.
- Logo and accent colour show on the page.
- A submit with UTM tags created an event lead: Web page, not attended, with the page and the campaign.
- After the event ended, the form showed "Sign-up is closed."
- Fixed during the check: the hero heading was clipped at 360 px, and the rich-text box had no accessible name (0ee9c21).
## Known gaps (in deployment.md)
- Image ids can be enumerated, and the images of a draft page can be read.
- Uploaded images that are never saved stay as orphans.
- Same-page `#anchor` links are refused, because the ported link rule allows only https, mailto, tel and `/`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Pages and block rules are ported from babyboo's CMS, scoped per company.
Images are checked by their magic bytes. A WEB registration keeps its
page address and UTM tags and never counts as attended.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Admin pages and images scoped by company, counter refusals relayed as
code plus field; public page read, image passthrough and form sign-up
through the QR registration rules with source WEB; company branding
save checks the logo's company; lead detail and export show the web page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
A Snowflake event uuid is beyond JavaScript number precision, so the
editor would round it. The counter now writes it as a string and the
public page service reads either form. The admin page detail adds the
company's branding for the editor's preview.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Pages list and Tiptap editor (ported from babyboo) with image upload on
save, the FORM event picker, field errors at their fields, delete
confirmation, unsaved-edits guard and a draft preview. The public page
/p/<company>/<slug> renders on the server with metadata, sanitize-html,
the company's logo and accent, and the sign-up form with UTM tags.
Companies get branding; the event lead detail shows the web page and
campaign. Labels in English and Chinese.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
The live check at 360 px clipped the hero heading because the image set a
fixed height. The text now sets the height and the image fills behind it.
The rich text box now carries its field label as an accessible name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: 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-landing-pages. Design:docs/superpowers/specs/2026-12-02-landing-pages-design.md.What
BO_PAGES): staff build a public page from blocks (hero, text, image with text, FAQ, sign-up form). The page has a draft preview, a view link, a delete confirmation and an unsaved-edits guard. Ported from babyboo's page builder./p/{company}/{slug}: a server-rendered page with Open Graph metadata. It shows the company's logo and accent colour. The sign-up form block registers into an event with source WEB. Each sign-up records the page address and the UTM tags, and never sets the attended time. When the event ends, the form shows as closed and the rest of the page still shows. Every miss gets the same not-found page.SQL
Run in order:
openspec/changes/add-landing-pages/sql/01–05. Rollback is99-rollback.sql.docs/deployment.md§12 covers the hostname and route, the standing "enquiries" event for each company, the image ceiling and the new dependencies.Disclosures
routeModules.test.tsnow includes/pagesin its pinned list of gated routes.SafeHtml. The HTML is sanitised server-side with an allow-list (design decision 8).text-whitein the hero, for text over a darkened photo.add-zh-cn-messages/sql/03was regenerated bynpm run i18n:sqlfor the new labels.05-page-labels.sqlholds only this change's labels.CmsBlock.eventUuidis now serialised as a string, because Snowflake ids exceed JS number precision. mobile-api accepts either form.@tiptap/react,pm,starter-kit,extension-text-align^3.31.4) andsanitize-html^2.18.2.Verification
javascript:button link was refused at its field (server 422).0ee9c21).Known gaps (in deployment.md)
#anchorlinks are refused, because the ported link rule allows only https, mailto, tel and/.🤖 Generated with Claude Code
https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs