-
Notifications
You must be signed in to change notification settings - Fork 40
feat(preferences): Refactor and add UI to control Global preferences #7501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: issue-7440
Are you sure you want to change the base?
Conversation
aa5ae71 to
c6918af
Compare
Triggered by 914d391 on branch refs/heads/issue-7442-3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! So much progress!
There are two global preference files, named preferences, denoted by different headers:
#Remote User Prefs
#Wed Sep 27 17:21:50 CEST 2023
and
#Global Prefs
#Thu Jul 20 14:56:10 CEST 2023
This PR assumes that all preferences are in the global prefs resource, but some settings (like ui.formatting.scrdateformat) are only looked at in remote prefs. Users should not have their current date format lost when we release this, so we need to transition existing configurations if at all possible.
Right now, despite this being set, queries and other places do not look to this resource for the date format
Triggered by 4d49db9 on branch refs/heads/issue-7442-3
Fixes #7442
This PR introduces a new Global Preferences interface that allows Institution Administrators to configure database-wide settings such as auditing, date formats, and attachment thumbnail size directly from the UI instead of manually editing preference resources. It adds a dedicated page under the User Tools menu, guarded by Institution Admin permissions, and connects to new backend endpoints for retrieving and updating global preferences.
Checklist
self-explanatory (or properly documented)
Testing instructions