-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ui: HDS adoption replace <AlertBanner> component #21375
ui: HDS adoption replace <AlertBanner> component #21375
Conversation
* rename test selector * replace db banner * add class * replace db role edit * db creds * generate creds * simpler class * license banner component * oidc callback plash * raft * aws * secret create or update * change to compact alert for form field * change back to inline * combine alert banners * wrap in conditional * remove references to message class
* token expire warning * delete css * edit form * item details distribute mfa step 2 transit verify * back to secondary * distribute * oidc lease error * sign * kv obj and repl dash * more repl * update test selector * show, creds * shamir * pki csr * pki banners * add hds library to ember engines * woops comma * fix k8 test * update message error component for last! * hold off MessageError changes until next pr * revert test selectors * update pki tests
* final component swap * and actual final of MessageError * update MessageError selectors * delete alert-banner and remove references * update next step alerts to highlight color * finishing touches, auth form test and client dashboard inline link * fix more selectors * fix shamir flow test
* replace AlertPopup * add test tag * move tag * one more message error tag * delete alert popup * final css cleanup * move preformatted flash into <p> tag
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.
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.
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.
<button onclick={{action "enable" @model}} type="button" class="link" data-test-enable={{true}}> | ||
Enable | ||
</button> | ||
<A.Button data-test-enable-identity @text="Enable" @color="secondary" {{on "click" (action "enable" @model)}} /> |
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.
Consulted design and intentionally changed this button to look like a button (not a link)
secondary class is for alert action buttons
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.
</LinkTo> | ||
to enable tracking again. | ||
</AlertBanner> | ||
<Hds::Alert @type="inline" @color="warning" class="has-bottom-margin-s" as |A|> |
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.
<li> | ||
{{this.upgradeVersionAndDate}} | ||
{{this.upgradeExplanation}} | ||
<DocLink |
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.
Plan is to keep <DocLink>
but use the HDS component in that template
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.
@@ -28,11 +28,11 @@ | |||
@color={{this.tidyStateAlertBanner.color}} | |||
@icon={{this.tidyStateAlertBanner.icon}} | |||
class="has-top-margin-m" | |||
data-test-hds-alert | |||
data-test-tidy-status-alert |
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.
trying to make selectors more component-relevant so debugging is easier in the future
ui/app/templates/vault/cluster.hbs
Outdated
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.
The input is | ||
{{if @valid "valid" "not valid"}} | ||
for the given | ||
{{if @signature "signature" "HMAC"}} |
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 believe, because this is a description, both signature and HMAC need a period?
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 know you didn't change/write the copy, but if we're in there, might as well address some punctuation.
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.
Nice work! Nothing blocking, just a couple of clean up comments. And gosh do these look sooo much better!
* add periods, move link to trailing * more periods and typo fix
new component
old component