Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • A Ahad Mobile
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • holatech
  • Ahad Mobile
  • Merge requests
  • !39

fix(cards): hide countries the issuer cannot use from the billing picker

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Ngoc Duong requested to merge fix/page_card into develop Sep 03, 2026
  • Overview 0
  • Commits 5
  • Pipelines 2
  • Changes 22

The country catalog is shared with the dial-code pickers, so it carries 12 entries that are a flag and a phone code rather than an ISO 3166-1 country: Ascension Island, the EU, the UN, England and friends. None carries an alpha-3, which is what Reap needs, so picking one got create-card rejected with "A valid country is required to issue a card." — and Ascension Island sorts first in the picker, so it is the one users land on.

  • CountrySelector gains issuableOnly, set on the billing address form only. The dial-code pickers still need Kosovo's +383 and Ascension's +247.
  • Billing auto-fill matches against the filtered list too, which also stops the UN (+1) outranking the US when guessing a country from a dial code.
  • A country saved to MMKV before the filter existed is dropped on rehydrate and blocked at submit, with an actionable message instead of the issuer's.
  • Both checks stand down when no catalog entry carries an alpha-3, so a backend predating the field cannot deadlock card creation.

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/page_card