Skip to content

components 0.7.1: Form.PhoneNumber read-only, StripeForm.AccountBank shows the host's errors - #210

Merged
joelmsanto merged 2 commits into
mainfrom
form/phone-number-read-only-2026-11-11
Nov 11, 2026
Merged

joelmsanto merged 2 commits into
mainfrom
form/phone-number-read-only-2026-11-11

Conversation

@joelmsanto

Copy link
Copy Markdown
Contributor

What

Form.PhoneNumber takes readOnly (default false). Read-only, the phone field is not editable and its flag opens no country list. Version 0.7.1, not published yet.

Why

CustomerApp's step-up (the SMS code before a bank change or an email change) sends its code to the phone the account already has, and shows that number through this form. The field looked editable and ignored what was typed (owner, 2026-11-11). The sign-up and the profile, where the number is typed, do not pass the prop and render as before.

Checked

Form/__tests__/FormPhoneNumber.test.js: 2 of 2. ESLint does not load in this checkout (its config package is not installed).

Order

Publish 0.7.1, then CustomerApp takes it and passes readOnly from StepUpSection.

🤖 Generated with Claude Code

Joely and others added 2 commits November 11, 2026 07:43
…ad-only

- Form.PhoneNumber takes `readOnly` (the name the package's forms use): the
  field takes no typing and its flag opens no country list. The app's step-up
  sends its code to the phone the account already has, and showed that number
  in a field that looked editable while ignoring what was typed.
- Without the prop the form is what it was.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…'s errors under their inputs

- StripeForm.AccountBank takes `errors` (`{ field, code, message }`, the
  shape Form.BusinessInfo and Form.VehicleInfo take) and shows each under its
  input with FieldErrorText, the input marked. The form still validates
  nothing by itself; without the prop it is the form it was.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@joelmsanto joelmsanto changed the title components 0.7.1: Form.PhoneNumber can show a number read-only components 0.7.1: Form.PhoneNumber read-only, StripeForm.AccountBank shows the host's errors Nov 11, 2026
@joelmsanto
joelmsanto merged commit eed3446 into main Nov 11, 2026
1 check failed
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