-
Notifications
You must be signed in to change notification settings - Fork 362
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
Enhance Antrea-Octant-Plugin #913
Conversation
Thanks for your PR. The following commands are available:
These commands can only be run by members of the vmware-tanzu organization. |
I like this simple color theme. For the dropped case, I actually prefer a red one and it is more like orange to me. But others may comment your preference. |
If I change the colors in recent days, it may not correspond to the screenshots I provide to others, which will be used in seminars. Will this cause a problem? |
I don't think it will be a big problem. But I think we can get more opinions on both the layout and color theme. @tnqn @jianjuns @antoninbas |
To be frank I am not good at colors at all. But if you really like my opinion, I do prefer the latter version you have (simpler colors). |
@ZhangYW18 don't worry about making adjustments if needed (e.g. making the drop case redder). |
0eb8fed
to
9a12b43
Compare
Changed the color of drop case to pink. @mengdie-song @tnqn |
@ZhangYW18 Thanks for addressing my comment. Let's change the drop rectangle edge color to red as we discussed. A problem I have noticed is that the focus will always be the last tab which is "Trace List". Unlike Controller or Agent, we may not have traceflow CRDs at start. I am not sure if we can change the focus to the first tab ("Controller") so that we will never get a blank list. Could you please also investigate this? I see you put all the tabs on the navigation bar "Overview". It looks good for now because we only have four sub tabs at this time, but we may need to think more on the layout if we want to add more functions later. |
6ff407e
to
053c012
Compare
I have changed the focus of "Overview" page to the first tab. For the second issue, could we show all Antrea information in one tab in a unified Antrea Overview page, just like the Octant Cluster Overview page? |
@ZhangYW18 You can try the one tab way you mentioned here and we can see if it looks better. Anyway, the current layout seems fine since we only have four tabs now. I have added some other minor comments, please take a look. |
b730e4f
to
cbd4d61
Compare
Here are two possible layouts of the Overview page for Antrea Octant Plugin:
I'm not sure which one is better. Could I get your opinion? |
@ZhangYW18 Thanks for addressing my comments and listing these two options! @jianjuns @antoninbas @tnqn Could you share your opinions on these two overview page design? |
Actually the two cases share the same navigation bar and the navigation bar can be folded. I have updated the images. |
/test-all I assume this PR is ready to be merged? |
/test-all |
Yes, it is. |
I noticed there are some differences in tab title and link. |
All fixed. Updated the image in the description as well. |
log.Printf("Failed to generate content from CRD, lastTfName %v, err: %s", a.lastTfName, err) | ||
return component.ContentResponse{}, nil | ||
log.Printf("Failed to get latest CRD, last traceflow name: %s, err: %s", lastTf.Name, err) | ||
log.Printf("Using traceflow results cache, traceflow name: %s", lastTf.Name) |
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 believe we can merge these two logs into one.
@tnqn We change the logic here to handle the case that Traceflow CRD is cleaned up. But I am not sure what we want to show in this case, a blank graph or a previous traceflow graph. Could you also share your opinion here?
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 don't have preference on this, both work for me.
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.
OK, then we can keep the logic here for now to show the previous trace graph if we can not successfully get the CRD.
You can also remove target "antrea-traceflow-plugin" from Makefile in this patch. |
The name of the Traceflow tab (the pop up window that has 4 links) should be "Traceflow" instead of "Traceflow Info". |
0a2caa7
to
ff76dd0
Compare
Updated. |
Updated. |
/test-all |
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.
LGTM
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.
LGTM, will merge after all verification done
/skip-windows-networkpolicy |
Before:
After:
Before: Put all tabs together and show them in Overview page
After: Put all CRD forms in one page (this format fits with the default Octant Homepage)