alpha
Login
or
Join now
zephyra.zone
/
grain
Star
1
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
grain.social is a photo sharing platform built on atproto.
Star
1
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
grain
/
test
/
at
main
1 file
Chad Miller
fix: consistent country display across sidebar and gallery cards
2mo ago
4358fc6a
formatLocation.test.ts
fix: consistent country display across sidebar and gallery cards - getLocations: use normalised ISO-2 code in multi-part display names so all rows in a group render identically (fixes "Portland, Oregon, USA" appearing alongside "...US" entries). Country-only groups expand to the full country name via Intl.DisplayNames ("GR" → "Greece"). - country helper: add name→code reverse lookup so clicking "Greece" in the sidebar still matches records stored as "GR". Brute-forces 2-letter codes since Intl.supportedValuesOf doesn't accept "region". Prefers earlier alphabetical codes when names collide (GB wins over UK). - formatStoredLocation: normalise the country tail on gallery cards and suppress it when the primary label already names the country (fixes "Greece, GR" on the gallery card).
2 months ago