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

UI: pki engine breadcrumbs #18113

Merged
merged 13 commits into from
Nov 29, 2022
Merged

UI: pki engine breadcrumbs #18113

merged 13 commits into from
Nov 29, 2022

Conversation

hellobontempo
Copy link
Contributor

@hellobontempo hellobontempo commented Nov 23, 2022

Simple breadcrumb component to use until we can incorporate HDS components into Vault

@hellobontempo hellobontempo added this to the 1.13.0-rc1 milestone Nov 28, 2022
@hellobontempo hellobontempo marked this pull request as ready for review November 28, 2022 20:10
constructor() {
super(...arguments);
this.args.breadcrumbs.forEach((breadcrumb) => {
assert('breadcrumb has a label key', Object.keys(breadcrumb).includes('label'));
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

<li>
<span class="sep">/</span>
{{#if breadcrumb.linkExternal}}
<LinkToExternal @route={{breadcrumb.path}}>{{breadcrumb.label}}</LinkToExternal>
Copy link
Contributor

Choose a reason for hiding this comment

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

Small nit but would route be a better name for the breadcrumb prop than path in case someone would think that it expects configuration/edit rather than configuration.edit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah - I had copied path over, but I agree route makes more sense here

@hellobontempo hellobontempo merged commit d3fd057 into main Nov 29, 2022
@hellobontempo hellobontempo deleted the ui/pki-engine-breadcrumbs branch November 29, 2022 18:01
jayant07-yb pushed a commit to jayant07-yb/hashicorp-vault-integrations that referenced this pull request Mar 15, 2023
* move mountPoint to parent PkiController and extend for engine routes

* breadcrumb attempt

* Revert "breadcrumb attempt"

This reverts commit d2140dc.

* make breadcrumb component

* revert extending pki controller

* move file import

* generalize breadcrumb component

* restructure files

* remove docs

* cleanup jsdoc and test

* add to pki role details page

* address comments

* fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants