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

bug(ui): Resource Kind NodeGroup is not aligned #16097

Closed
3 tasks done
speedfl opened this issue Oct 24, 2023 · 4 comments · Fixed by #17427
Closed
3 tasks done

bug(ui): Resource Kind NodeGroup is not aligned #16097

speedfl opened this issue Oct 24, 2023 · 4 comments · Fixed by #17427
Labels
bug Something isn't working component:ui User interfaces bugs and enhancements

Comments

@speedfl
Copy link
Contributor

speedfl commented Oct 24, 2023

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

When using a resource Kind NodeGroup (ie: ACK Controller NodeGroup), the UI is adding an extra 25px padding top

The issue come from the fact that any object suffixed by --nodegroup has an extra 25px

function renderResourceNode(props: ApplicationResourceTreeProps, id: string, node: ResourceTreeNode & dagre.Node, nodesHavingChildren: Map<string, number>) {

Issue that introduce this feature: #12089

To Reproduce

Deploy the ACK controller EKS: https://github.com/aws-controllers-k8s/eks-controller/tree/main

Create a resource NodeGroup

Expected behavior

Must be aligned

Screenshots

image

Version

All

@speedfl speedfl added the bug Something isn't working label Oct 24, 2023
@cclp94
Copy link
Contributor

cclp94 commented Oct 24, 2023

I'll prepare a PR for this. I think in renderResourceNode we could add a new css class for resource nodes only that overwrites the padding

@keithchong keithchong added the component:ui User interfaces bugs and enhancements label Nov 1, 2023
@keithchong
Copy link
Contributor

I'm wondering if we can just get rid of the nodegroup style from the scss file, since it seems to only affect the nodegroup resource kind.

cc @ashutosh16

@speedfl
Copy link
Contributor Author

speedfl commented Nov 1, 2023

Node group is also used to group the nodes like pod group I guess

@cclp94
Copy link
Contributor

cclp94 commented Mar 7, 2024

I finally had the time to deep into this. I think @keithchong is right. A "Grouped Node" would pass by another function renderGroupedNodes() which doesn't add the 'application-resource-tree__node--' + node.kind.toLowerCase(), class like the renderResourceNode() does. Therefore, it looks safe to just remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:ui User interfaces bugs and enhancements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants