-
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 Breadcrumbs #24387
UI: HDS adoption replace Breadcrumbs #24387
Conversation
…9/hds-adoption-replace-breadcrumbs
</li> | ||
</ul> | ||
</nav> | ||
<Hds::ButtonSet> |
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.
@@ -53,9 +53,6 @@ | |||
a, | |||
.link, | |||
a:not(.button):not(.file-delete-button):not(.tag) { | |||
color: $blue; |
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.
@@ -26,7 +26,7 @@ | |||
} | |||
|
|||
.title { | |||
margin-top: $spacing-36; | |||
margin-top: $spacing-16; |
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.
Until we replace this component, reducing to match the gap: 16
that the HDS page header uses
<Hds::Breadcrumb> |
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.
This component should ultimately be replaced since all of the getters are overly robust and every instance I spot checked only rendered a single breadcrumb.
However, replacing felt outside the scope of this PR. As a stop-gap I replaced instances of this component that just yielded breadcrumbs and in this file just updated the stying
Build Results: |
@@ -33,18 +31,11 @@ | |||
@bottomBorder={{true}} | |||
@message={{@model.errorMessage}} | |||
> | |||
<nav class="breadcrumb" aria-label="help breadcrumb"> |
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.
See screenshot above for before + after - shouldn't have been breadcrumbs to begin with
@route="vault.cluster.secrets.backend.overview" | ||
@model={{@backendPath}} | ||
/> | ||
<Hds::Breadcrumb::Item @text={{@roleName}} @current={{true}} /> |
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.
In places where it made sense, I added a @current
breadcrumb that matches the h1 tag
@@ -5,16 +5,10 @@ | |||
|
|||
<PageHeader as |p|> | |||
<p.top> | |||
<KeyValueHeader @path="vault.cluster.access.methods"> |
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 replaced KeyValueHeader
components that yielded breadcrumbs, but left self-closing KeyValueHeader
components and updated the hbs file
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.
made typescript
@@ -5,16 +5,14 @@ | |||
|
|||
<PageHeader as |p|> | |||
<p.top> | |||
<nav class="breadcrumb" aria-label="breadcrumbs"> |
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.
ui/app/styles/core.scss
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.
🎉
</nav> | ||
<Hds::Breadcrumb> | ||
<Hds::Breadcrumb::Item @text="Methods" @route="vault.cluster.access.mfa.methods.index" /> | ||
<Hds::Breadcrumb::Item @text="Configure MFA Method" @current={{true}} /> |
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.
It appears (ex: Auth methods) we're not title casing the Breadcrumbs text (e.g. Auth Methods vs Auth methods). So here, should it be "Configure MFA method"?
@icon="learn-link" | ||
@iconPosition="trailing" | ||
@color="secondary" | ||
@text="Disaster recovery tutorial" |
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.
so much better than "Need help?"
@models={{breadcrumb.models}} | ||
@query={{breadcrumb.query}} | ||
@isRouteExternal={{breadcrumb.linkExternal}} |
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.
thank you for the comment!
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.
way to typescript this! It does help to see the types for params.
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.
Really great work. Very detailed and lots of small cleanup along the way. Thank you!
Replaces our old breadcrumb styles with the
Hds::Breadcrumb
component. Where possible, also updated breadcrumbs to be more accuratecurrent
before