feat(portal): landing pages list, editor, preview and public page
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
This commit is contained in:
1 parent
ab9d3f4942
commit
bb2c5c5db7
52 files changed
+3527
-22
No files matched your search
@@ -65,25 +65,25 @@ Verify commands:
|
||||
|
||||
## 6. Portal
|
||||
|
||||
- [ ] 6.1 Route handlers for `app/api/pages/**` and `app/api/page-images/**`, the public page and image proxies, `routeModules`, and the sidebar entry with its icon.
|
||||
- [x] 6.1 Route handlers for `app/api/pages/**` and `app/api/page-images/**`, the public page and image proxies, `routeModules`, and the sidebar entry with its icon.
|
||||
- The upstreamQuery, upstreamPath and hardcodedCopy sweeps stay green.
|
||||
- [ ] 6.2 The Pages list at `/pages`: title, address, status, updated time and search, with a Company column for a multi-company scope.
|
||||
- [ ] 6.3 The page editor ported from babyboo's `PageEditor` and `BlockFields`:
|
||||
- [x] 6.2 The Pages list at `/pages`: title, address, status, updated time and search, with a Company column for a multi-company scope.
|
||||
- [x] 6.3 The page editor ported from babyboo's `PageEditor` and `BlockFields`:
|
||||
- Tiptap (new dependency, babyboo's versions);
|
||||
- image upload on save;
|
||||
- the FORM event picker;
|
||||
- field errors at their fields;
|
||||
- the view link, the delete confirmation and the unsaved-edits guard;
|
||||
- the draft preview at `/pages/{id}/preview`.
|
||||
- [ ] 6.4 The public page `/p/[company]/[slug]`:
|
||||
- [x] 6.4 The public page `/p/[company]/[slug]`:
|
||||
- a server component with metadata;
|
||||
- blocks ported from babyboo's `CmsBlocks`;
|
||||
- `sanitize-html` (new dependency) with an allow-list;
|
||||
- the branding header and the accent button with contrast text;
|
||||
- the form block using `RegistrationForm`, with the UTM tags and the closed state;
|
||||
- `isPublicPath` covers `/p`, and the not-found page is the same for every miss.
|
||||
- [ ] 6.5 Branding fields on Companies: logo upload and accent colour. Event lead detail: the page address and UTM values. The source label is Web page.
|
||||
- [ ] 6.6 Labels in `defaultMessages.ts` with Chinese in `zh_CN.seed.json`, then `npm run i18n:sql`. This change's `sql/05-page-labels.sql` holds only the new labels.
|
||||
- [x] 6.5 Branding fields on Companies: logo upload and accent colour. Event lead detail: the page address and UTM values. The source label is Web page.
|
||||
- [x] 6.6 Labels in `defaultMessages.ts` with Chinese in `zh_CN.seed.json`, then `npm run i18n:sql`. This change's `sql/05-page-labels.sql` holds only the new labels.
|
||||
- Verify (6.1 to 6.6): portal verify.
|
||||
|
||||
## 7. Release
|
||||
|
||||
Reference in new issue
Block a user