mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-30 20:28:53 +08:00
feat: make the ignore rule dialog and the ignored checks clearer (#1255)
* feat: make the ignore rule dialog and the ignored checks clearer In the ignore rule dialog, "Ignore for" becomes "Expiration" and "Entire check" becomes "All resources". Editing an expired rule now opens with a warning at the top that says when it expired, and only its expiration can change until a new one is set. The warning that the rule stays expired, shown at the bottom after a change, is gone. In the Components table, "+ N ignored" is a link like "+ N more" and shows that check's ignored resources. The checkbox only brings back the checks ignored as a whole, reads "Show ignored checks" and counts them in a badge. Checks with anything ignored get the warning banner's background, and the filter also finds ignored resources. Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com> * fix: put Expiration first and keep a locked Scope from changing An expired rule's fields wait for a new expiration, so Expiration is now the first field of the dialog instead of coming after the fields it unlocks. The shell's RadioGroup still takes the Up and Down keys once it is clicked, even when it is disabled or in view mode. So on an expired rule a click and Up switched the locked Scope, and Save then widened a rule for some resources to the whole check. The dialog now ignores a scope change while the rule is locked or only viewed. Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com> --------- Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
This commit is contained in:
1 parent
f3ca9e4c44
commit
97ce1e90f6
6 files changed
+271
-164
No files matched your search
@@ -531,9 +531,7 @@ harvester:
|
||||
noAffectedResources: No affected resources
|
||||
noIssues: No issues detected
|
||||
checksNotLoaded: Unable to load the checks
|
||||
showIgnored: 'Show ignored ({counts})'
|
||||
ignoredChecks: '{count, plural, =1 {1 check} other {# checks}}'
|
||||
ignoredResources: '{count, plural, =1 {1 resource} other {# resources}}'
|
||||
showIgnored: Show ignored checks
|
||||
loadFailed:
|
||||
healthSummaries: 'Unable to load the health summary: {error}'
|
||||
componentHealths: 'Unable to load the checks: {error}'
|
||||
@@ -545,11 +543,12 @@ harvester:
|
||||
delete: Delete Ignore Rule
|
||||
ignored: Ignored
|
||||
plusIgnored: '+ {n} ignored'
|
||||
hideIgnored: Hide ignored
|
||||
scope: Scope
|
||||
scopeResources: Selected resources
|
||||
scopeCheck: Entire check
|
||||
scopeCheck: All resources
|
||||
resources: Resources
|
||||
duration: Ignore for
|
||||
duration: Expiration
|
||||
days7: 7 days
|
||||
days30: 30 days
|
||||
forever: Forever
|
||||
@@ -558,7 +557,7 @@ harvester:
|
||||
neverExpires: Never expires
|
||||
willExpireOn: 'Will expire on {date}'
|
||||
willNeverExpire: Will never expire
|
||||
staysExpired: 'This rule expired on {date} and stays expired unless you choose how long to ignore for.'
|
||||
expiredBanner: 'This rule expired on {date}. To make any changes, set a new expiration to re-enable this rule.'
|
||||
reason: Reason
|
||||
reasonPlaceholder: Why is it ignored? (optional)
|
||||
created: The ignore rule of {name} is created
|
||||
|
||||
Reference in new issue
Block a user