Skip to content

fix(registration): a left-aligned, grey consent line that says "By registering" - #506

Merged
Ardnived merged 6 commits into
mainfrom
fix/privacy-policy-link
Nov 26, 2026
Merged

Ardnived merged 6 commits into
mainfrom
fix/privacy-policy-link

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The consent line at the end of the sign-up form is now left-aligned, text-sm (14px), in text-gray-11.
  • It says "By registering…", to match the button. That copy is CMS-owned and already live.

Change outline

Components — ConsentNote

The paragraph drops the centred 12px setting. The link already had what the ticket asked for on main: the Link atom's touch-target relative base (#432), and a new tab with noopener from isExternal.

 RegistrationFields                                  src/components/organisms/RegistrationForm/RegistrationForm.tsx
   …
   ConsentNote(t('registration.form.privacy_policy'))
     splitInlineLink(text)                           # the <link>…</link> markup from #371
-    <p text-center text-xs>
+    <p CONSENT_CLASSES = text-sm text-gray-11>       # start-aligned, both branches
       before · <Link isExternal href=PRIVACY_POLICY_URL> · after

Contract — sy-atlas-translations, English

One existing key changes its wording. No key is added or removed. It was published to production on 2026-11-26, and the snapshot's line mirrors it.

 registration.form.privacy_policy
-  "By submitting you confirm you agree … in accordance with our <link>privacy policy</link>."
+  "By registering you confirm you agree … in accordance with our <link>privacy policy</link>."

Preview

  • Sign-up form, Balham Library: scroll to the end. Best at 390×844 with touch.
  • Component library: preview pending. Organisms › Registration Form (?story=organisms--registration-form), light and dark.

Test results

  • Lean gate: ✓ lint + typecheck + unit (206 files, 2596 passed, 1 skipped)
  • Targeted specs: src/components/organisms/RegistrationForm, 27 passed
  • Accessibility gate, local Ladle, --story organisms--registration-form: clean, 50 controls measured
  • Build: N/A locally (CI runs build + size)

Manual verification

  1. On the sign-up preview at 390×844 with touch, scroll to the end. The sentence reads "By registering you confirm…", starts at the left edge, and is grey.
  2. Tap "privacy policy". https://wemeditate.com/privacy opens in a new tab.
  3. In Elements, the link has target="_blank" and its rel contains noopener. The paragraph's computed font-size is 14px and its text-align is start.

Notes for reviewer

  • The ticket was written against an older main. It planned two new keys with a %{link} slot. Main had since shipped the link through <link>…</link> markup in the existing key (fix(search): embed, search and navigation fixes from the 6 Nov bug sweep #371). This PR keeps that, so it adds no keys and retires none.
  • A translation without <link> reads as plain text with no link, as on main. The ticket wanted the link appended after the sentence. That would repeat "privacy policy" in locales whose sentence already says it in plain text.
  • The privacy address stays We Meditate's for every site, as the ticket's question 1 recommended (option A).
  • Copy: only the English value was written in production, through the Local API, and every other locale was checked unchanged. The snapshot takes only that line. A full pnpm sync:translations --write also pulls unrelated drift, including dropping compact.open, which is blocked until feat(widget): open every embed inline; expand the map over the page #466.
  • No mailing-list box. That belongs to feat(widget): submit or correct a class, and opt into a mailing list #147 and feat(widget): submit or correct a class, and opt into a mailing list #318.
  • Review findings dismissed:
    • "The snapshot was hand-edited while the CMS still holds the old wording": the CMS holds the new wording, and the sync produced this line from production.
    • "Tests pin utility class names": the acceptance criteria name text-sm and text-gray-11, and an SSR test cannot compute styles.
  • Review findings fixed:
    • Redundant tap-area classes on the link, which the atom already carries.
    • A class-list assertion of the 44px tap area. The a11y gate measures that by hit test.
    • An empty consent line in the older form tests.
    • The missing CHANGELOG entry.
  • Security review skipped: no trigger path or sink is in the diff.
Detail
  • Self-review: the diff was three files and under the tiny threshold when reviewed, so /simplify was skipped. It got an inline read plus /code-review high. The CHANGELOG entry added a fourth file afterwards.
  • Measured locally in headless Chromium at 390×844 with touch, on the dev server and in Ladle:
    • Text: the paragraph is 14px with text-align: start; its colour is rgb(99, 99, 94) light and rgb(181, 179, 173) dark.
    • Link: rel="noopener noreferrer"; the box is 20px tall and its ::after tap area is 44px.
  • From the layout, not measured: the tap area reaches 12px below the paragraph. That equals the form's gap-3 to the Turnstile slot, so it touches the next element without overlapping it.
  • Docs checked: docs/rules/i18n-and-state.md's description of the <link> markup still holds.

🤖 Generated with Claude Code

Ardnived and others added 5 commits November 26, 2026 10:50
…a thumb-sized privacy link

The line under the sign-up fields was centred at 12px, and its privacy-policy
link was only as tall as the text. It now sits left-aligned at text-sm in
text-gray-11, and the link carries touch-target, so a touch screen gets a 44px
tap area without the line growing taller.

The English copy now reads "By registering", to match the button. It was
published in sy-atlas-translations and only that line was synced into the
snapshot, because a full sync still drops compact.open (#466).

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

The atom's base already carries touch-target relative (#432), so the classes the
consent line added were a duplicate.

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

The tests outside the consent-line group rendered an empty consent paragraph.

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

sydevs-dispatcher Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

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

The browser gate measures the 44px area by hit test; a class-list assertion
proves nothing about it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Ardnived
Ardnived merged commit 70a857e into main Nov 26, 2026
13 checks passed
@Ardnived
Ardnived deleted the fix/privacy-policy-link branch November 26, 2026 18:00
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 26, 2026
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