@skyhook-io/k8s-ui 1.13.4 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/package.json +4 -4
  2. package/src/components/gitops/GitOpsTableView.tsx +168 -11
  3. package/src/components/gitops/applicationset-row.test.ts +214 -0
  4. package/src/components/gitops/detail-helpers.test.ts +54 -0
  5. package/src/components/gitops/detail-helpers.ts +13 -3
  6. package/src/components/gitops/index.ts +1 -0
  7. package/src/components/gitops/tree/GitOpsTreeGraph.tsx +7 -0
  8. package/src/components/resources/ResourcesView.tsx +259 -80
  9. package/src/components/resources/column-header-width.test.ts +75 -0
  10. package/src/components/resources/kyverno-legacy-action.test.ts +100 -1
  11. package/src/components/resources/kyverno-modern-posture.test.ts +36 -0
  12. package/src/components/resources/renderers/CNPGBackupRenderer.test.tsx +29 -0
  13. package/src/components/resources/renderers/CNPGBackupRenderer.tsx +3 -2
  14. package/src/components/resources/renderers/CNPGClusterRenderer.test.tsx +69 -3
  15. package/src/components/resources/renderers/CNPGClusterRenderer.tsx +6 -2
  16. package/src/components/resources/renderers/KyvernoPolicyReportRenderer.tsx +12 -7
  17. package/src/components/resources/renderers/PolicyCoverageSection.test.tsx +92 -1
  18. package/src/components/resources/renderers/PolicyCoverageSection.tsx +64 -8
  19. package/src/components/resources/renderers/VeleroBSLRenderer.test.tsx +47 -0
  20. package/src/components/resources/renderers/VeleroBSLRenderer.tsx +16 -1
  21. package/src/components/resources/renderers/VeleroRestoreRenderer.test.tsx +88 -0
  22. package/src/components/resources/renderers/VeleroRestoreRenderer.tsx +44 -2
  23. package/src/components/resources/renderers/cnpg-cells.tsx +12 -1
  24. package/src/components/resources/renderers/kyverno-cells.tsx +8 -4
  25. package/src/components/resources/resource-utils-cnpg.golden.test.ts +13 -5
  26. package/src/components/resources/resource-utils-cnpg.test.ts +142 -2
  27. package/src/components/resources/resource-utils-cnpg.ts +132 -7
  28. package/src/components/resources/resource-utils-gpu-ecosystem.test.ts +14 -0
  29. package/src/components/resources/resource-utils-kueue.ts +4 -2
  30. package/src/components/resources/resource-utils-kyverno-modern.ts +3 -1
  31. package/src/components/resources/resource-utils-kyverno.ts +51 -2
  32. package/src/components/resources/resource-utils-velero.ts +32 -0
  33. package/src/components/resources/rules-column-width.test.ts +42 -0
  34. package/src/components/shared/ResourceRendererDispatch.test.tsx +75 -0
  35. package/src/components/shared/ResourceRendererDispatch.tsx +24 -6
  36. package/src/components/topology/GroupNode.tsx +6 -2
  37. package/src/components/topology/topology.css +4 -1
  38. package/src/components/ui/Collapse.tsx +9 -1
  39. package/src/components/ui/RowActionMenu.tsx +4 -0
  40. package/src/components/ui/SelectMenu.tsx +10 -1
  41. package/src/components/ui/drawer-components.tsx +4 -2
  42. package/src/components/workload/WorkloadView.tsx +9 -2
  43. package/src/types/gitops.ts +51 -0
@@ -15,6 +15,7 @@ export {
15
15
  shortClusterName,
16
16
  summarizeGitOpsRows,
17
17
  normalizeArgoApplication,
18
+ normalizeArgoApplicationSet,
18
19
  normalizeFluxKustomization,
19
20
  normalizeFluxHelmRelease,
20
21
  buildFluxSourceUrlMap,
@@ -582,6 +582,13 @@ const GitOpsResourceNode = memo(function GitOpsResourceNode({ data }: NodeProps<
582
582
  // border lift telegraphs "this responds to clicks" without
583
583
  // looking like a primary action.
584
584
  node.role === 'group' && 'cursor-pointer hover:border-theme-text-tertiary/50 hover:bg-theme-hover',
585
+ // The root node is this page's own subject, so it deliberately
586
+ // skips the portal ring/tool-badge above (clicking it can't
587
+ // "dive into" anything — it's already the page you're on). It's
588
+ // still clickable — opens the standard resource drawer — so it
589
+ // gets its own quieter affordance: a hover ring, no ring at rest,
590
+ // so it doesn't visually compete with real portal children.
591
+ node.role === 'root' && !data.highlighted && 'cursor-pointer hover:ring-1 hover:ring-theme-text-tertiary/40',
585
592
  )}
586
593
  style={{ width: dim.width, minHeight: dim.height, borderLeftWidth: 4 }}
587
594
  >