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

frontend: Make sidebar display the cluster name again #2930

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

joaquimrocha
Copy link
Collaborator

The sidebar is not being updated when moving clusters. This is due to
the sidebar being memoized without the cluster as a dependency.

How to test

  1. Go to a Headlamp home where you have multiple clusters
  2. Click on one of the clusters -> Realize that the cluster name doesn't show up under the Cluster sidebar item
  3. Change clusters using the top button and verify that the cluster name is not updated.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 19, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Feb 20, 2025
joaquimrocha and others added 2 commits February 20, 2025 12:49
The sidebar is not being updated when moving clusters. This is due to
the sidebar being memoized without the cluster as a dependency.

Signed-off-by: Joaquim Rocha <[email protected]>
@joaquimrocha joaquimrocha force-pushed the fix-sidebar-not-displaying-cluster branch from a9df144 to e90f169 Compare February 20, 2025 12:49
Copy link
Collaborator

@illume illume left a comment

Choose a reason for hiding this comment

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

👍

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 21, 2025
@illume illume merged commit 050d674 into main Feb 21, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants