Skip to content

feat(registration): a tall sign-up form with one pinned Register and a clear confirmation - #529

Merged
Ardnived merged 13 commits into
mainfrom
feat/register-tall-form
Nov 27, 2026
Merged

Ardnived merged 13 commits into
mainfrom
feat/register-tall-form

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The sign-up form opens nearly full height on a phone, with one Register pinned to the bottom, the next date preselected in a dropdown, and a mistyped email flagged on its box.
  • The confirmation keeps the class summary in place, names the date and email, keeps Add to calendar, and shows "Invite a friend along" open.
  • Joined: a full translation sync from production, which retires 13 dropped keys and moves the compact card's button to common.map.expand, because SahajCloud#1268 retired compact.open.

Change outline

Sheet height

SHEET_OPENING in views/DrawerStack/sheet-ladder.ts gives every view kind a height: tall (calendar, register), fit (event, share, filters) or open. It replaces both opensTall and the inline fitsContent check, and DrawerStack's snap effect reads it once. A new view kind fails typecheck until it picks a height.

Register bar

  • RegistrationView renders a DrawerFooter as a sibling of the body. It is sticky where EventView's bar is (hasMap && !isWide).
  • RegistrationForm portals its bar into that footer through registerSlot, using <button form={formId}>. Without a slot (stories, specs) the bar ends the form.
  • The bar holds one full-width solid Register with disabled={isPreview || !token} unchanged. Under it is a status line: checking → after 4 s, ask for the tick → or the check couldn't load.
  • The body scroll padding is now one shared constant, STICKY_FOOTER_CLEARANCE (drawer-style), used by EventView and the sign-up form.

Form

  • The form is noValidate.
  • The email is checked on blur when non-empty, re-checked on each edit once flagged, and re-checked after a restored draft remounts. A SahajCloud refusal is never re-checked on blur.
  • A restored date that is no longer offered gives way to the next.
  • The date is a Select labelled "Your first class". Options read "Tue 17 Nov · Next week".
  • FormField takes an optional flag and translates common.chrome.optional itself, as it already writes the required " *". Only the questions use it.

Confirmation

  • The Alert (status, focused after a live submit) reads "See you on {formatLongDate}." with the email line under it. The header retitles to "You're registered".
  • Then the online notice, AddToCalendar at its own width, and the open "Invite a friend along" section with ShareContent.
  • Cancel and Okay are gone.

Copy

  • New keys came from SahajCloud#1294 through pnpm sync:translations --write.
  • The heading keeps registration.form.title, whose English now reads "Register for this class" in production. SahajCloud#1298 drops the short-lived title_class.
  • registration.form.starting_date, okay and title_class are in RETIRING_KEYS. #1295's first-screen keys are in PENDING_KEYS.

Preview

CI publishes this PR's Workers preview. Routes to check at 390×844 with touch:

  • /gb/south-east/brighton/1488/register: summary, date, name, email and Register without dragging. Type anna@gmail, then tap away.
  • /ie/dublin/1355/register: the Online tag on the summary.
  • Ladle, Organisms / Registration Form: "Mistyped email" and "Confirmation".

Contract impact

None for the embed contract. A host sees the compact card's button read "Expand map" instead of "Find a class near you" until #466 removes the card.

Test results

  • Lean gate (lint, typecheck, unit): ✓
  • New specs: RegistrationForm.email.test.tsx (jsdom), SSR checks in RegistrationForm.test.tsx, opensTall, FormField optional, formatLongDate, and the shared clearance. Each new assertion was seen failing against the defect.
  • Build / size / a11y: left to CI.

Manual verification

  1. On a real iPhone, open the sign-up form with the keyboard up and confirm Register can still be reached. Not yet done.
  2. Do not press Register against the dev API key. It writes a real registration.

Notes for reviewer

  • An adversarial review ran locally before pushing. Adopted:
    • a blur erased a server refusal (5df7ac8);
    • a stale restored date (ec34cb6);
    • a duplicated clearance class (1efef57).
  • Dismissed:
    • "Register is missing on first render." The footer's callback ref sets the slot during commit, so React re-renders before paint. Screenshots at 390×844, 360×640 and 1280×800 show the bar on first paint.
    • "Lift submitted to the view." The form renders on its own in stories and specs and must own the state. The view mirrors it only to retitle the header.
  • Kept: live preview leaves the hint empty (owner's call).
  • feat(widget): submit or correct a class, and opt into a mailing list #318 adds opensTall for add and correct. When it rebases, those become entries in SHEET_OPENING.

🤖 Generated with Claude Code

Ardnived and others added 8 commits November 26, 2026 17:55
…a clear confirmation

- The sign-up form opens at the near-full snap on a phone (`opensTall`, beside DrawerStack's
  snap effect), so the summary, the date, name, email and Register show without a drag.
- Register is one full-width button in the drawer footer, pinned to the viewport on a phone
  sheet; Cancel and Okay go. It stays `disabled={isPreview || !token}`, with a line under it
  saying the check is running, asking for the tick after 4 s, or that the check failed to load.
- The first class is a dropdown on the next date, each option "Tue 17 Nov · Next week".
- The form is `noValidate`; a mistyped email is flagged on blur, re-checked on edit once
  flagged, and re-flagged after a remount restores the draft. Only the questions are marked
  "(optional)" (new `FormField` `optional` prop).
- The confirmation keeps the summary in place, retitles the header "You're registered", names
  the date (`formatLongDate`) and the email address, keeps the Add to calendar menu, and shows
  "Invite a friend along" open with the share block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…place with sync after SahajCloud#1294)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sync brings SahajCloud#1294's sign-up keys, so the placeholder before it is now the
production copy. It also carries production's drift since main's last sync:
- the 13 keys SahajCloud already dropped leave RETIRING_KEYS;
- compact.open is gone (SahajCloud#1268), so the compact card's button reads
  common.map.expand, the key the inline embed (#466) wires for the same action;
- common.map.close and countries.place_title wait in PENDING_KEYS for #466.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running
✋ handed back: review-pr did not finish after 3 attempts

recent dispatches
  • 03:22Z review-pr · attempt 3 · session · timed out
  • 03:22Z review-pr · attempt 3 · session
  • 02:26Z review-pr · attempt 2 · session · timed out
  • 02:26Z review-pr · attempt 2 · session
  • 01:17Z review-pr · attempt 1 · session · timed out

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 27, 2026
@sydevs-dispatcher

Copy link
Copy Markdown
Contributor

Not required, so not blocking: Browser lane failed. A preview link in the body may not open until it passes.

🤖 sydevs dispatcher

@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 27, 2026
Ardnived and others added 2 commits November 26, 2026 18:48
…nced

SahajCloud#1298 drops title_class: registration.form.title was never translated outside
English, so its English now reads "Register for this class" in production. The sync also
brings #1295's first-screen keys, pending for that screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	CHANGELOG.md
#	DESIGN_SYSTEM.md
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
sahajatlas-design e77816c Nov 27 2026, 02:31 AM

@sydevs-dispatcher sydevs-dispatcher Bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 27, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 27, 2026
…itle_class leaves the snapshot

The confirmation names the address ("We'll email a confirmation to …") under the "You're
registered" heading, so the lane asserts those instead of the preview-only followup line.
SahajCloud#1298 has deployed, so the sync drops title_class and its RETIRING_KEYS entry goes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Ardnived
Ardnived merged commit 67242c1 into main Nov 27, 2026
14 checks passed
@Ardnived
Ardnived deleted the feat/register-tall-form branch November 27, 2026 02:35
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Done in SYDevelopers Technical Roadmap Nov 27, 2026
Ardnived added a commit that referenced this pull request Nov 27, 2026
… opening in one table

SearchWithLocation folds into SearchField: `near="home"` on the first screen,
the region on a place page, nothing elsewhere. Where the line shows is
locationLineHere, a pure rule with its spec, so RegionView only hands its
region over. MapSearch stays the geocoder organism both SearchField and the
class-submission form build on.

The phone sheet's openings move into sheetOpening, the total table
#529 introduces, with the first screen as its `home`
entry, so whichever PR lands second only edits rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ardnived added a commit that referenced this pull request Nov 27, 2026
Brings in #500–#530. Resolutions:
- CompactEmbedView stays deleted; its #529 label change and changelog line are moot.
- DrawerStack keeps the inline arm (`canCollapse` reads `sheeted`) on main's dismiss,
  showResults, sheetTall and dimmed scrim, beside "Close map".
- LocatorProvider wraps MapProviders, so the inline map and its filters share one
  locator, and the expanded map gets its own.
- Registration, Share and the form take `form-column` over main's new markup.
- The panel stays 384px; the EventActions story previews 336px and 272px.
- Translations take main's production snapshot; the two keys #466 wires leave PENDING_KEYS.
- The story harness gains `expanded`, so the sticky-Register story shows the sheet.
- embed.spec picks the expanded dialog first: the panel inside now reads the same name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-dispatcher sydevs-dispatcher Bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 27, 2026
Ardnived added a commit that referenced this pull request Nov 27, 2026
…ses near the visitor

"Free meditation classes" heads the first screen, Filters beside it, and the
search spans the panel with "Enter your city or postcode" (search.chrome.
placeholder, reworded in sydevs/SahajCloud#1299) as its hint everywhere.

SearchField takes a `near` prop and hangs one line under the field, drawn
with the Alert atom: the guessed town ("Classes near Prague ›", with an × that
removes it for the visit), or on the first screen "Classes near me ›", the
filters' Near me; a refusal takes the line away and moves the cursor to the
field. locationLineHere keeps it to the first screen and other countries'
pages, never a region, a city, search results or the visitor's own country.
The old banner and its GeolocationPrompt molecule go.

The loader now waits for /geo.js before it boots (at most GEO_WAIT_MS), as the
standalone page does, so the location is there at the first render and the
visitor's country leads the country list without ever reordering it; a guess
removed before the screen opened leaves the busiest-first order.

The phone sheet's openings are #529's sheetOpening table with the first
screen as its `home` row (380px, so the first country shows). The loading
skeleton and the error chrome take the new shape. The session dismissal flag
moves beside the location parser, keeping turf out of the store's chunk.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-dispatcher sydevs-dispatcher Bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 27, 2026
@sydevs-dispatcher

Copy link
Copy Markdown
Contributor

The session for review-pr did not finish after 3 attempts. I have stopped retrying. A @sydevs-bot verb or mention from you starts me again.

🤖 sydevs dispatcher

Ardnived added a commit that referenced this pull request Nov 27, 2026
…ses near the visitor (#531)

* feat(ui): the first screen leads with its title, the search, and classes near the visitor

"Free meditation classes" heads the first screen, Filters beside it, and the
search spans the panel with "Enter your city or postcode" (search.chrome.
placeholder, reworded in sydevs/SahajCloud#1299) as its hint everywhere.

SearchField takes a `near` prop and hangs one line under the field, drawn
with the Alert atom: the guessed town ("Classes near Prague ›", with an × that
removes it for the visit), or on the first screen "Classes near me ›", the
filters' Near me; a refusal takes the line away and moves the cursor to the
field. locationLineHere keeps it to the first screen and other countries'
pages, never a region, a city, search results or the visitor's own country.
The old banner and its GeolocationPrompt molecule go.

The loader now waits for /geo.js before it boots (at most GEO_WAIT_MS), as the
standalone page does, so the location is there at the first render and the
visitor's country leads the country list without ever reordering it; a guess
removed before the screen opened leaves the busiest-first order.

The phone sheet's openings are #529's sheetOpening table with the first
screen as its `home` row (380px, so the first country shows). The loading
skeleton and the error chrome take the new shape. The session dismissal flag
moves beside the location parser, keeping turf out of the store's chunk.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(ci): the location line's skeleton is the Alert's 36px, and the copied contract matches main

The first screen's skeleton drew a 40px line where the real Alert is 36px, so
the browser lane saw the search band 4px taller while loading. The squash
carried a stale payload-types.ts; it is main's again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* build(size): embed's budget to 338 KiB for the first screen

The first screen's title, its location line (the Alert atom, the filters' Near
me hook and the rules for where the guess shows) and its own sheet stop are
eager on purpose: the line must be there at the first paint, so it cannot sit
behind a lazy seam. The embed graph shipped 336.0 KiB against 336 in CI, the
growth the feature is; standalone keeps its 336 with 1.0 KiB spare.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant