Conversation
There was a problem hiding this comment.
Pull request overview
Simplifies the Preferences overlay behavior around reset and Escape handling, aligning the UI with “reset applies defaults” and “Escape closes the modal” expectations.
Changes:
- Update “Reset” behavior to apply default sort threshold and watch configuration via callbacks.
- Remove per-field Escape handlers that previously reverted individual inputs.
- Expand unit tests to validate default-application on reset and closing on Escape while editing.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| cardinal/src/components/PreferencesOverlay.tsx | Reset now applies default sort + watch config; Escape handling relies on the existing window-level listener and removes per-field key handlers. |
| cardinal/src/components/tests/PreferencesOverlay.test.tsx | Updates reset expectations and adds coverage for closing the overlay on Escape while editing a field. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Thanks for cleaning these up. Both were patterns I mirrored from the ignore-paths block without questioning. The redundant Escape got slightly worse with my third handler, and I should have caught that reset was only touching the inputs. |
5c165bc to
dfe415a
Compare
No problem, that's an old issue and I didn't recognize it before, . : D |
No description provided.