mirror of
https://github.com/block/buzz.git
synced 2026-11-27 19:52:31 +00:00
Follow-up to #9894, addressing the review finding there. ## Problem Some desktop chat colors (for example Cyan `#06b6d4`) have no exact mobile swatch, so the Appearance picker shows the closest one (Jade). Tapping **Set** after changing only Light/Dark/System saved Jade's value (`#22c55e`), and that new color synced to every device. ## Fix On Set, the saved accent is kept unless the user picked a different color. Also adds doc comments to `appearanceModeProvider` and `AppearanceModeNotifier.setMode`. ## Tests - The existing mode-only picker test now starts from legacy Cyan and goes through the real `CommunityThemeNotifier.setPreference`, asserting the synced preference is unchanged. It fails with the fix reverted. - `just mobile-check` and `just mobile-test` pass. ## Try it 1. On desktop, set the chat color to a legacy color such as Cyan. 2. On mobile, open Settings → Appearance, change only Light/Dark/System, tap Set. 3. Desktop and other devices still show Cyan. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Arthur Garza <arthur.garzajr@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>