Skip to content
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

GUACAMOLE-1479: Change the style of disabled users/groups. #673

Merged
merged 6 commits into from
Jun 21, 2024

Conversation

necouchman
Copy link
Contributor

This change implements a style change for users and groups that are disabled, changing the font color to gray and italicizing the user or group name.

Copy link
Contributor

@mike-jumper mike-jumper left a comment

Choose a reason for hiding this comment

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

Looks good, however the disabled attribute is currently a custom attribute applied only by the JDBC extensions, so we can't add specific handling for that attribute directly within the webapp as-is.

We could:

  • Standardize the attribute at the API level, allowing the webapp to make decisions regarding that attribute.
  • Provide a standard API for enabling/disabling a user (ie: an isDisabled() and setDisabled()) which could then be exposed within the REST API and handled within the UI appropriately.
  • Move the handling of styling to the extension defining the attribute.

Given how common enabling/disabling a user or group is likely to be, regardless of backend implementation, I'd lean towards some kind of standardization.

@necouchman
Copy link
Contributor Author

@mike-jumper Okay, I've re-worked things to include moving the "disabled" status to the higher level interfaces and pull it out of the Attributes section. And I think the issues with the controller logic for the CSS style should be more reasonable, now.

@necouchman
Copy link
Contributor Author

@mike-jumper Gentle nudge...

@necouchman
Copy link
Contributor Author

@mike-jumper Ping...

@necouchman
Copy link
Contributor Author

@mike-jumper Gentle nudge.

@necouchman
Copy link
Contributor Author

@mike-jumper Ping...

@mike-jumper mike-jumper merged commit 9a8a5f3 into apache:main Jun 21, 2024
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.

2 participants