Skip to content

Label org types "Studio" and "Association" everywhere - #222

Closed
engleek wants to merge 1 commit into
mainfrom
fix/org-type-labels
Closed

engleek wants to merge 1 commit into
mainfrom
fix/org-type-labels

Conversation

@engleek

@engleek engleek commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #202.

  • Cards showed studio and assoc, in lowercase.
  • The org page showed the bare enum value, e.g. association. Chakra v2's Badge uppercased these labels and v3's doesn't, so they surfaced as raw values with the migration.
  • The type → colour map was defined four times: the card, the org page, the form and the /places markers.

Change

  • app/utils/orgTypes.js holds each type's label, shortLabel and colour palette, with orgTypeLabel(type, { short }) and orgTypeColor(type). Unknown types fall back to the raw value and gray.
  • Cards: "Studio" / "Assoc." on the small thumbnail badge.
  • Org page: "Studio" / "Association".
  • Form and map: the radio cards and /places markers take their labels and colours from the module.
  • Colours: unchanged. I checked the card and org page badges in the browser.

Tests

A new e2e test checks /studios and /associations: the cards show "Studio" / "Assoc.", and the first org's page shows "Studio" / "Association".

  • On main: it fails.
  • Locally: the full e2e suite and the unit and story tests pass.

🤖 Generated with Claude Code

@engleek
engleek force-pushed the fix/org-type-labels branch from 8323ec0 to 4af6fc5 Compare October 3, 2026 16:13
Cards showed the raw "studio" and an ad-hoc "assoc", and the org page
the bare enum value: Chakra v2's Badge upper-cased these, v3's doesn't.
The type colours were defined four times over.

One orgTypes module now holds each type's label, short label and colour
palette. Cards show "Studio" / "Assoc." on their small thumbnail badge,
the org page "Studio" / "Association", and the form and map markers
take their labels and colours from the same place.

Fixes #202.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@engleek
engleek force-pushed the fix/org-type-labels branch from 4af6fc5 to e99849e Compare October 4, 2026 08:22
engleek added a commit that referenced this pull request Oct 4, 2026
The seed drew latitudes from the whole -90°..90° range, but Web Mercator
maps stop near ±85°: past that the tile row is negative and pigeon-maps
loads no tiles. About one place in twenty landed there, so the map-tile
e2e test failed whenever the first event happened to be one (#222's run
37188728932). Real places never are; keep seeded latitudes within ±80°.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@engleek

engleek commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #249, which merged this change into main.

@engleek engleek closed this Oct 4, 2026
engleek added a commit that referenced this pull request Oct 4, 2026
The seed drew latitudes from the whole -90°..90° range, but Web Mercator
maps stop near ±85°: past that the tile row is negative and pigeon-maps
loads no tiles. About one place in twenty landed there, so the map-tile
e2e test failed whenever the first event happened to be one (#222's run
37188728932). Real places never are; keep seeded latitudes within ±80°.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@engleek
engleek deleted the fix/org-type-labels branch October 9, 2026 20:14
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.

Show org types as "Studio" / "Association"

1 participant