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

UX iprovements on server audit dialog #11036

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

banobepascal
Copy link

Change-Id: I6c91fb915d6abd6dfd93536fdde6a2835091b6f5

Summary

  • Added new stylings to the indicator to make it distinct
  • Added both cases for no issues and errors plus count of issues
  • Added new check-mark icon for audit success

Screenshots

Screenshot from 2025-01-28 09-58-39
Screenshot from 2025-01-28 09-58-21

With no Issues
Screenshot from 2025-01-28 13-52-51
Screenshot from 2025-01-28 14-18-06

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

: {
id: 'auditerror',
type: 'fixedtext',
text: `${countErrors} issue${countErrors > 1 ? 's' : ''} found`,
Copy link
Contributor

Choose a reason for hiding this comment

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

We need translatable string, we do that by using special wrapping function: _('string to translate').
It has to be static text, any dynamic content should be provided by replacement of a variable mark like eg. %COUNT%.
If you need both single and plural form, please use 2 separate strings, not combine that in JS as it will not work with other languages.

example:

if (count === 1)
      return _('1 issue found');
else
      return _('%COUNT issues found').replaceAll('%COUNT%', number);

I'm not sure if it is exactly %var% maybe different style, please check within a code for examples

Copy link
Author

Choose a reason for hiding this comment

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

Please checkout the new changes

@banobepascal banobepascal force-pushed the private/banobepascal/server-audit-dialog-improvements branch from 843e52a to 697a214 Compare January 28, 2025 13:56
 -Added new stylings to the indicator to make it more distinct
 -Added both cases for no issues and errors plus count of issues
 -Added new check-mark icon for audit success

Signed-off-by: Banobe Pascal <[email protected]>
Change-Id: I26824bcc2cc1ec1c20257c12112822b6e5915b4e
@banobepascal banobepascal force-pushed the private/banobepascal/server-audit-dialog-improvements branch from 697a214 to b1c1e92 Compare January 28, 2025 15:32
@banobepascal
Copy link
Author

@pedropintosilva please review

Copy link
Contributor

@pedropintosilva pedropintosilva left a comment

Choose a reason for hiding this comment

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

I didn't see any functional problem and since this introduces a new string I would like to see it merge so, I'm approving it. However I still don't think the following is good:

image

  • The indicator protrudes from the UI and it might look like a button
  • There is border on border situation going on there
  • I'm not sure about using an x that is white

By making it a bit more subtle it would be already an improvement :

image

Still, probably improving the icon would be a welcome change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Test
Development

Successfully merging this pull request may close these issues.

3 participants