mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
Eighth batch of the note-ui-commons extraction. The two Roadstr renderers (report kind 1315, confirmation kind 1316) are self-contained except for the map hero, which is a platform tile view. - commons/ui/note/RoadEventCard.kt: RoadEventReportCard(event, map) and RoadEventConfirmationCard(event, map). Commons owns all the logic — the category emoji/color/label palette, the geohash→point resolution, the freshness-based pin opacity, the floating category pill, and the layout. The map arrives as a typed RoadEventMap slot (lat, lon, pinColor, pinEmoji, pinAlpha) so the native LocationPreviewMap stays in the app. Labels resolve via commons Res. - amethyst keeps thin RenderRoadEventReport(Note) / RenderRoadEventConfirmation(Note) entries that decode the event and pass LocationPreviewMap as the slot. - Migrated all 18 road_event_* strings with their locale translations into commons/composeResources; deleted the amethyst copies. Verified: :commons:compileKotlinJvm and :amethyst:compileFdroidDebugKotlin both pass; every touched strings.xml is well-formed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gmrt3jwYPDJ38MJGJ6GaNr