Skip to content

Make UK postcode field optional - #1153

Merged
hturnbull93 merged 1 commit into
mainfrom
uk-postcode-optional
Sep 22, 2026
Merged

hturnbull93 merged 1 commit into
mainfrom
uk-postcode-optional

Conversation

@hturnbull93

Copy link
Copy Markdown
Collaborator

Summary

  • UK postcode is no longer required on the onboarding step-1 form and the browse/loop signup form (dropped required on both inputs, updated the button-disable guard).
  • Server-side create check no longer rejects a missing postcode.
  • Whatever's entered is still checked against the full UK postcode pattern (client pattern attr + server isValidUKPostcode), on both create and update now — previously the server check only ran on create.
  • Dropped the * from the "Postcode" field label (EN/DE/FR) since it's no longer required.

Test plan

  • npx tsc --noEmit -p . passes
  • npx vitest run src/lib/components/onboarding/options.test.ts passes (6/6)
  • Manual: submit UK signup with postcode blank → succeeds
  • Manual: submit UK signup with malformed postcode (e.g. "SW1A") → still rejected

🤖 Generated with Claude Code

https://claude.ai/code/session_01R36gwCBE9vC9fxKMVPmapU

Drops the required constraint on the step-1 and browse-signup postcode
inputs (client) and the create-only postcode check (server), while
keeping full format validation whenever a value is actually entered.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R36gwCBE9vC9fxKMVPmapU
@netlify

netlify Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for pauseai ready!

Name Link
🔨 Latest commit 1bfbf09
🔍 Latest deploy log https://app.netlify.com/projects/pauseai/deploys/6ab2c189dc1e2800086b2a90
😎 Deploy Preview https://deploy-preview-1153--pauseai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 68 (🟢 up 4 from production)
Accessibility: 91 (no change from production)
Best Practices: 100 (no change from production)
SEO: 82 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hturnbull93
hturnbull93 merged commit dbf8456 into main Sep 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant