mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 19:28:25 +00:00
A transitive-blocker sweep (imports plus same-package references) found 96 files under amethyst/ui that no longer depend on Android or on app-only code. This moves 68 of them, deletes 3 app copies of code that commons already had, and leaves 25 that are Android-only by nature. - To commons: the chatroom-list and relay-group filters, the *LastRead routes, composer state (NewMessageTagger, DraftTagState, IExpiration, PreviewState, SplitConversor), FilterByListParams and the small feed states, RelayFeedViewModel, UserExternalIdentitiesViewModel, TorDialogViewModel, the QR structured-append accumulator, PitchShifter and others. - To commonsUI: InformationDialog, UrlPreviewCard, the mention input transformation, the nav wrappers (ObservableNav, TwoPaneNav, ShareToDMNav), SettingsCatalog, KeyboardState and feature composables under their feature ui/ packages. - Deleted app copies: ui/note/PubKeyFormatter, ui/note/ZapFormatter and the EqualImmutableLists shim; callers use the commons originals. - commonMain fixes the moves needed: String.format, codePointAt, Integer.parseInt, javaClass and a Class<T> ViewModel factory replaced by their KMP equivalents. - Eleven pure unit tests moved with their code. The per-file table, the files kept in the app and why, and what the sweep found outside ui/ are in commons/plans/2026-08-30-commons-migration-sweep.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BkG4KTqmnprUK9BAcwAyc8