From cf1e2eee4dd932e602f3383b9eec21fd4d9fc7ab Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Sat, 18 Jan 2025 22:01:36 +0000 Subject: [PATCH] format (squash) --- ui/components/BucketDetail.tsx | 15 +++++++++++++-- ui/components/GitRepositoryDetail.tsx | 19 ++++++++++++++++--- ui/components/HelmChartDetail.tsx | 15 ++++++++++++--- ui/components/HelmReleaseDetail.tsx | 10 ++++++++-- ui/components/HelmRepositoryDetail.tsx | 20 +++++++++++++++++--- ui/components/KustomizationDetail.tsx | 13 +++++++++++-- ui/components/OCIRepositoryDetail.tsx | 20 +++++++++++++++++--- ui/components/PodDetail.tsx | 21 ++++++++++++++++++--- 8 files changed, 112 insertions(+), 21 deletions(-) diff --git a/ui/components/BucketDetail.tsx b/ui/components/BucketDetail.tsx index 2531c0e023..83939ec187 100644 --- a/ui/components/BucketDetail.tsx +++ b/ui/components/BucketDetail.tsx @@ -24,7 +24,15 @@ function BucketDetail({ className, bucket, customActions }: Props) { : []; const clusterInfo: InfoField[] = isFlagEnabled("WEAVE_GITOPS_FEATURE_CLUSTER") - ? [["Cluster", ]] + ? [ + [ + "Cluster", + , + ], + ] : []; return ( @@ -37,7 +45,10 @@ function BucketDetail({ className, bucket, customActions }: Props) { ["Kind", Kind.Bucket], ["Endpoint", bucket.endpoint], ["Bucket Name", bucket.name], - ["Last Updated", ], + [ + "Last Updated", + , + ], ["Interval", ], ...clusterInfo, ["Namespace", bucket.namespace], diff --git a/ui/components/GitRepositoryDetail.tsx b/ui/components/GitRepositoryDetail.tsx index c07b9c7331..cf79410484 100644 --- a/ui/components/GitRepositoryDetail.tsx +++ b/ui/components/GitRepositoryDetail.tsx @@ -31,7 +31,10 @@ function GitRepositoryDetail({ ? [ [ "Cluster", - , + , ], ] : []; @@ -46,12 +49,22 @@ function GitRepositoryDetail({ ["Kind", Kind.GitRepository], [ "URL", - + {gitRepository.url} , ], ["Ref", gitRepository.reference?.branch], - ["Last Updated", ], + [ + "Last Updated", + , + ], ...clusterInfo, ["Namespace", gitRepository.namespace], ...tenancyInfo, diff --git a/ui/components/HelmChartDetail.tsx b/ui/components/HelmChartDetail.tsx index 455e37eb90..2124758346 100644 --- a/ui/components/HelmChartDetail.tsx +++ b/ui/components/HelmChartDetail.tsx @@ -26,7 +26,10 @@ function HelmChartDetail({ className, helmChart, customActions }: Props) { ? [ [ "Cluster", - , + , ], ] : []; @@ -43,8 +46,14 @@ function HelmChartDetail({ className, helmChart, customActions }: Props) { ["Version", helmChart.version], ["Current Revision", helmChart.revision], ["Ref", helmChart.sourceRef?.name], - ["Last Updated", ], - ["Interval", ], + [ + "Last Updated", + , + ], + [ + "Interval", + , + ], ...clusterInfo, ["Namespace", helmChart.namespace], ...tenancyInfo, diff --git a/ui/components/HelmReleaseDetail.tsx b/ui/components/HelmReleaseDetail.tsx index 00eaa8795c..6167cbe525 100644 --- a/ui/components/HelmReleaseDetail.tsx +++ b/ui/components/HelmReleaseDetail.tsx @@ -65,7 +65,10 @@ function HelmReleaseDetail({ ? [ [ "Cluster", - , + , ], ] : []; @@ -84,7 +87,10 @@ function HelmReleaseDetail({ ["Last Attempted Revision", helmRelease.lastAttemptedRevision], ...clusterInfo, ...tenancyInfo, - ["Interval", ], + [ + "Interval", + , + ], ["Namespace", helmRelease?.namespace], ]} /> diff --git a/ui/components/HelmRepositoryDetail.tsx b/ui/components/HelmRepositoryDetail.tsx index da7076a99c..05dedb7238 100644 --- a/ui/components/HelmRepositoryDetail.tsx +++ b/ui/components/HelmRepositoryDetail.tsx @@ -31,7 +31,10 @@ function HelmRepositoryDetail({ ? [ [ "Cluster", - , + , ], ] : []; @@ -45,7 +48,12 @@ function HelmRepositoryDetail({ info={[ ["Kind", Kind.HelmRepository], ["Repository Type", helmRepository.repositoryType.toLowerCase()], - ["URL", {helmRepository.url}], + [ + "URL", + + {helmRepository.url} + , + ], [ "Last Updated", helmRepository.lastUpdatedAt ? ( @@ -54,7 +62,13 @@ function HelmRepositoryDetail({ "-" ), ], - ["Interval", ], + [ + "Interval", + , + ], ...clusterInfo, ["Namespace", helmRepository.namespace], ...tenancyInfo, diff --git a/ui/components/KustomizationDetail.tsx b/ui/components/KustomizationDetail.tsx index e03d03c7f8..7937fd0fb9 100644 --- a/ui/components/KustomizationDetail.tsx +++ b/ui/components/KustomizationDetail.tsx @@ -41,7 +41,10 @@ function KustomizationDetail({ ? [ [ "Cluster", - , + , ], ] : []; @@ -65,7 +68,13 @@ function KustomizationDetail({ ...clusterInfo, ...tenancyInfo, ["Path", kustomization?.path], - ["Interval", ], + [ + "Interval", + , + ], ["Namespace", kustomization?.namespace], ]} /> diff --git a/ui/components/OCIRepositoryDetail.tsx b/ui/components/OCIRepositoryDetail.tsx index 4141bae916..93781daf40 100644 --- a/ui/components/OCIRepositoryDetail.tsx +++ b/ui/components/OCIRepositoryDetail.tsx @@ -31,7 +31,10 @@ function OCIRepositoryDetail({ ? [ [ "Cluster", - , + , ], ] : []; @@ -44,7 +47,12 @@ function OCIRepositoryDetail({ customActions={customActions} info={[ ["Kind", Kind.OCIRepository], - ["URL", {ociRepository.url}], + [ + "URL", + + {ociRepository.url} + , + ], [ "Last Updated", ociRepository.lastUpdatedAt ? ( @@ -53,7 +61,13 @@ function OCIRepositoryDetail({ "-" ), ], - ["Interval", ], + [ + "Interval", + , + ], ...clusterInfo, ["Namespace", ociRepository.namespace], ...tenancyInfo, diff --git a/ui/components/PodDetail.tsx b/ui/components/PodDetail.tsx index de85c62c7b..81a51410ec 100644 --- a/ui/components/PodDetail.tsx +++ b/ui/components/PodDetail.tsx @@ -67,7 +67,14 @@ const Detail = ({ pod }) => { items={[ ["Namespace", pod.namespace], ["Pod IP", pod.podIP], - ["Pod IPs", p.ip} />], + [ + "Pod IPs", + p.ip} + />, + ], ["Priority Class", pod.priorityClass], ["QoS Class", pod.qosClass], ]} @@ -109,11 +116,19 @@ const Detail = ({ pod }) => { ], [ "Env Vars", - v} />, + v} + />, ], [ "Arguments", - arg} />, + arg} + />, ], ]} />