@skyhook-io/radar-app 1.21.8 → 1.22.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/package.json +1 -1
- package/src/App.tsx +16 -1
- package/src/api/client.ts +18 -0
- package/src/api/cnpg-history.ts +3 -3
- package/src/api/cnpg-storage.ts +3 -3
- package/src/api/diagnose.test.ts +34 -0
- package/src/api/diagnose.ts +17 -4
- package/src/api/radarFeatures.test.ts +13 -1
- package/src/api/radarFeatures.ts +6 -0
- package/src/api/resourceActions.test.ts +829 -0
- package/src/api/resourceActions.ts +584 -0
- package/src/api/resourceActions.ui.test.tsx +1882 -0
- package/src/api/reviewedActionMutation.ts +56 -28
- package/src/api/substrateHealth.ts +2 -3
- package/src/api/traefik.ts +33 -0
- package/src/api/traffic.ts +14 -5
- package/src/api/workloadMetrics.test.ts +11 -2
- package/src/api/workloadMetrics.ts +2 -2
- package/src/components/CloudFunnelButton.test.tsx +39 -1
- package/src/components/CloudFunnelButton.tsx +10 -3
- package/src/components/cnpg/CNPGOverview.test.tsx +75 -3
- package/src/components/cnpg/CNPGOverview.tsx +62 -4
- package/src/components/diagnose/AnalysisStory.test.tsx +12 -0
- package/src/components/diagnose/DiagnoseContext.question.test.tsx +34 -1
- package/src/components/diagnose/DiagnoseContext.tsx +28 -3
- package/src/components/diagnose/DiagnoseSurface.tsx +5 -4
- package/src/components/diagnose/Home.tsx +3 -0
- package/src/components/diagnose/InvestigationEvidencePane.test.tsx +61 -0
- package/src/components/diagnose/InvestigationView.followupFailure.test.tsx +122 -0
- package/src/components/diagnose/InvestigationView.tsx +10 -2
- package/src/components/diagnose/LocalDiagnoseAction.history.test.tsx +1 -1
- package/src/components/diagnose/LocalDiagnoseAction.tsx +2 -2
- package/src/components/diagnose/QuestionComposer.test.tsx +16 -2
- package/src/components/diagnose/QuestionComposer.tsx +13 -8
- package/src/components/diagnose/diagnoseEvidenceTypes.ts +47 -8
- package/src/components/diagnose/investigationEvidence/adapters/diagnose.test.ts +153 -0
- package/src/components/diagnose/investigationEvidence/adapters/diagnose.ts +9 -13
- package/src/components/diagnose/investigationEvidence/adapters/issues.ts +21 -5
- package/src/components/diagnose/investigationEvidence/bodies/network.tsx +63 -26
- package/src/components/diagnose/launch.ts +1 -1
- package/src/components/dock/PodDebugSession.test.tsx +66 -0
- package/src/components/dock/PodDebugSession.tsx +3 -1
- package/src/components/dock/TerminalTab.test.tsx +43 -3
- package/src/components/dock/TerminalTab.tsx +10 -1
- package/src/components/helm/HelmReleaseDrawer.tsx +1 -1
- package/src/components/helm/InstallWizard.tsx +1 -1
- package/src/components/home/NetworkPolicyCoverageCard.test.tsx +37 -0
- package/src/components/home/NetworkPolicyCoverageCard.tsx +26 -2
- package/src/components/home/mcpToolCatalog.ts +1 -1
- package/src/components/resources/PodEvictAction.test.tsx +951 -0
- package/src/components/resources/PodEvictAction.tsx +167 -0
- package/src/components/resources/ResourcesView.tsx +3 -0
- package/src/components/resources/renderers/TraefikIngressRouteRenderer.test.tsx +23 -0
- package/src/components/resources/renderers/TraefikIngressRouteRenderer.tsx +23 -0
- package/src/components/resources/renderers/TraefikMiddlewareRenderer.test.tsx +23 -0
- package/src/components/resources/renderers/TraefikMiddlewareRenderer.tsx +29 -0
- package/src/components/resources/renderers/WorkloadRenderer.tsx +3 -0
- package/src/components/settings/LocalConnectionSettings.tsx +4 -4
- package/src/components/settings/SettingsDialog.tsx +23 -18
- package/src/components/settings/integrationQueries.test.ts +98 -0
- package/src/components/settings/integrationQueries.ts +36 -0
- package/src/components/traffic/TrafficConnectionsTable.test.tsx +23 -0
- package/src/components/traffic/TrafficConnectionsTable.tsx +5 -4
- package/src/components/traffic/TrafficFilterSidebar.test.tsx +14 -0
- package/src/components/traffic/TrafficFilterSidebar.tsx +17 -0
- package/src/components/traffic/TrafficFlowList.tsx +5 -5
- package/src/components/traffic/TrafficGraph.test.tsx +11 -0
- package/src/components/traffic/TrafficGraph.tsx +31 -19
- package/src/components/traffic/TrafficView.reconnect.test.tsx +229 -0
- package/src/components/traffic/TrafficView.tsx +108 -41
- package/src/components/traffic/traffic-export.test.ts +8 -0
- package/src/components/traffic/traffic-export.ts +7 -4
- package/src/components/traffic/trafficFilters.test.ts +51 -1
- package/src/components/traffic/trafficFilters.ts +39 -11
- package/src/components/ui/Markdown.test.tsx +37 -0
- package/src/components/ui/Markdown.tsx +15 -2
- package/src/components/ui/command-items-crd.test.tsx +23 -8
- package/src/components/useContextSwitchFlow.test.tsx +27 -2
- package/src/components/useContextSwitchFlow.tsx +20 -22
- package/src/components/whats-new/releaseNotes.ts +75 -1
- package/src/components/workload/WorkloadView.tsx +16 -3
- package/src/integrations/resourceHosts.test.tsx +1 -1
- package/src/integrations/resourceHosts.tsx +3 -0
|
@@ -27,7 +27,16 @@ export function NetworkPolicyCoverageCard({ data, onNavigate }: NetworkPolicyCov
|
|
|
27
27
|
// projection without any staged policies.
|
|
28
28
|
const stagedDeltaPercentage = hasStagedPolicies ? Math.abs(percentageIfStaged - percentage) : 0
|
|
29
29
|
const hasPolicies = data.totalPolicies > 0
|
|
30
|
-
const
|
|
30
|
+
const ignoredNamespaceWorkloads = data.ignoredNamespaceWorkloads ?? 0
|
|
31
|
+
const hostNetworkWorkloads = data.hostNetworkWorkloads ?? 0
|
|
32
|
+
const notCounted = ignoredNamespaceWorkloads + hostNetworkWorkloads
|
|
33
|
+
const notCountedReasons = [
|
|
34
|
+
ignoredNamespaceWorkloads > 0 && `${ignoredNamespaceWorkloads} in namespaces ignored in Checks settings.`,
|
|
35
|
+
hostNetworkWorkloads > 0 && `${hostNetworkWorkloads} on the host network, where network policies may not apply.`,
|
|
36
|
+
].filter(Boolean).join(' ')
|
|
37
|
+
// With nothing to count, 0% would read as a coverage failure.
|
|
38
|
+
const hasWorkloads = data.totalWorkloads > 0
|
|
39
|
+
const accentColor = !hasPolicies || !hasWorkloads
|
|
31
40
|
? 'text-theme-text-tertiary'
|
|
32
41
|
: percentage >= 75
|
|
33
42
|
? 'text-green-500'
|
|
@@ -59,6 +68,11 @@ export function NetworkPolicyCoverageCard({ data, onNavigate }: NetworkPolicyCov
|
|
|
59
68
|
<ShieldCheck className="w-8 h-8 text-theme-text-tertiary/40" />
|
|
60
69
|
<span className="text-xs text-theme-text-tertiary">No network policies configured</span>
|
|
61
70
|
</div>
|
|
71
|
+
) : !hasWorkloads ? (
|
|
72
|
+
<div className="flex flex-col items-center justify-center text-center gap-2">
|
|
73
|
+
<ShieldCheck className="w-8 h-8 text-theme-text-tertiary/40" />
|
|
74
|
+
<span className="text-xs text-theme-text-tertiary">No workloads counted</span>
|
|
75
|
+
</div>
|
|
62
76
|
) : (
|
|
63
77
|
<>
|
|
64
78
|
<div className="flex items-center gap-3 w-full">
|
|
@@ -118,7 +132,17 @@ export function NetworkPolicyCoverageCard({ data, onNavigate }: NetworkPolicyCov
|
|
|
118
132
|
)}
|
|
119
133
|
</div>
|
|
120
134
|
|
|
121
|
-
<div className=
|
|
135
|
+
<div className={clsx(
|
|
136
|
+
'px-4 py-1.5 border-t border-theme-border/50 flex items-center',
|
|
137
|
+
notCounted > 0 ? 'justify-between' : 'justify-end',
|
|
138
|
+
)}>
|
|
139
|
+
{notCounted > 0 && (
|
|
140
|
+
<Tooltip content={`Workloads not counted: ${notCountedReasons}`}>
|
|
141
|
+
<span className="text-[10px] text-theme-text-tertiary">
|
|
142
|
+
{notCounted} not counted
|
|
143
|
+
</span>
|
|
144
|
+
</Tooltip>
|
|
145
|
+
)}
|
|
122
146
|
<span className={clsx(
|
|
123
147
|
'flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider transition-colors',
|
|
124
148
|
accentColor,
|
|
@@ -59,7 +59,7 @@ export const MCP_TOOL_CATALOG: MCPToolInfo[] = [
|
|
|
59
59
|
{ arg: 'name', required: true, desc: 'resource name' },
|
|
60
60
|
{ arg: 'namespace', desc: 'omit for cluster-scoped kinds (Node, ClusterRole, IngressClass, etc.)' },
|
|
61
61
|
{ arg: 'group', desc: 'API group when the kind is ambiguous (e.g. serving.knative.dev for Knative Service vs core Service)' },
|
|
62
|
-
{ arg: 'include', desc: 'events, metrics, changes, issues, drain-plan (Node pod/PDB estimate), revisions (rollback targets for Deployment/StatefulSet/DaemonSet/Rollout)' },
|
|
62
|
+
{ arg: 'include', desc: 'identity (observed UID and resourceVersion), events, metrics, changes, issues, drain-plan (Node pod/PDB estimate), revisions (rollback targets for Deployment/StatefulSet/DaemonSet/Rollout)' },
|
|
63
63
|
{ arg: 'context', desc: 'resourceContext tier: basic (default) or none' },
|
|
64
64
|
{ arg: 'relationship', desc: 'one relationship field a partial-preview warning named (e.g. dependents), returned with up to 200 entries' },
|
|
65
65
|
],
|