-
Notifications
You must be signed in to change notification settings - Fork 290
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
better support for long resource names #4614
Comments
A user also brought this up during a user interview on 3/8/21: "...the little pane of where the logs generated from? I need that to be resizeable. It's too small. So it cuts off everything, and where the log source from I don't really know."... "The names of my services come from Helm charts. So they're all like, 'prefix-something-something-something-chart.' Super hard to read these." Interviewer: "What if you could see the full name of a resource, and the trade-off is that it basically makes them taller and pushes stuff down?" " Yeah, or just shrink the font size. I mean, I had a custom style sheet for a while that just shrank the font size. The resource names don't change often enough for me to need them to be very readable." |
I think we should allow users to resize the sidebar. Kind of like in VS Code, how you can make the sidebar as wide as you want. Even absurdly wide, like so: @nicks, thanks for posting the idea of adding the prefix. My main concern with this design is that the text will be very small and possibly not legible because of the low contrast, and may contribute to a cluttered appearance for this card (which Surbhi and I have been trying to simplify) |
I agree with @hyu that the best option would be to make the sidebar stretchable - either with or without prefix - because:
Here is a quick view of all the various options.. |
Ya, we will probably end up having to do both. The VSCode example is an illustrative one - note that VSCode only shows the base filename, not the absolute file path. It's the same problem here - if you show the full name, you will end up having to repeat redundant information a lot. |
@SurbhiSGupta - re: "how is the prefix decided" - the experiment i was playing around with tried to infer them using "-" as a separator. Resource grouping might help solve this problem - I would expect all resources in a group to have a common prefix. |
* web: Add a resize drag component to the sidebar Fixes #4614 * web: factor out a width constant * web: add split pane to OverviewResourceSidebar storybook
Describe the Feature You Want
Better support for long resource names in the UI
Current Behavior
The names get cut off, with no way to expand them
Why Do You Want This?
Kubernetes resources tend to use prefixes heavily. For example, many Helm charts prefix every resource in the chart with the same name.
This makes the sidebar display kind of useless, because all sidebar items have the same name.
Additional context
Related issue (choosing custom icons):
#3530
Note that you can also use k8s_resource(new_name=) to rename a resource manually
The text was updated successfully, but these errors were encountered: