mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 09:13:23 +00:00
Eleventh batch of the note-ui-commons extraction, and the first to exercise gate #1 (app-side reads of commons Res) for a string shared with a native screen — no duplication. - commons/ui/note/RelayDiscoveryCard.kt: the NIP-66 relay discovery/monitor card (relay URL, latency health chips, network/relay-type/requirements/ NIPs/kinds/topics/geohashes). Pure value-in — takes the quartz event; the entry's unused accountViewModel/nav are dropped. - commons/ui/theme: adds ColorScheme.allGoodColor / warningColor (the green/amber status colors), mirroring the Android values. - Migrated the 10 relay_monitor_* / relay_discovery_* strings the card uses into commons. Seven of them are shared with the native RelayInformationScreen, which now reads them from commons Res instead — so the keys live in exactly one place. relay_monitor_reports (screen-only) stays app-side. - amethyst keeps the thin RenderRelayDiscovery(Note, …) dispatcher entry. 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