fix(ui): avoid mixed theme preview frames#458
Conversation
Greptile SummaryThis PR fixes transient mixed-color frames in the theme selector by consolidating three separate state variables (
Confidence Score: 5/5Safe to merge — the change is narrowly scoped to theme-selector state management and is well covered by the existing interaction test suite. The refactor correctly uses functional updaters for all concurrent-safe paths (move, pick, close), batches selectTheme with setThemeSelectorState in acceptThemeSelector so no intermediate frame can show a mismatched theme, and removes the themeSelectorOriginRef without leaving any dangling restore path. The escape/revert, accept, and reopen-on-committed-theme flows are all exercised by the existing tests in AppHost.interactions.test.tsx. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "fix(ui): avoid mixed theme preview frame..." | Re-trigger Greptile |
b9bc21c to
e855db4
Compare
Summary
Verification
bun test src/ui/AppHost.interactions.test.tsx --test-name-pattern 'theme'\n-bun run typecheck\n\nThis PR description was generated by Pi using OpenAI GPT-5