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

Move /targets page discovered labels to expandable section #12824

Merged
merged 2 commits into from Sep 11, 2023

Conversation

juliusv
Copy link
Member

@juliusv juliusv commented Sep 11, 2023

The current tooltip for showing the pre-relabeling discovered labels for a target is notoriously unreliable and can get cut off when there are many labels. This PR introduces a (hopefully unobtuse enough) expander/collapser button for the discovered labels of each target, and then the discovered labels are shown in a more persistent way underneath the final target labels, instead of using a tooltip.

Fixes #9175 (comment)

show-discovered-target-labels.mov

The current tooltip for showing the pre-relabeling discovered labels for a
target is notoriously unreliable and can get cut off when there are many
labels. This PR introduces a (hopefully unobtuse enough) expander/collapser
button for the discovered labels of each target, and then the discovered labels
are shown in a more persistent way underneath the final target labels, instead
of using a tooltip.

Fixes #9175 (comment)

Signed-off-by: Julius Volz <julius.volz@gmail.com>
Copy link
Member

@roidelapluie roidelapluie left a comment

Choose a reason for hiding this comment

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

Tested the UI side of this, I appreciate it. It coule be a bit more readable in dark mode but this is already a big improvement.

@roidelapluie
Copy link
Member

Tests are failing

Signed-off-by: Julius Volz <julius.volz@gmail.com>
@juliusv
Copy link
Member Author

juliusv commented Sep 11, 2023

Ah whoops, I totally forgot there was a dark mode since I never use it :) But yeah, I think it looks ok enough in dark mode too.

Had to tell the test runner to explicitly remove the obsoleted test snapshot, hopefully things pass now in CI too.

@juliusv juliusv merged commit aa7bf08 into main Sep 11, 2023
39 checks passed
@juliusv juliusv deleted the targets-page-expand-discovered-labels branch September 11, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React UI: Pre-relabel labels extend offscreen and can't be seen
2 participants