mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 19:28:25 +00:00
NoteCompose and its whole closure, 176 files, move from the app to commonsUI/commonMain: the note card, every renderer under ui/note/types (and lists), elements, nip22Comments, the channel and DM headers the card embeds, their relay observers, and the NotePlatform slot with its call-site shims. Packages map ui.* -> commons.ui.*, service.relayClient.* -> commons.relayClient.*, model -> commons.model. The code compiles for Android, Desktop and iOS; AndroidNotePlatform stays in the app, installed in the theme. Prep for commonMain: unused LocalContext lookups dropped; locale titlecase via String.capitalize(Locale.current); the sensitive-content preload through Coil's SingletonImageLoader; rememberViewModel (expect/actual) replaces viewModel() in the zap poll and bounty reward; MediaAspectRatioCache locks with KmpLock; AES_GCM_NAME and the quartz BigDecimal where JVM-only members were used; the app's ClickableUrl becomes ClickableUrlOrBlossom so it no longer overloads the shared ClickableUrl ambiguously. A few declarations used from the app went from internal to public. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S7FuNBSKiyVecARSoE4B9P