Skip to content

Conversation

@dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Mar 26, 2025

Same than #2168 but applying suggested reverts.

Click to show/hide screenshots for affected parts

Only Encryption Settings screenshots. The rest can be found at original PR, #2168

localhost_8080_ (25)
localhost_8080_ (26)
localhost_8080_ (27)

dgdavid added 5 commits March 26, 2025 08:30
Instead of using a switch. The previous implementation immediately
triggered the encryption settings when toggled, but this is no longer
the case. Switches should typically be used for immediate actions,
whereas encryption settings are now part of a form that must be
submitted before changes are applied.

Additionally, the way the form is rendered has been modified to show
fields only when necessary or requested, instead of just toggling their
enabled/disabled states. This ensures a more consistent interface by
displaying only required fields and aligns with the user
experience found on the authentication page.
To make them "respect" the gap of their parent grid.
Special mention for the fireEvent change

> Most projects have a few use cases for fireEvent, but the majority of
> the time you should probably use @testing-library/user-event.

https://testing-library.com/docs/dom-testing-library/api-events/
Replaces switches with checkboxes in the root authentication form.
Switches should be used for actions that immediately apply changes, but
superuser authentication settings are part of a form that must be
submitted before any changes take effect.
Copy link
Contributor

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The failures in CI are related to problems with the Coveralls service.

@imobachgs imobachgs merged commit 7da79db into master Mar 27, 2025
11 of 17 checks passed
@imobachgs imobachgs deleted the fix-switches branch March 27, 2025 11:05
@imobachgs imobachgs mentioned this pull request Mar 27, 2025
imobachgs added a commit that referenced this pull request Mar 27, 2025
@imobachgs imobachgs mentioned this pull request Apr 22, 2025
imobachgs added a commit that referenced this pull request Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants