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
/
server
/
helpers
/
at
main
7 files
Chad Miller
fix: consistent country display across sidebar and gallery cards
3mo ago
4358fc6a
cameraName.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).
3 months ago
country.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).
3 months ago
formatLocation.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).
3 months ago
lookupHandles.ts
fix: show handle instead of DID in followers/following/suggestions Extract lookupHandles helper to resolve handles from _repos for users without a grain profile. Applied to getFollowers, getFollowing, getKnownFollowers, getSuggestedFollows, and DRYed up getNotifications. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 months ago
notifPrefs.ts
feat: add notification preferences with per-category push/inApp filtering - Add notification settings page under /settings/notifications - Filter notifications by category (favorites, follows, comments, mentions) - Support push and inApp toggles per category - Respect "from follows only" preference for push notifications - Add settings link in main settings page Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 months ago
resolveHandle.ts
feat: resolve handles in AT URIs at XRPC layer Add resolveHandle helper to convert handles to DIDs via _repos table. Apply AT URI handle resolution in getGallery and getStory so URLs like /profile/chadtmiller.com/gallery/... work without frontend resolution. Bump hatk to alpha.54 for feed-layer handle resolution. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 months ago
unseenCount.ts
feat: add badge count to push notifications Query unseen notification count at push time and include it in the APNs payload so the app icon badge updates on every push. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 months ago