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: 1.16.x Back to HCP link conditions #19443

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

WenInCode
Copy link
Contributor

Description

Currently the back to hcp link will show whenever CONSUL_HCP_ENABLE is set. However, there are times when the CONSUL_HCP_URL is not present. My understanding is this could be if you visit the UI directly without accessing it via HCP UI? Either way, we should only show the link if the value is present.

This is handled will be handled in the new sidenav on main and 1.17.x via the side nav updates PR (#19342 ). I am manually backporting this change to 1.16 and 1.15 because of that.

Screenshot 2023-10-31 at 9 44 53 AM Screenshot 2023-10-31 at 9 45 15 AM

Testing & Reproduction steps

  1. Run the UI
  2. Run Scenario('CONSUL_HCP_ENABLE', 1) in the browser console to enable HCP mode
  3. Run Scenario('CONSUL_HCP_URL', 'url of your choice') in the browser console to set the HCP url.

Links

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

@WenInCode WenInCode added theme/ui Anything related to the UI pr/no-backport labels Oct 31, 2023
@WenInCode WenInCode changed the title Only show back to hcp link if CONSUL_HCP_URL is present ui: 1.16.x Back to HCP link conditions Oct 31, 2023
@WenInCode WenInCode force-pushed the ui/1-16/back-to-hcp-link-conditions branch from e555337 to b9e4ba0 Compare October 31, 2023 16:17
@WenInCode WenInCode force-pushed the ui/1-16/back-to-hcp-link-conditions branch from b9e4ba0 to f2c86c8 Compare October 31, 2023 16:23
@WenInCode WenInCode marked this pull request as ready for review October 31, 2023 16:32
@WenInCode WenInCode merged commit 7d518fe into release/1.16.x Nov 3, 2023
91 checks passed
@WenInCode WenInCode deleted the ui/1-16/back-to-hcp-link-conditions branch November 3, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-backport theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants