Skip to content

Country dropdown on forms; count every US spelling as one country - #2805

Open
maebeale wants to merge 3 commits into
mainfrom
maebeale/countries-field-drop-down
Open

maebeale wants to merge 3 commits into
mainfrom
maebeale/countries-field-drop-down

Conversation

@maebeale

@maebeale maebeale commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 3 Read 📖 one new form input plus read-time grouping across four country breakdowns

Registrants typed the US many ways (US, USA, United States), so event dashboards showed several countries when there was really one.

  • Dropdown — any form field whose identifier ends in _country (mailing_country, organization_country) now renders a country select, mirroring how _state fields already render a state select.
    • Covers existing forms too; no form edits or migration needed.
    • United States first, then every country A–Z (countries gem common names).
    • An unrecognized prefilled value stays selectable instead of being dropped.
  • Existing answers — new CountryName.label folds spellings into one at read time:
    • EventDashboard + AttendeesBreakdowns country charts.
    • The attendees country drill-in filter (matches every stored spelling).
    • FormResponseAggregator's world map. Country answers there are no longer split on , (some country names contain commas).
  • Stored address/answer values are untouched. No backfill.

🤖 Generated with Claude Code

@maebeale maebeale changed the title WIP: Country dropdown on registration forms Country dropdown on forms; count every US spelling as one country Oct 23, 2026
@maebeale
maebeale requested a review from jmilljr24 October 23, 2026 16:01
@maebeale

Copy link
Copy Markdown
Collaborator Author

@jmilljr24 Not sure how you'd want to do this

@maebeale
maebeale force-pushed the maebeale/countries-field-drop-down branch from cfc7434 to e1611ce Compare October 23, 2026 16:02
@maebeale
maebeale marked this pull request as ready for review October 23, 2026 16:20
maebeale and others added 3 commits October 23, 2026 12:21
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Free-text country answers (US, USA, United States…) split one country into
several on event dashboards. A dropdown stops new variants, and read-time
grouping folds the variants already on file without rewriting stored data.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/countries-field-drop-down branch from e1611ce to cbe2e0e Compare October 23, 2026 16:21
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