trails/apps/journal/app/components
Ullrich Schäfer 2cb32cd2d3
activity-sport-type: schema, contract, write/read paths, federation
Implements the activity-sport-type change (specs/activity-sport-type):

- db: nullable `sport_type` column on journal.activities + SportType /
  SPORT_TYPES (text().$type<> convention).
- api: optional sportType on the activity read + create schemas (mirrored
  SPORT_TYPES; @trails-cool/api stays zod-only).
- write: ActivityInput + createActivity persist it; mapSportType() normalizes
  provider strings (Komoot bulk import passes tour.sport; Garmin unset);
  threaded through the unified importActivity.
- read/display: sportType added to the detail/feed/profile loaders and the v1
  REST endpoints; shared SportBadge (glyph + i18n label) on detail, feed, and
  profile; sport-aware feed verb; create-form <select>.
- i18n: journal.activities.sport.* (labels + verbs) in en + de.
- federation: `sport` PropertyValue on the Note when set.

Tests: mapSportType unit table; federation asserts the sport attachment is
present when set and omitted when unset. typecheck + lint + unit all green.
E2E (create→badge) still to add.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 14:11:41 +02:00
..
AccountDropdown.tsx Redesign navbar with avatar dropdown and mobile drawer 2026-04-26 09:56:20 +02:00
AlphaBanner.tsx Add legal pages, ToS acceptance, and alpha banner 2026-04-18 00:08:48 +02:00
Avatar.tsx Redesign navbar with avatar dropdown and mobile drawer 2026-04-26 09:56:20 +02:00
ClientDate.tsx Implement notifications + supporting fixes 2026-04-26 01:28:55 +02:00
ClientMap.tsx Add ClientMap wrapper to avoid lazy() SSR resolution 2026-04-06 22:52:57 +02:00
CollectionPage.tsx fix(journal): show remote followers in follower/following lists 2026-06-07 09:13:44 +02:00
FollowButton.tsx Locked-account profiles: private = stub + Pending follow flow 2026-04-25 23:38:26 +02:00
Footer.tsx Stop Sentry on logout; fix E2E + Dockerfile for merged consolidation 2026-04-18 00:40:36 +02:00
LocaleContext.tsx Pass full locale from Accept-Language to ClientDate 2026-03-29 11:46:21 +02:00
MobileNavMenu.tsx Redesign navbar with avatar dropdown and mobile drawer 2026-04-26 09:56:20 +02:00
RouteMapThumbnail.client.tsx chore(ts): drop two more redundant casts 2026-05-26 01:02:49 +02:00
SportBadge.tsx activity-sport-type: schema, contract, write/read paths, federation 2026-06-12 14:11:41 +02:00