-
Notifications
You must be signed in to change notification settings - Fork 741
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
base: master
Are you sure you want to change the base?
UX iprovements on server audit dialog #11036
Conversation
: { | ||
id: 'auditerror', | ||
type: 'fixedtext', | ||
text: `${countErrors} issue${countErrors > 1 ? 's' : ''} found`, |
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.
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
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.
Please checkout the new changes
843e52a
to
697a214
Compare
-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
697a214
to
b1c1e92
Compare
@pedropintosilva please review |
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.
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:
- 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 :
Still, probably improving the icon would be a welcome change
Change-Id: I6c91fb915d6abd6dfd93536fdde6a2835091b6f5
Summary
Screenshots
With no Issues
Checklist
make prettier-write
and formatted the code.make check
make run
and manually verified that everything looks okay