-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add nav bar item to show HCP link status and encourage folks to link #20370
Conversation
…onent-for-some-upcoming-changes
…ink-item-in-the-nav-bar
…ink-item-in-the-nav-bar
…ink-item-in-the-nav-bar
export default class OperatorAbility extends BaseAbility { | ||
resource = 'operator'; | ||
} |
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.
Would love some eyes on this, from Melissa, we need the operator
write permission, is this enough?
By adding this I'm able to do this.abilities.can('write operators')
, and it seems to be checking the right permission
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.
lgtm
…ink-item-in-the-nav-bar
c2c1d89
to
ce347ef
Compare
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.
👏
* Revert "feat: add alert to link to hcp modal to ask a user refresh a page; up… (#20682)" This reverts commit dd833d9. * Revert "chor: change cluster name param to have datacenter.name as default value (#20644)" This reverts commit 8425cd0. * Revert "chor: adds informative error message when acls disabled and read-only… (#20600)" This reverts commit 9d712cc. * Revert "Cc 7147 link to hcp modal (#20474)" This reverts commit 8c05e57. * Revert "Add nav bar item to show HCP link status and encourage folks to link (#20370)" This reverts commit 22e6ce0. * Revert "Cc 7145 hcp link status api (#20330)" This reverts commit 049ca10. * Revert "💜 Cc 7187/purple banner for linking existing clusters (#20275)" This reverts commit 5119667.
Description
We want people to link to HCP!
This PR adds a nice little nav bar item to the sidebar letting users view their linked clusters in HCP as well as begin the linking process. (Although the actual linking start - with modal will happen in https://hashicorp.atlassian.net/browse/CC-7147
Testing & Reproduction steps
yarn start
New
Item should go awaySTATE_TRUE
) and restart ui server - you should see a link to HCP consulBack to HCP
linkLinks
Screenshots
References