mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 11:48:24 +00:00
With AccountViewModel shared, three of step 5's hubs had nothing left tying them to the app: - RouteMaker -> commonsUI commons.ui.navigation.routes (89 files used it). - The app's DisappearingScaffold overload (immersive scrolling read from the account's settings, bars pinned on large screens) -> commonsUI commons.ui.layouts, file AccountDisappearingScaffold.kt, beside the shared scaffold it wraps. - The accountViewModel overloads of the per-note observe* helpers -> commonsUI commons.relayClient.event, file AccountEventObservers.kt, beside the shared observers they delegate to. The overloads are kept rather than dropped: they read the account and event finder from the view model, so they work under Activity roots that provide no composition locals, and dropping them means rewriting ~176 call sites. RouteForPointerTest moves to commonsUI's jvmTest with the code it tests, on kotlin.test; that source set gains mockk (test only, already used by the app and commonsUI's androidHostTest). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S7FuNBSKiyVecARSoE4B9P