mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 03:38:23 +00:00
First steps of shrinking AccountViewModel (see the plan in the PR): - UiSettings (the settings enums), UiSettingsFlow and UiSettingsState move to commonsUI (they carry Compose StringResource labels, so not the headless commons). The app's global uiState is unchanged. - New LocalDisplaySettings (showProfilePictures, performance mode, autoPlayVideos, showUrlPreview, showImages, startVideoPlayback), collected from UiSettingsState by collectDisplaySettings() and provided by AmethystTheme, which also derives LocalAnimationsEnabled from it. UserAvatar's loadProfilePicture / loadRobohash / autoPlayGif default to it, so InnerUserPicture no longer reads them from the AccountViewModel and drops that parameter. - ToastManager and the toast message types move to commonsUI. The dialogs that render them stay in the app. - 128 accountViewModel.getNoteIfExists / checkGetOrCreate* / channel lookups in 59 files call LocalCache directly; the 13 AccountViewModel wrappers left without callers are deleted. - Baseline profile entries follow the moved classes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0168wY9t7i9NC5u3svyMxEz6