Skip to content

feat: add country selector screen (ACC-7226)#356

Draft
OnurVar wants to merge 1 commit intoov/feat/ACC-6921-billing-address-formfrom
ov/feat/ACC-7226-country-selector
Draft

feat: add country selector screen (ACC-7226)#356
OnurVar wants to merge 1 commit intoov/feat/ACC-6921-billing-address-formfrom
ov/feat/ACC-7226-country-selector

Conversation

@OnurVar
Copy link
Copy Markdown
Contributor

@OnurVar OnurVar commented Apr 24, 2026

Summary

  • New CountrySelectorScreen — full-screen picker with search, auto-focus, flag + name rows, pre-scrolled to current selection.
  • Static ISO 3166-1 alpha-2 country list at `src/Components/internal/countries.ts` (+ `getCountryName` helper).
  • `flagEmoji` helper using regional-indicator codepoints (no asset dep).
  • Registers `CountrySelectorScreen` on `CheckoutRoute.countrySelector` in `CheckoutFlow`'s screen map.
  • `CountrySelectorRow` and `PrimerBillingAddressForm` now render the flag + localized country name.

Design

Jira

https://primerapi.atlassian.net/browse/ACC-7226

Test plan

  • `yarn typecheck` clean
  • `yarn lint` exit 0
  • iOS simulator: tap country row in billing form → picker opens with search focused → type "unit" → filters → pick country → pops back, row shows flag + name
  • Re-open picker → selected country highlighted and scrolled into view
  • Card + billing fields survive the push/pop round-trip
  • Android emulator: same

@OnurVar OnurVar self-assigned this Apr 26, 2026
@OnurVar OnurVar force-pushed the ov/feat/ACC-7226-country-selector branch from 431481f to dbcb16d Compare April 26, 2026 23:37
@OnurVar OnurVar force-pushed the ov/feat/ACC-6921-billing-address-form branch from fe52337 to 2b93479 Compare April 27, 2026 01:21
@OnurVar OnurVar force-pushed the ov/feat/ACC-7226-country-selector branch from dbcb16d to 5aa8c5e Compare April 27, 2026 01:21
@OnurVar OnurVar force-pushed the ov/feat/ACC-6921-billing-address-form branch from 2b93479 to e495b25 Compare April 27, 2026 01:41
@OnurVar OnurVar force-pushed the ov/feat/ACC-7226-country-selector branch from 5aa8c5e to bb3f26d Compare April 27, 2026 01:41
@OnurVar OnurVar force-pushed the ov/feat/ACC-6921-billing-address-form branch from e495b25 to d3e4c8b Compare April 27, 2026 01:50
@OnurVar OnurVar force-pushed the ov/feat/ACC-7226-country-selector branch from bb3f26d to 0038a77 Compare April 27, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant