@skyhook-io/radar-app 1.19.0 → 1.20.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.
- package/README.md +1 -1
- package/package.json +5 -5
- package/src/App.tsx +37 -9
- package/src/api/application-evidence.ts +63 -0
- package/src/api/argoSync.test.ts +22 -0
- package/src/api/client.audit-gating.test.tsx +48 -0
- package/src/api/client.kueuePosition.test.ts +32 -0
- package/src/api/client.kueueQueueWorkloads.test.tsx +71 -0
- package/src/api/client.resource-identity.test.ts +3 -0
- package/src/api/client.resourceIssues.test.tsx +239 -0
- package/src/api/client.resourcePath.test.ts +3 -0
- package/src/api/client.ts +353 -64
- package/src/api/config.ts +21 -0
- package/src/api/diagnose.ts +4 -0
- package/src/api/helmInventory.test.tsx +108 -0
- package/src/api/radarFeatures.render.test.tsx +33 -1
- package/src/api/radarFeatures.test.ts +47 -0
- package/src/api/radarFeatures.ts +42 -1
- package/src/api/rbac.settled.test.tsx +42 -0
- package/src/api/rbac.test.ts +18 -0
- package/src/api/rbac.ts +37 -7
- package/src/api/traffic.ts +9 -4
- package/src/api/usage-data.fixtures.ts +3 -1
- package/src/api/usage-data.test.tsx +134 -0
- package/src/api/usage-data.ts +35 -7
- package/src/api/workloadPodsPolling.test.ts +26 -0
- package/src/components/CloudConnectFlow.test.tsx +86 -0
- package/src/components/CloudConnectFlow.tsx +65 -27
- package/src/components/CloudFunnelButton.test.tsx +140 -5
- package/src/components/CloudFunnelButton.tsx +50 -9
- package/src/components/ConnectionErrorView.test.tsx +34 -0
- package/src/components/ConnectionErrorView.tsx +35 -11
- package/src/components/ContextSwitcher.tsx +5 -2
- package/src/components/SwitchAwareConnectionError.test.tsx +43 -0
- package/src/components/SwitchAwareConnectionError.tsx +85 -0
- package/src/components/application-evidence/ApplicationEvidenceAction.flow.test.tsx +234 -0
- package/src/components/application-evidence/ApplicationEvidenceAction.test.tsx +144 -0
- package/src/components/application-evidence/ApplicationEvidenceAction.tsx +218 -0
- package/src/components/capacity/CapacityDemand.tsx +3 -2
- package/src/components/capacity/demandSummary.test.ts +38 -0
- package/src/components/capacity/shared.tsx +12 -1
- package/src/components/cost/ApplicationCostTab.tsx +4 -0
- package/src/components/cost/CostTrendChart.tsx +2 -0
- package/src/components/cost/WorkloadCostTab.tsx +4 -0
- package/src/components/cost/source.test.ts +5 -0
- package/src/components/cost/source.ts +11 -0
- package/src/components/curl/ServiceCurlAvailability.test.tsx +32 -0
- package/src/components/curl/ServiceCurlButton.tsx +2 -2
- package/src/components/diagnose/AIMarkdown.tsx +3 -0
- package/src/components/diagnose/AgentSetupNotice.test.tsx +17 -0
- package/src/components/diagnose/AgentSetupNotice.tsx +21 -3
- package/src/components/diagnose/ContinueInAgentButton.mounted.test.tsx +182 -0
- package/src/components/diagnose/ContinueInAgentButton.test.tsx +128 -0
- package/src/components/diagnose/ContinueInAgentButton.tsx +303 -0
- package/src/components/diagnose/DiagnoseContext.question.test.tsx +1 -1
- package/src/components/diagnose/DiagnoseContext.tsx +68 -2
- package/src/components/diagnose/DiagnoseSurface.tsx +58 -113
- package/src/components/diagnose/ExampleInvestigationLink.tsx +20 -0
- package/src/components/diagnose/Home.test.tsx +26 -0
- package/src/components/diagnose/Home.tsx +20 -1
- package/src/components/diagnose/InvestigationEvidenceSections.tsx +45 -22
- package/src/components/diagnose/InvestigationView.tsx +94 -26
- package/src/components/diagnose/LocalDiagnoseAction.history.test.tsx +450 -0
- package/src/components/diagnose/LocalDiagnoseAction.tsx +354 -35
- package/src/components/diagnose/NextStepJump.test.tsx +92 -0
- package/src/components/diagnose/NextStepJump.tsx +75 -0
- package/src/components/diagnose/QuestionComposer.tsx +8 -0
- package/src/components/diagnose/exampleInvestigation.events.json +191 -0
- package/src/components/diagnose/exampleInvestigation.loadFailure.test.tsx +94 -0
- package/src/components/diagnose/exampleInvestigation.test.tsx +248 -0
- package/src/components/diagnose/exampleInvestigation.ts +121 -0
- package/src/components/diagnose/investigationCase.test.tsx +50 -1
- package/src/components/diagnose/investigationEvidence/adapters/applicationFindings.test.ts +739 -0
- package/src/components/diagnose/investigationEvidence/adapters/coverage.test.tsx +72 -0
- package/src/components/diagnose/investigationEvidence/adapters/diagnose.ts +50 -2
- package/src/components/diagnose/investigationEvidence/adapters/helm.ts +51 -16
- package/src/components/diagnose/investigationEvidence/adapters/issues.ts +9 -0
- package/src/components/diagnose/investigationEvidence/adapters/listings.ts +34 -4
- package/src/components/diagnose/investigationEvidence/adapters/resource.ts +3 -2
- package/src/components/diagnose/investigationEvidence/builder.ts +30 -0
- package/src/components/diagnose/investigationEvidence/observations.ts +121 -2
- package/src/components/diagnose/investigationEvidence/projection.test.ts +85 -3
- package/src/components/diagnose/investigationEvidence/types.ts +5 -0
- package/src/components/diagnose/investigationState.ts +28 -0
- package/src/components/diagnose/lastInvestigation.test.ts +95 -0
- package/src/components/diagnose/lastInvestigation.ts +58 -0
- package/src/components/diagnose/launch.test.ts +125 -1
- package/src/components/diagnose/launch.ts +57 -10
- package/src/components/diagnose/toolCallLabel.test.ts +10 -4
- package/src/components/execution/BatchExecutionView.tsx +24 -11
- package/src/components/execution/JobSetAdmission.test.tsx +42 -0
- package/src/components/execution/JobSetAdmission.tsx +18 -3
- package/src/components/execution/JobSetMemberComparison.tsx +2 -1
- package/src/components/execution/runState.test.ts +14 -0
- package/src/components/execution/runState.ts +8 -0
- package/src/components/gitops/GitOpsView.rollbackGate.test.tsx +202 -0
- package/src/components/gitops/GitOpsView.syncRequest.test.tsx +369 -0
- package/src/components/gitops/GitOpsView.tsx +86 -17
- package/src/components/gitops/RemoteDestinationCloudHint.tsx +2 -3
- package/src/components/gitops/destination-toast.test.ts +1 -1
- package/src/components/gitops/destination-toast.ts +2 -2
- package/src/components/helm/HelmDrawerFrame.tsx +101 -0
- package/src/components/helm/HelmDrawerRouting.test.tsx +86 -0
- package/src/components/helm/HelmReleaseDrawer.tsx +23 -86
- package/src/components/helm/HelmView.tsx +213 -71
- package/src/components/helm/ObservedHelmNotice.tsx +146 -0
- package/src/components/helm/ObservedHelmRelease.test.tsx +261 -0
- package/src/components/helm/ObservedHelmReleaseDrawer.test.tsx +80 -0
- package/src/components/helm/ObservedHelmReleaseDrawer.tsx +228 -0
- package/src/components/helm/OwnedResources.tsx +4 -2
- package/src/components/home/ClusterHealthCard.restricted.test.tsx +76 -0
- package/src/components/home/ClusterHealthCard.tsx +28 -5
- package/src/components/home/HelmSummary.tsx +23 -4
- package/src/components/home/HelmSummary.unread.test.ts +16 -0
- package/src/components/home/HomeAgentBlock.test.tsx +31 -3
- package/src/components/home/HomeAgentBlock.tsx +20 -4
- package/src/components/home/HomeDiagramCard.tsx +47 -0
- package/src/components/home/HomeView.tsx +81 -41
- package/src/components/home/MCPSetupDialog.test.tsx +126 -10
- package/src/components/home/MCPSetupDialog.tsx +33 -5
- package/src/components/home/ProblemsPanel.investigate.test.tsx +171 -0
- package/src/components/home/ProblemsPanel.test.tsx +3 -1
- package/src/components/home/TopologyPreview.test.tsx +73 -0
- package/src/components/home/TopologyPreview.tsx +120 -233
- package/src/components/home/TrafficSummary.test.tsx +63 -0
- package/src/components/home/TrafficSummary.tsx +135 -138
- package/src/components/home/mcpToolCatalog.ts +67 -14
- package/src/components/issues/IssuesPane.test.ts +11 -0
- package/src/components/issues/IssuesPane.tsx +15 -5
- package/src/components/issues/uncheckedSources.test.ts +22 -1
- package/src/components/issues/uncheckedSources.ts +21 -0
- package/src/components/kueue/KueuePendingPosition.tsx +35 -0
- package/src/components/kueue/useRelatedObjects.test.tsx +219 -0
- package/src/components/kueue/useRelatedReads.test.ts +56 -0
- package/src/components/kueue/useRelatedReads.ts +205 -0
- package/src/components/logs/MultiPodLogsTab.test.tsx +93 -0
- package/src/components/logs/MultiPodLogsTab.tsx +120 -0
- package/src/components/logs/PodLogsUnavailable.test.tsx +18 -0
- package/src/components/logs/PodLogsUnavailable.tsx +21 -0
- package/src/components/logs/RayClusterLogsTab.reselect.test.tsx +67 -0
- package/src/components/logs/RayClusterLogsTab.test.tsx +167 -0
- package/src/components/logs/RayClusterLogsTab.tsx +109 -0
- package/src/components/logs/ScheduledWorkloadLogsViewer.tsx +3 -2
- package/src/components/logs/rayClusterPods.ts +32 -0
- package/src/components/outageSince.test.ts +21 -0
- package/src/components/outageSince.ts +10 -0
- package/src/components/resource/PrometheusCharts.overlays.test.ts +12 -0
- package/src/components/resource/PrometheusCharts.tsx +3 -40
- package/src/components/resources/crd/CRDSchemaTab.test.tsx +28 -0
- package/src/components/resources/crd/CRDSchemaTab.tsx +13 -0
- package/src/components/resources/crd/host.tsx +14 -0
- package/src/components/resources/renderers/CustomResourceDefinitionRenderer.test.tsx +27 -0
- package/src/components/resources/renderers/CustomResourceDefinitionRenderer.tsx +12 -0
- package/src/components/resources/renderers/JobAdmissionRenderers.test.tsx +4 -1
- package/src/components/resources/renderers/JobAdmissionRenderers.tsx +4 -3
- package/src/components/resources/renderers/KueueHostRenderers.test.tsx +117 -0
- package/src/components/resources/renderers/KueueQueueRenderers.test.tsx +97 -0
- package/src/components/resources/renderers/KueueQueueRenderers.tsx +139 -0
- package/src/components/resources/renderers/KueueWorkloadRenderer.test.tsx +7 -1
- package/src/components/resources/renderers/KueueWorkloadRenderer.tsx +47 -7
- package/src/components/resources/renderers/OpenTelemetryCollectorRenderer.test.tsx +67 -0
- package/src/components/resources/renderers/OpenTelemetryCollectorRenderer.tsx +31 -0
- package/src/components/resources/renderers/RayClusterRenderer.test.tsx +81 -3
- package/src/components/resources/renderers/RayClusterRenderer.tsx +19 -4
- package/src/components/resources/renderers/ServiceRenderer.test.tsx +15 -2
- package/src/components/resources/renderers/ServiceRenderer.tsx +1 -1
- package/src/components/resources/renderers/ValidatingAdmissionPolicyRenderer.test.tsx +160 -0
- package/src/components/resources/renderers/ValidatingAdmissionPolicyRenderer.tsx +128 -0
- package/src/components/traffic/TrafficView.tsx +3 -3
- package/src/components/ui/command-items-crd.test.tsx +23 -0
- package/src/components/ui/command-items.ts +2 -1
- package/src/components/useContextSwitchFlow.test.tsx +61 -0
- package/src/components/useContextSwitchFlow.tsx +21 -4
- package/src/components/whats-new/WhatsNew.test.ts +10 -3
- package/src/components/whats-new/WhatsNew.tsx +5 -1
- package/src/components/whats-new/WhatsNewDialog.test.tsx +17 -3
- package/src/components/whats-new/releaseNotes.ts +77 -4
- package/src/components/workload/RelatedFindingsSection.test.tsx +126 -0
- package/src/components/workload/RelatedFindingsSection.tsx +80 -0
- package/src/components/workload/WorkloadView.test.ts +10 -1
- package/src/components/workload/WorkloadView.tsx +85 -98
- package/src/components/workload/issueResourceOpener.test.ts +20 -0
- package/src/components/workload/issueResourceOpener.ts +17 -0
- package/src/context/ConnectionContext.tsx +133 -60
- package/src/context/ConnectionProvider.retry.test.tsx +176 -0
- package/src/context/ContextSwitchContext.tsx +14 -1
- package/src/context/DiagnoseCustomization.tsx +3 -0
- package/src/context/clusterConnected.ts +10 -0
- package/src/contexts/CapabilitiesContext.tsx +8 -4
- package/src/hooks/useElementSize.ts +30 -0
- package/src/hooks/useResolvedGitOpsOwner.test.ts +22 -0
- package/src/hooks/useResolvedGitOpsOwner.ts +6 -3
- package/src/integrations/resourceHost.test.tsx +1 -0
- package/src/integrations/resourceHost.ts +5 -1
- package/src/integrations/resourceHosts.test.tsx +21 -4
- package/src/integrations/resourceHosts.tsx +17 -0
- package/src/main.tsx +5 -0
- package/src/utils/related-findings.ts +46 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// @vitest-environment jsdom
|
|
2
|
+
import { describe, expect, it, vi } from "vitest";
|
|
3
|
+
import { renderToString } from "react-dom/server";
|
|
4
|
+
import type { DashboardResourceCounts } from "../../api/client";
|
|
5
|
+
import { ClusterHealthCard } from "./ClusterHealthCard";
|
|
6
|
+
|
|
7
|
+
// The MCP block needs the Diagnose provider and is unrelated to the counts.
|
|
8
|
+
vi.mock("./HomeAgentBlock", () => ({ HomeAgentBlock: () => null }));
|
|
9
|
+
|
|
10
|
+
function counts(overrides: Partial<DashboardResourceCounts>): DashboardResourceCounts {
|
|
11
|
+
return {
|
|
12
|
+
pods: { total: 0, running: 0, pending: 0, failed: 0, succeeded: 0 },
|
|
13
|
+
deployments: { total: 0, available: 0, unavailable: 0 },
|
|
14
|
+
statefulSets: { total: 0, ready: 0, unready: 0 },
|
|
15
|
+
daemonSets: { total: 0, ready: 0, unready: 0 },
|
|
16
|
+
services: 0,
|
|
17
|
+
ingresses: 0,
|
|
18
|
+
nodes: { total: 0, ready: 0, notReady: 0, cordoned: 0 },
|
|
19
|
+
namespaces: 0,
|
|
20
|
+
jobs: { total: 0, active: 0, succeeded: 0, failed: 0 },
|
|
21
|
+
cronJobs: { total: 0, active: 0, suspended: 0 },
|
|
22
|
+
configMaps: 0,
|
|
23
|
+
secrets: 0,
|
|
24
|
+
pvcs: { total: 0, bound: 0, pending: 0, unbound: 0 },
|
|
25
|
+
...overrides,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function render(c: DashboardResourceCounts): string {
|
|
30
|
+
return renderToString(
|
|
31
|
+
<ClusterHealthCard
|
|
32
|
+
health={{ healthy: 0, warning: 0, error: 0, warningEvents: 0 }}
|
|
33
|
+
counts={c}
|
|
34
|
+
cluster={{ name: "test", platform: "", version: "", connected: true }}
|
|
35
|
+
metrics={null}
|
|
36
|
+
metricsServerAvailable={false}
|
|
37
|
+
issueCount={0}
|
|
38
|
+
hasCriticalIssues={false}
|
|
39
|
+
nodeVersionSkew={null}
|
|
40
|
+
onNavigateToKind={() => {}}
|
|
41
|
+
onNavigateToView={() => {}}
|
|
42
|
+
/>,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
describe("ClusterHealthCard restricted counts", () => {
|
|
47
|
+
it("shows the restricted Nodes ring instead of a zero ring", () => {
|
|
48
|
+
const html = render(counts({ restricted: ["nodes"] }));
|
|
49
|
+
expect(html).toMatch(/Nodes<\/span><span[^>]*>Restricted/);
|
|
50
|
+
expect(html).not.toContain("0 ready");
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
it("blames Node access, not metrics-server, for missing CPU and memory", () => {
|
|
54
|
+
expect(render(counts({ restricted: ["nodes"] }))).toContain("CPU and memory need permission to list Nodes");
|
|
55
|
+
expect(render(counts({ restricted: ["nodes"] }))).not.toContain("metrics-server");
|
|
56
|
+
expect(render(counts({}))).toContain("metrics-server");
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it("marks a namespace count Radar could not list as a lower bound", () => {
|
|
60
|
+
const html = render(counts({ namespaces: 15, restricted: ["namespaces"] }));
|
|
61
|
+
expect(html).toContain("≥");
|
|
62
|
+
expect(html).toMatch(/>15<\/span> (<!-- -->)?namespaces/);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it("says restricted rather than zero when no namespace is known", () => {
|
|
66
|
+
const html = render(counts({ restricted: ["namespaces"] }));
|
|
67
|
+
expect(html).toContain("Namespaces restricted");
|
|
68
|
+
expect(html).not.toMatch(/>0<\/span> (<!-- -->)?namespaces/);
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it("keeps an exact namespace count unmarked", () => {
|
|
72
|
+
const html = render(counts({ namespaces: 111 }));
|
|
73
|
+
expect(html).toMatch(/>111<\/span> namespaces/);
|
|
74
|
+
expect(html).not.toContain("≥");
|
|
75
|
+
});
|
|
76
|
+
});
|
|
@@ -10,7 +10,7 @@ import { clsx } from 'clsx'
|
|
|
10
10
|
import { formatCPUMillicores, formatMemoryMiB } from '../../utils/format'
|
|
11
11
|
import { useCapabilitiesContext } from '../../contexts/CapabilitiesContext'
|
|
12
12
|
import { HomeAgentBlock } from './HomeAgentBlock'
|
|
13
|
-
import { assetUrl, pluralize, parseContextName } from '@skyhook-io/k8s-ui'
|
|
13
|
+
import { assetUrl, pluralize, parseContextName, CertaintyGlyph } from '@skyhook-io/k8s-ui'
|
|
14
14
|
import { Tooltip } from '../ui/Tooltip'
|
|
15
15
|
import { mcpEndpointUrl } from '../../api/config'
|
|
16
16
|
import { parseMajorMinor } from '../../utils/version'
|
|
@@ -273,7 +273,7 @@ export function ClusterHealthCard({
|
|
|
273
273
|
/>
|
|
274
274
|
)}
|
|
275
275
|
{radarVersion}
|
|
276
|
-
<
|
|
276
|
+
<NamespaceCountLine count={counts.namespaces} restricted={isRestricted('namespaces')} />
|
|
277
277
|
</div>
|
|
278
278
|
{freshness && <div className="mt-2">{freshness}</div>}
|
|
279
279
|
{nodeVersionSkew && (
|
|
@@ -303,7 +303,7 @@ export function ClusterHealthCard({
|
|
|
303
303
|
(org-wide endpoint, PAT-authed) rather than per-cluster, so this
|
|
304
304
|
localhost/no-auth entry would mislead a Cloud user. */}
|
|
305
305
|
{showLocalMcpCard && (
|
|
306
|
-
<HomeAgentBlock mcpUrl={mcpUrl} readOnly={caps.mcpReadOnly} execTools={caps.mcpExecTools} />
|
|
306
|
+
<HomeAgentBlock mcpUrl={mcpUrl} readOnly={caps.mcpReadOnly} execTools={caps.mcpExecTools} httpTools={caps.mcpHttpTools} helmTools={caps.mcpHelmTools} applicationEvidenceAvailable={caps.mcpApplicationEvidence} />
|
|
307
307
|
)}
|
|
308
308
|
</div>
|
|
309
309
|
|
|
@@ -440,9 +440,15 @@ export function ClusterHealthCard({
|
|
|
440
440
|
/>
|
|
441
441
|
</div>
|
|
442
442
|
)}
|
|
443
|
-
{!metricsServerAvailable && (
|
|
443
|
+
{!metricsServerAvailable && (isRestricted('nodes') ? (
|
|
444
|
+
// Capacity comes from Nodes, so installing metrics-server wouldn't help.
|
|
445
|
+
<span className="flex items-center gap-1.5 text-xs text-theme-text-tertiary">
|
|
446
|
+
<Shield className="w-3 h-3 shrink-0" />
|
|
447
|
+
<span>CPU and memory need permission to list Nodes</span>
|
|
448
|
+
</span>
|
|
449
|
+
) : (
|
|
444
450
|
<MetricsUnavailableHint platform={cluster.platform} metricsServerAvailable={metricsServerAvailable} />
|
|
445
|
-
)}
|
|
451
|
+
))}
|
|
446
452
|
</div>
|
|
447
453
|
|
|
448
454
|
</div>
|
|
@@ -566,6 +572,23 @@ function KubernetesVersionLine({
|
|
|
566
572
|
)
|
|
567
573
|
}
|
|
568
574
|
|
|
575
|
+
// A restricted count covers only the namespaces Radar reads, so it is a lower
|
|
576
|
+
// bound, and zero means unknown rather than none.
|
|
577
|
+
export function NamespaceCountLine({ count, restricted }: { count: number; restricted: boolean }) {
|
|
578
|
+
if (!restricted) {
|
|
579
|
+
return <span><span className="font-mono">{count}</span> namespaces</span>
|
|
580
|
+
}
|
|
581
|
+
if (count === 0) {
|
|
582
|
+
return <span>Namespaces restricted</span>
|
|
583
|
+
}
|
|
584
|
+
return (
|
|
585
|
+
<span className="flex items-center gap-1">
|
|
586
|
+
<CertaintyGlyph certainty="lower_bound" title="Namespaces can't be listed here, so this counts only the ones in view. The cluster may have more." />
|
|
587
|
+
<span><span className="font-mono">{count}</span> {count === 1 ? 'namespace' : 'namespaces'}</span>
|
|
588
|
+
</span>
|
|
589
|
+
)
|
|
590
|
+
}
|
|
591
|
+
|
|
569
592
|
function RestrictedRing({ label }: { label: string }) {
|
|
570
593
|
const radius = 36
|
|
571
594
|
const circumference = 2 * Math.PI * radius
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { useRadarFeature, type DashboardHelmSummary } from '../../api/client'
|
|
2
2
|
import { Package, ArrowRight, Shield } from 'lucide-react'
|
|
3
3
|
import { clsx } from 'clsx'
|
|
4
4
|
import { Tooltip } from '../ui/Tooltip'
|
|
5
|
+
import { SEVERITY_TEXT } from '../../utils/badge-colors'
|
|
5
6
|
|
|
6
7
|
interface HelmSummaryProps {
|
|
7
8
|
data?: DashboardHelmSummary
|
|
@@ -40,7 +41,18 @@ function getHealthDot(health?: string): string {
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
// What the card is missing when Helm's records couldn't be read in some
|
|
45
|
+
// namespaces. The Helm view still lists those releases from their objects.
|
|
46
|
+
export function unreadHelmNamespacesLine(unread: DashboardHelmSummary['unreadNamespaces']): string | null {
|
|
47
|
+
if (!unread) return null
|
|
48
|
+
if (unread.extent) return 'Helm’s records weren’t read in some namespaces. Open Helm for releases there.'
|
|
49
|
+
const where = unread.names?.length === 1 ? unread.names[0] : `${unread.count} namespaces`
|
|
50
|
+
return `Helm’s records weren’t read in ${where}. Open Helm for releases there.`
|
|
51
|
+
}
|
|
52
|
+
|
|
43
53
|
export function HelmSummary({ data, onNavigate }: HelmSummaryProps) {
|
|
54
|
+
const observedView = useRadarFeature('helmInventory').support === 'supported'
|
|
55
|
+
const unreadLine = unreadHelmNamespacesLine(data?.unreadNamespaces)
|
|
44
56
|
return (
|
|
45
57
|
<button
|
|
46
58
|
onClick={onNavigate}
|
|
@@ -79,8 +91,8 @@ export function HelmSummary({ data, onNavigate }: HelmSummaryProps) {
|
|
|
79
91
|
) : data.restricted ? (
|
|
80
92
|
<div className="flex flex-col items-center justify-center h-full py-4 text-theme-text-tertiary">
|
|
81
93
|
<Shield className="w-8 h-8 text-amber-400 mb-2" />
|
|
82
|
-
<span className="text-xs font-medium text-theme-text-secondary">Access Restricted</span>
|
|
83
|
-
<span className="text-[11px] mt-1">Insufficient permissions to list Helm releases</span>
|
|
94
|
+
<span className="text-xs font-medium text-theme-text-secondary">{observedView ? 'Helm’s records are restricted' : 'Access Restricted'}</span>
|
|
95
|
+
<span className="text-[11px] mt-1">{observedView ? 'Open Helm to see releases from object labels and annotations' : 'Insufficient permissions to list Helm releases'}</span>
|
|
84
96
|
</div>
|
|
85
97
|
) : data.error ? (
|
|
86
98
|
<div className="flex flex-col items-center justify-center h-full py-4 text-theme-text-tertiary">
|
|
@@ -98,7 +110,7 @@ export function HelmSummary({ data, onNavigate }: HelmSummaryProps) {
|
|
|
98
110
|
</div>
|
|
99
111
|
) : !data.releases || data.releases.length === 0 ? (
|
|
100
112
|
<div className="flex items-center justify-center h-full py-4 text-xs text-theme-text-tertiary">
|
|
101
|
-
No Helm releases found
|
|
113
|
+
{unreadLine ? 'No Helm releases where Radar could read Helm’s records' : 'No Helm releases found'}
|
|
102
114
|
</div>
|
|
103
115
|
) : (
|
|
104
116
|
<div className="divide-y divide-theme-border">
|
|
@@ -128,6 +140,13 @@ export function HelmSummary({ data, onNavigate }: HelmSummaryProps) {
|
|
|
128
140
|
)}
|
|
129
141
|
</div>
|
|
130
142
|
|
|
143
|
+
{unreadLine && data && !data.restricted && !data.error && (
|
|
144
|
+
<Tooltip content={unreadLine} wrapperClassName="!block min-w-0 w-full">
|
|
145
|
+
<div className={clsx('px-4 py-1.5 border-t border-theme-border/50 text-[11px] truncate', SEVERITY_TEXT.warning)}>
|
|
146
|
+
{unreadLine}
|
|
147
|
+
</div>
|
|
148
|
+
</Tooltip>
|
|
149
|
+
)}
|
|
131
150
|
<div className="px-4 py-1.5 border-t border-theme-border/50 flex items-center justify-between">
|
|
132
151
|
<span className="text-[10px] text-theme-text-tertiary">
|
|
133
152
|
{data && data.releases && data.total > data.releases.length ? `+${data.total - data.releases.length} more` : ''}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { unreadHelmNamespacesLine } from './HelmSummary'
|
|
3
|
+
|
|
4
|
+
describe('the Home Helm card when some namespaces went unread', () => {
|
|
5
|
+
it('says nothing when everything was read', () => {
|
|
6
|
+
expect(unreadHelmNamespacesLine(undefined)).toBeNull()
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
it('names a single namespace', () => {
|
|
10
|
+
expect(unreadHelmNamespacesLine({ count: 1, names: ['team-b'] })).toBe('Helm’s records weren’t read in team-b. Open Helm for releases there.')
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
it('counts several', () => {
|
|
14
|
+
expect(unreadHelmNamespacesLine({ count: 30, names: ['a', 'b'] })).toContain('in 30 namespaces')
|
|
15
|
+
})
|
|
16
|
+
})
|
|
@@ -10,8 +10,13 @@ const nav = vi.hoisted(() => ({ embedded: false }))
|
|
|
10
10
|
vi.mock('../diagnose/DiagnoseContext', () => ({ useDiagnose: () => diagnose.current }))
|
|
11
11
|
vi.mock('../../context/NavCustomization', () => ({ useNavCustomization: () => nav }))
|
|
12
12
|
vi.mock('./MCPSetupDialog', () => ({
|
|
13
|
-
MCPSetupDialog: ({ open, readOnly }: { open: boolean; readOnly?: boolean }) =>
|
|
14
|
-
open ?
|
|
13
|
+
MCPSetupDialog: ({ open, readOnly, onInvestigate }: { open: boolean; readOnly?: boolean; onInvestigate?: () => void }) =>
|
|
14
|
+
open ? (
|
|
15
|
+
<div data-testid="mcp-dialog">
|
|
16
|
+
{readOnly ? 'read-only' : 'full'}
|
|
17
|
+
{onInvestigate && <button onClick={onInvestigate}>dialog-investigate</button>}
|
|
18
|
+
</div>
|
|
19
|
+
) : null,
|
|
15
20
|
}))
|
|
16
21
|
|
|
17
22
|
Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true })
|
|
@@ -108,6 +113,29 @@ describe('HomeAgentBlock', () => {
|
|
|
108
113
|
expect(host.textContent).toContain('localhost:9280/mcp')
|
|
109
114
|
expect(host.querySelector('[data-testid="mcp-dialog"]')).toBeNull()
|
|
110
115
|
act(() => button(/^Connect$/)!.click())
|
|
111
|
-
expect(host.querySelector('[data-testid="mcp-dialog"]')?.textContent).
|
|
116
|
+
expect(host.querySelector('[data-testid="mcp-dialog"]')?.textContent).toContain('read-only')
|
|
117
|
+
})
|
|
118
|
+
|
|
119
|
+
it.each([
|
|
120
|
+
[true, 'openQuestion'],
|
|
121
|
+
[false, 'openWorkspace'],
|
|
122
|
+
])('lets the dialog open the composer when an agent is ready (questions=%s)', (questions, opener) => {
|
|
123
|
+
setDiagnose({ questions })
|
|
124
|
+
render()
|
|
125
|
+
act(() => button(/^Connect$/)!.click())
|
|
126
|
+
act(() => button(/dialog-investigate/)!.click())
|
|
127
|
+
expect(diagnose.current[opener]).toHaveBeenCalled()
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
it.each([
|
|
131
|
+
['no agent is ready', () => setDiagnose({ available: false, setupState: 'needs-install' })],
|
|
132
|
+
['investigations are off', () => setDiagnose({ available: false, setupState: 'off' })],
|
|
133
|
+
['the host is embedded', () => { nav.embedded = true }],
|
|
134
|
+
])('gives the dialog no in-Radar link when %s', (_, arrange) => {
|
|
135
|
+
arrange()
|
|
136
|
+
render()
|
|
137
|
+
act(() => button(/^Connect$/)!.click())
|
|
138
|
+
expect(host.querySelector('[data-testid="mcp-dialog"]')).toBeTruthy()
|
|
139
|
+
expect(button(/dialog-investigate/)).toBeUndefined()
|
|
112
140
|
})
|
|
113
141
|
})
|
|
@@ -14,10 +14,17 @@ export function HomeAgentBlock({
|
|
|
14
14
|
mcpUrl,
|
|
15
15
|
readOnly,
|
|
16
16
|
execTools,
|
|
17
|
+
httpTools,
|
|
18
|
+
helmTools,
|
|
19
|
+
applicationEvidenceAvailable,
|
|
17
20
|
}: {
|
|
18
21
|
mcpUrl: string
|
|
19
22
|
readOnly?: boolean
|
|
20
23
|
execTools?: boolean
|
|
24
|
+
httpTools?: boolean
|
|
25
|
+
/** Whether the native Helm MCP tool is registered; target Kubernetes permissions still required. */
|
|
26
|
+
helmTools?: boolean
|
|
27
|
+
applicationEvidenceAvailable?: boolean
|
|
21
28
|
}) {
|
|
22
29
|
const [mcpDialogOpen, setMcpDialogOpen] = useState(false)
|
|
23
30
|
const d = useDiagnose()
|
|
@@ -52,11 +59,20 @@ export function HomeAgentBlock({
|
|
|
52
59
|
mcpUrl={mcpUrl}
|
|
53
60
|
readOnly={readOnly}
|
|
54
61
|
execTools={execTools}
|
|
62
|
+
httpTools={httpTools}
|
|
63
|
+
helmTools={helmTools}
|
|
64
|
+
onInvestigate={showInvestigate && d.available ? () => openComposer(d) : undefined}
|
|
65
|
+
applicationEvidenceAvailable={applicationEvidenceAvailable}
|
|
55
66
|
/>
|
|
56
67
|
</div>
|
|
57
68
|
)
|
|
58
69
|
}
|
|
59
70
|
|
|
71
|
+
function openComposer(d: ReturnType<typeof useDiagnose>) {
|
|
72
|
+
if (d.questions) d.openQuestion({})
|
|
73
|
+
else d.openWorkspace()
|
|
74
|
+
}
|
|
75
|
+
|
|
60
76
|
function InvestigateLine() {
|
|
61
77
|
const d = useDiagnose()
|
|
62
78
|
if (!d.available) {
|
|
@@ -66,9 +82,9 @@ function InvestigateLine() {
|
|
|
66
82
|
<button
|
|
67
83
|
type="button"
|
|
68
84
|
onClick={d.openHome}
|
|
69
|
-
className="flex w-full items-center gap-2 rounded px-0.5 text-left text-xs font-medium text-
|
|
85
|
+
className="flex w-full items-center gap-2 rounded px-0.5 text-left text-xs font-medium text-accent-text hover:underline"
|
|
70
86
|
>
|
|
71
|
-
<Sparkles className="h-3.5 w-3.5 shrink-0" aria-hidden />
|
|
87
|
+
<Sparkles className="h-3.5 w-3.5 shrink-0 text-accent" aria-hidden />
|
|
72
88
|
{label}
|
|
73
89
|
</button>
|
|
74
90
|
</Tooltip>
|
|
@@ -81,10 +97,10 @@ function InvestigateLine() {
|
|
|
81
97
|
type="button"
|
|
82
98
|
// Opens the investigations panel's question composer, focused: the
|
|
83
99
|
// composer is where the scope and look-back are chosen before a run.
|
|
84
|
-
onClick={() => (d
|
|
100
|
+
onClick={() => openComposer(d)}
|
|
85
101
|
className="flex w-full items-center gap-2 rounded border border-theme-border bg-theme-surface px-2 py-1.5 text-left text-xs text-theme-text-tertiary transition-colors hover:border-purple-500/40 hover:text-theme-text-secondary"
|
|
86
102
|
>
|
|
87
|
-
<Sparkles className="h-3.5 w-3.5 shrink-0 text-
|
|
103
|
+
<Sparkles className="h-3.5 w-3.5 shrink-0 text-accent" aria-hidden />
|
|
88
104
|
<span className="truncate">
|
|
89
105
|
{d.questions ? `Ask ${d.agentLabel} about this cluster…` : `Investigate with ${d.agentLabel}`}
|
|
90
106
|
</span>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ReactNode } from 'react'
|
|
2
|
+
import type { LucideIcon } from 'lucide-react'
|
|
3
|
+
import { ArrowRight } from 'lucide-react'
|
|
4
|
+
|
|
5
|
+
interface HomeDiagramCardProps {
|
|
6
|
+
icon: LucideIcon
|
|
7
|
+
title: string
|
|
8
|
+
fact?: ReactNode
|
|
9
|
+
drawing: ReactNode
|
|
10
|
+
caption: ReactNode
|
|
11
|
+
footer: string
|
|
12
|
+
onNavigate: () => void
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// The frame Home's Topology and Live Traffic cards share: the whole card opens
|
|
16
|
+
// the view, so the drawing and caption carry no controls of their own.
|
|
17
|
+
export function HomeDiagramCard({ icon: Icon, title, fact, drawing, caption, footer, onNavigate }: HomeDiagramCardProps) {
|
|
18
|
+
return (
|
|
19
|
+
<button
|
|
20
|
+
type="button"
|
|
21
|
+
onClick={onNavigate}
|
|
22
|
+
className="group h-[260px] w-full rounded-xl bg-theme-surface shadow-theme-sm hover:-translate-y-1 hover:shadow-theme-md transition-all duration-200 text-left overflow-hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"
|
|
23
|
+
>
|
|
24
|
+
<div className="flex flex-col h-full w-full">
|
|
25
|
+
<div className="flex items-center justify-between gap-3 px-5 py-3 border-b border-theme-border/50">
|
|
26
|
+
<div className="flex items-center gap-2 shrink-0">
|
|
27
|
+
<Icon className="w-4 h-4 text-theme-text-tertiary" />
|
|
28
|
+
<span className="text-xs font-semibold uppercase tracking-wider text-theme-text-secondary">{title}</span>
|
|
29
|
+
</div>
|
|
30
|
+
{fact && (
|
|
31
|
+
<span className="min-w-0 truncate text-[11px] text-theme-text-tertiary tabular-nums">{fact}</span>
|
|
32
|
+
)}
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div className="flex-1 min-h-0 flex flex-col px-3 pt-1.5 pb-2.5">
|
|
36
|
+
<div className="flex-1 min-h-0">{drawing}</div>
|
|
37
|
+
<p className="px-2 pt-1 text-[11.5px] leading-snug text-theme-text-secondary">{caption}</p>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<div className="px-4 py-1.5 border-t border-theme-border/50 flex items-center justify-end gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-theme-text-secondary group-hover:text-theme-text-primary transition-colors">
|
|
41
|
+
{footer}
|
|
42
|
+
<ArrowRight className="w-3.5 h-3.5 transition-transform group-hover:translate-x-0.5" />
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</button>
|
|
46
|
+
)
|
|
47
|
+
}
|
|
@@ -35,6 +35,9 @@ import { UncheckedSourceHelp } from '../issues/UncheckedSourceHelp'
|
|
|
35
35
|
import { clsx } from 'clsx'
|
|
36
36
|
import { getVersionUpdateStatus } from '../../utils/version'
|
|
37
37
|
import { RadarVersionLine } from './RadarVersionLine'
|
|
38
|
+
import { IssueDiagnoseButton, useIssueDiagnoseShown } from '../diagnose/LocalDiagnoseAction'
|
|
39
|
+
import { recordUsageEvent } from '../../api/usage-data'
|
|
40
|
+
import { HOVER_REVEAL_ACTION, HOVER_REVEAL_HIT, HOVER_REVEAL_REST } from '../../utils/animation'
|
|
38
41
|
|
|
39
42
|
interface HomeViewProps {
|
|
40
43
|
namespaces: string[]
|
|
@@ -299,6 +302,26 @@ function BandItem({ children }: { children: ReactNode }) {
|
|
|
299
302
|
// Problems Panel (right sidebar, scrollable)
|
|
300
303
|
// ============================================================================
|
|
301
304
|
|
|
305
|
+
// The row's Investigate action is a sibling of the row button (a button can't
|
|
306
|
+
// nest in a button), laid over the right end of line 1. With a pointer, hover
|
|
307
|
+
// or keyboard focus swaps the age and timing chip there for the action; its
|
|
308
|
+
// left edge fades into the hover tint so a long name it overlays isn't
|
|
309
|
+
// hard-clipped. On touch there is no hover, so it sits in the row's flow below
|
|
310
|
+
// the text, always shown.
|
|
311
|
+
const ISSUE_ROW_ACTION_CLASS = clsx(
|
|
312
|
+
'absolute right-3 top-1.5 flex items-center pl-4',
|
|
313
|
+
'bg-[linear-gradient(to_right,transparent,var(--color-theme-hover)_1rem)]',
|
|
314
|
+
HOVER_REVEAL_ACTION,
|
|
315
|
+
'[@media(hover:none)]:static [@media(hover:none)]:justify-end [@media(hover:none)]:bg-none [@media(hover:none)]:px-3 [@media(hover:none)]:pb-1.5 [@media(hover:none)]:opacity-100 [@media(hover:none)]:translate-y-0',
|
|
316
|
+
)
|
|
317
|
+
const ISSUE_ROW_ACTION_HIT_CLASS = clsx(HOVER_REVEAL_HIT, 'flex [@media(hover:none)]:pointer-events-auto')
|
|
318
|
+
// Without hover the action isn't in line 1, so nothing there swaps out (the
|
|
319
|
+
// keyboard-focus half of the reveal would otherwise still hide it).
|
|
320
|
+
const ISSUE_ROW_META_TOUCH_CLASS = '[@media(hover:none)]:opacity-100! [@media(hover:none)]:translate-none!'
|
|
321
|
+
// Line 1 is as tall as its kind badge. An invisible zero-width copy of it gives
|
|
322
|
+
// the overlaid action the same height, so it centers on line 1.
|
|
323
|
+
const ISSUE_ROW_STRUT = 'invisible w-0 overflow-hidden px-0 border-x-0 [@media(hover:none)]:hidden'
|
|
324
|
+
|
|
302
325
|
interface ProblemsPanelProps {
|
|
303
326
|
issues: Issue[]
|
|
304
327
|
issueCount: number
|
|
@@ -331,6 +354,10 @@ export function ProblemsPanel({
|
|
|
331
354
|
onResourceClick,
|
|
332
355
|
}: ProblemsPanelProps) {
|
|
333
356
|
const unchecked = uncheckedLines.length > 0
|
|
357
|
+
// While rows swap their age and chip for Investigate, those two lose their
|
|
358
|
+
// tooltips: hovering them is what swaps them out, and the tooltip would open
|
|
359
|
+
// over the action under a pointer that hasn't moved since.
|
|
360
|
+
const canInvestigate = useIssueDiagnoseShown()
|
|
334
361
|
const hasCriticalIssues = issues.some((issue) => issue.severity === 'critical')
|
|
335
362
|
const hasIssues = issueCount > 0
|
|
336
363
|
const hasHardError = !!error && !hasData
|
|
@@ -435,50 +462,63 @@ export function ProblemsPanel({
|
|
|
435
462
|
const timing = issueTimingForDisplay(issue)
|
|
436
463
|
|
|
437
464
|
return (
|
|
438
|
-
<
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
465
|
+
<div key={issue.id} className="group relative">
|
|
466
|
+
<button
|
|
467
|
+
type="button"
|
|
468
|
+
className="w-full flex items-center gap-2 px-3 py-1.5 group-hover:bg-theme-hover group-has-[:focus-visible]:bg-theme-hover transition-colors text-left"
|
|
469
|
+
onClick={() => {
|
|
470
|
+
recordUsageEvent({ type: 'ui', name: 'issue_action:open' })
|
|
471
|
+
onResourceClick({
|
|
472
|
+
kind: ref.kind,
|
|
473
|
+
namespace: ref.namespace ?? '',
|
|
474
|
+
name: ref.name,
|
|
475
|
+
group: ref.group ?? '',
|
|
476
|
+
})
|
|
477
|
+
}}
|
|
478
|
+
>
|
|
479
|
+
<StatusDot tone={issue.severity === 'critical' ? 'unhealthy' : 'degraded'} className="shrink-0" />
|
|
480
|
+
<div className="min-w-0 flex-1">
|
|
481
|
+
<div className="flex items-center gap-1.5">
|
|
482
|
+
<span className="text-[10px] text-theme-text-tertiary bg-theme-elevated px-1 py-0.5 rounded">{issue.kind}</span>
|
|
483
|
+
<span className="text-xs text-theme-text-primary truncate font-medium">{issue.name}</span>
|
|
484
|
+
{(age || timing) && (
|
|
485
|
+
<span className={clsx('ml-auto flex shrink-0 items-center gap-2', canInvestigate && [HOVER_REVEAL_REST, ISSUE_ROW_META_TOUCH_CLASS])}>
|
|
486
|
+
{age && (
|
|
487
|
+
<Tooltip content={issueFirstSeenTitle(issue)} delay={100} disabled={canInvestigate}>
|
|
488
|
+
<span className="text-[10px] text-theme-text-tertiary tabular-nums">{age}</span>
|
|
489
|
+
</Tooltip>
|
|
490
|
+
)}
|
|
491
|
+
{timing && (
|
|
492
|
+
<Tooltip content={timing.tooltip} delay={100} disabled={canInvestigate}>
|
|
493
|
+
<span className="text-[10px] text-theme-text-secondary">{timing.chip}</span>
|
|
494
|
+
</Tooltip>
|
|
495
|
+
)}
|
|
496
|
+
</span>
|
|
497
|
+
)}
|
|
498
|
+
</div>
|
|
499
|
+
<div className="flex items-center gap-1.5 mt-0.5">
|
|
500
|
+
<span className="text-[11px] text-theme-text-secondary truncate">{issueTitle(issue)}</span>
|
|
501
|
+
<span className="text-[10px] text-theme-text-tertiary shrink-0">{groupLabel(issue.category_group)}</span>
|
|
502
|
+
{issue.namespace && <span className="text-[10px] text-theme-text-tertiary shrink-0">{issue.namespace}</span>}
|
|
503
|
+
</div>
|
|
504
|
+
{(issue.reason || issue.message) && (
|
|
505
|
+
<div className="text-[10px] text-theme-text-tertiary truncate mt-0.5">
|
|
506
|
+
{issue.reason}
|
|
507
|
+
{issue.reason && issue.message ? ' - ' : ''}
|
|
508
|
+
{issue.message}
|
|
509
|
+
</div>
|
|
466
510
|
)}
|
|
467
511
|
</div>
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
512
|
+
</button>
|
|
513
|
+
{canInvestigate && (
|
|
514
|
+
<div className={ISSUE_ROW_ACTION_CLASS}>
|
|
515
|
+
<span aria-hidden className={clsx(ISSUE_ROW_STRUT, 'text-[10px] py-0.5')}>{'\u200b'}</span>
|
|
516
|
+
<span className={ISSUE_ROW_ACTION_HIT_CLASS}>
|
|
517
|
+
<IssueDiagnoseButton size="compact" kind={ref.kind} group={ref.group} namespace={ref.namespace ?? ''} name={ref.name} />
|
|
518
|
+
</span>
|
|
472
519
|
</div>
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
{issue.reason}
|
|
476
|
-
{issue.reason && issue.message ? ' - ' : ''}
|
|
477
|
-
{issue.message}
|
|
478
|
-
</div>
|
|
479
|
-
)}
|
|
480
|
-
</div>
|
|
481
|
-
</button>
|
|
520
|
+
)}
|
|
521
|
+
</div>
|
|
482
522
|
)
|
|
483
523
|
})}
|
|
484
524
|
</div>
|