-
Notifications
You must be signed in to change notification settings - Fork 474
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
Update PF to version 5.1 and fix some alignment UI issues #6836
Conversation
ce69b1e
to
8ce9163
Compare
@jshaughn One of the issues you found in one of previous PR reviews is confusing me...
I have fixed it but now both inbound and outbound tables are connected in the sorting handling. I mean that if you sort inbound traffic table by name, the outbound traffic table is also sorted. Besides, if you see the in the url there are only one |
Right, I think I remember this as always being an issue for this page. I think the decision was that it is OK if the sort affects both tables as it was not worth the added complexity to make it two different sorts. So, I think this is fine as is! |
2ddd1e3
to
7ef9250
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.
I've been investigating the issue and the text should not appear. The text element within the legend is:
According to https://www.patternfly.org/utility-classes/accessibility/#usage, CSS class |
Could we add some padding betweenthe icon and text ? |
Yes, we could add padding but I think the best approach here (and the intention of |
We have so buttons with the same icon...we'll need help here from UX for this if we want to have only icons |
Sure, we can ask UX for guiding in the topology legend, only thing is that we would have to follow same approach for both graphs (cytoscape and PF). |
We can ask for guidance but I will veto anything that has on-screen text, it needs to be handled with icons and tooltips. The alternative is too verbose. |
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.
Now that the ControlBar (on-graph icons) is back to having no text, just icons, I approve! Nice work.
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.
Regression tested the pages, compared the alignment with older one, now it looks better and all small issues with icons alignments are resolved. Thank you @ferhoyos for the massive work.
Describe the change
This PR upgrades Patternfly to version 5.1 and fix some UI issues:
Change some colors so that it looks better on Dark mode:
More legend overlay disalignment
Since ServiceValidationSummary component is very similar to ValidationSummary component and Class inheritance is not allowed with React Hooks, I have added new type property to ValidationSummary (
istio
orservice
) and delete ServiceValidationSummary component.NamespaceInfo.ts moved to types folder
HealthStyle moved to styles folder
Remove some console.log in Renderers component
Refactorization Bonus (in files modified):
** Issue reference **
Closes #6768