feat(settings): add reset to defaults button on settings pages#776
feat(settings): add reset to defaults button on settings pages#776thostetler merged 3 commits intoadsabs:masterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #776 +/- ##
========================================
+ Coverage 61.1% 61.2% +0.1%
========================================
Files 304 305 +1
Lines 35318 35378 +60
Branches 1534 1533 -1
========================================
+ Hits 21566 21636 +70
+ Misses 13716 13706 -10
Partials 36 36
🚀 New features to boost your workflow:
|
0f63f55 to
0cf0596
Compare
shinyichen
left a comment
There was a problem hiding this comment.
This looks good. I am wondering in the Export Settings, would user expect when clicking on reset, only the current tab is being reset. Maybe something to discuss. Other than that, everything looks good to me.
Yep good point, I think it should be easy to make that change, let me give it a shot |
- Add ResetSettingsButton component with confirmation dialog - Extend SettingsLayout with headerAction prop for header-right placement - Add reset button to application, export, and libraries settings pages - Include unit tests for component and integration test for page
0cf0596 to
d088afd
Compare
The reset-to-defaults button on the export settings page now resets only the settings for the currently active tab instead of all export settings. Each tab has its own set of settings keys, and the dialog text indicates which tab's settings will be reset.
The sample format textarea on the Default Copy Citation Format tab is for preview only and should not be editable.
|
@shinyichen please check out the latest changes when you get a chance |
Adds a reset to defaults link to the application, export, and libraries settings pages.
reset_to_defauts-2026-01-27_12.43.10.mp4