Landing-page forms drop job title, ask for one service in a dropdown and fold the privacy notice behind one line above the consent box. QR, invitation and customer forms keep the full form. Sections with a colour look join with no gap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2.4 KiB
2.4 KiB
Tasks
1. Portal
-
1.1
RegistrationFormcompactoption, passed byLandingForm:- no job title;
- interests in one optional
<select>("Service interested in", first option "Choose a service"), which setsinterestIdsto[]or[id]; - the notice inside a
<details>with the summary "How we use your details (English / Bahasa Malaysia)", just above the consent box.
Verify: tests for the landing form (fields, one interest posted, the notice folded and openable) and for the QR form (unchanged) fail first, then pass.
-
1.2
CmsBlocks.tsxbleeds(): a block with a non-default look counts too. Verify: a render test (a dark CTA followed by a dark text block has no gap) fails first, then passes. -
1.3 Add the labels (
RegServiceInterest,RegChooseService,RegNoticeSummary) todefaultMessages.ts,zh_CN.seed.jsonandsql/01-compact-form-labels.sql, and regenerate the local seed.
2. Verification
- 2.1 Use Playwright on port 3001 for
/p/INS/hotel-technology-nativeat 1280 px and 390 px:- check the short form;
- check that the notice opens;
- check that the closing bands join;
- check that an event's QR form (opened from Events) still shows the full form.
- 2.2 Run the full vitest (exit 0), tsc, lint and
openspec validate --strict. Add a release note.
Notes (2026-12-04)
- Red first:
- the compact-form tests (fields, one service posted, the notice folded) and the band-join test failed first;
- the full-form test passed from the start, as the baseline it guards.
- Live check on
/p/INS/hotel-technology-native(port 3001):- the hero form shows name, mobile, email, company and "Service interested in", with no job title;
- the notice opens from "How we use your details";
- the hero runs into the trust strip;
- the dark call to action and the dark footer join into one ending.
- Fix from the live check: joined bands had lost their colour.
Sectiontreated every joining block as a full-width hero. Now only a full-width hero skips the page width, and the band test also checks the colour. - Not checked live: the QR form staying full. The
RegistrationFormtest covers it (job title, checkboxes, notice open). - Results: vitest 2002 passed (exit 0); tsc clean; lint 0 errors (the 4 warnings were already there).
Workflow follow-up
- Open a PR to
mainand merge it. Archive the change on its own branch, with its own PR.