Skip to content

Conversation

@Gitesh307
Copy link
Contributor

@Gitesh307 Gitesh307 commented Oct 12, 2025

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.

image image

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone

Testing instructions

  • Verify that the new Global Preferences page is accessible only to Institution Admins, settings (auditing, date formats, thumbnails) can be updated, saved, and persist correctly across reloads.
  • Change and verify that all configuration options are applied

@Gitesh307 Gitesh307 linked an issue Oct 13, 2025 that may be closed by this pull request
@acwhite211 acwhite211 self-requested a review October 14, 2025 02:16
Copy link
Member

@grantfitzsimmons grantfitzsimmons left a 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

@github-project-automation github-project-automation bot moved this from 📋Back Log to Dev Attention Needed in General Tester Board Oct 18, 2025
@grantfitzsimmons grantfitzsimmons changed the title Feat: Refactor and add UI to control Global preferences feat(preferences): Refactor and add UI to control Global preferences Oct 20, 2025
@grantfitzsimmons grantfitzsimmons added this to the 7.12.0 milestone Oct 20, 2025
@Gitesh307 Gitesh307 requested a review from acwhite211 October 21, 2025 13:21
@Gitesh307 Gitesh307 self-assigned this Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Dev Attention Needed

Development

Successfully merging this pull request may close these issues.

Refactor and add UI to control Global preferences

3 participants