@skyhook-io/radar-app 1.14.1 → 1.14.3
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 +2 -2
- package/src/api/client.ts +30 -0
- package/src/components/CloudConnectFlow.tsx +21 -7
- package/src/components/CloudFunnelButton.tsx +85 -8
- package/src/components/cloudConnectHandoff.test.ts +10 -1
- package/src/components/cloudConnectHandoff.ts +15 -1
- package/src/components/diagnose/AIMarkdown.tsx +87 -0
- package/src/components/diagnose/ActivityTurn.tsx +1244 -0
- package/src/components/diagnose/AgentControls.tsx +603 -0
- package/src/components/diagnose/AnalysisStory.test.tsx +31 -25
- package/src/components/diagnose/AnalysisStory.tsx +13 -18
- package/src/components/diagnose/ApplyDialog.tsx +289 -0
- package/src/components/diagnose/AssessmentCard.tsx +1560 -0
- package/src/components/diagnose/DiagnoseSurface.test.tsx +9 -9
- package/src/components/diagnose/DiagnoseSurface.tsx +5 -1
- package/src/components/diagnose/EvidenceCard.tsx +611 -0
- package/src/components/diagnose/Home.test.tsx +1 -3
- package/src/components/diagnose/Home.tsx +2 -1
- package/src/components/diagnose/InvestigationEvidencePane.story.test.tsx +6 -8
- package/src/components/diagnose/InvestigationEvidencePane.test.tsx +5 -3
- package/src/components/diagnose/InvestigationEvidencePane.tsx +31 -3445
- package/src/components/diagnose/InvestigationEvidenceSections.tsx +523 -0
- package/src/components/diagnose/InvestigationView.tsx +11 -28
- package/src/components/diagnose/StoryExcerpt.tsx +118 -0
- package/src/components/diagnose/assessmentCopy.ts +169 -0
- package/src/components/diagnose/investigationCase.test.tsx +631 -2
- package/src/components/diagnose/investigationCase.ts +132 -24
- package/src/components/diagnose/investigationEvidence/adapters/coverage.test.tsx +660 -0
- package/src/components/diagnose/investigationEvidence/adapters/{helm.test.ts → helm.test.tsx} +63 -0
- package/src/components/diagnose/investigationEvidence/adapters/helm.ts +70 -1
- package/src/components/diagnose/investigationEvidence/adapters/listings.ts +134 -0
- package/src/components/diagnose/investigationEvidence/adapters/{permissions.test.ts → permissions.test.tsx} +50 -0
- package/src/components/diagnose/investigationEvidence/adapters/permissions.ts +18 -0
- package/src/components/diagnose/investigationEvidence/adapters/posture.ts +272 -0
- package/src/components/diagnose/investigationEvidence/adapters/prometheus.ts +49 -0
- package/src/components/diagnose/investigationEvidence/adapters/rankings.ts +147 -0
- package/src/components/diagnose/investigationEvidence/adapters/resource.ts +20 -10
- package/src/components/diagnose/investigationEvidence/bodies/index.tsx +127 -0
- package/src/components/diagnose/investigationEvidence/bodies/inventory.tsx +158 -0
- package/src/components/diagnose/investigationEvidence/bodies/metrics.tsx +373 -0
- package/src/components/diagnose/investigationEvidence/bodies/network.tsx +274 -0
- package/src/components/diagnose/investigationEvidence/bodies/platform.tsx +475 -0
- package/src/components/diagnose/investigationEvidence/bodies/posture.tsx +60 -0
- package/src/components/diagnose/investigationEvidence/bodies/ranking.tsx +76 -0
- package/src/components/diagnose/investigationEvidence/bodies/streams.tsx +212 -0
- package/src/components/diagnose/investigationEvidence/bodies/workload.tsx +335 -0
- package/src/components/diagnose/investigationEvidence/builder.ts +15 -0
- package/src/components/diagnose/investigationEvidence/cardParts.tsx +312 -0
- package/src/components/diagnose/investigationEvidence/excerpt.test.ts +105 -0
- package/src/components/diagnose/investigationEvidence/excerpt.ts +92 -0
- package/src/components/diagnose/investigationEvidence/identity.test.ts +5 -7
- package/src/components/diagnose/investigationEvidence/index.ts +1 -1
- package/src/components/diagnose/investigationEvidence/navigation.tsx +26 -0
- package/src/components/diagnose/investigationEvidence/observations.ts +11 -0
- package/src/components/diagnose/investigationEvidence/projection.test.ts +1 -1
- package/src/components/diagnose/investigationEvidence/types.ts +97 -2
- package/src/components/diagnose/investigationEvidenceKinds.ts +22 -0
- package/src/components/diagnose/investigationEvidencePartition.ts +296 -0
- package/src/components/diagnose/parts.test.tsx +3 -1
- package/src/components/diagnose/parts.tsx +26 -3904
- package/src/components/diagnose/target.ts +9 -3
- package/src/components/diagnose/toolCallLabel.test.ts +47 -1
- package/src/components/diagnose/toolCallLabel.ts +41 -2
- package/src/components/helm/HelmReleaseDrawer.tsx +1 -1
- package/src/components/home/MCPSetupDialog.tsx +1 -1
- package/src/components/resource/PrometheusChartsGrid.tsx +1 -1
- package/src/components/resource/WorkloadMetricsHelpDialog.tsx +1 -1
- package/src/components/resource/WorkloadMetricsSection.tsx +1 -1
- package/src/components/resources/PodFilePreview.tsx +1 -1
- package/src/components/ui/CommandPalette.tsx +12 -8
- package/src/components/ui/DiagnosticsOverlay.tsx +7 -5
- package/src/components/ui/Omnibar.tsx +33 -10
- package/src/components/ui/ShortcutHelpOverlay.tsx +8 -5
- package/src/components/ui/Disclosure.tsx +0 -47
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { renderToStaticMarkup } from "react-dom/server";
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
namedInventoryRows,
|
|
7
|
-
} from "./InvestigationEvidencePane";
|
|
4
|
+
import { InvestigationEvidencePane } from "./InvestigationEvidencePane";
|
|
5
|
+
import { namedInventoryRows } from "./investigationEvidence/bodies/inventory";
|
|
8
6
|
import { resolveInvestigationCase } from "./investigationCase";
|
|
9
7
|
import {
|
|
10
8
|
projectInvestigationEvidence,
|
|
@@ -616,14 +614,14 @@ describe("story card defaults", () => {
|
|
|
616
614
|
],
|
|
617
615
|
),
|
|
618
616
|
).toEqual([
|
|
619
|
-
{ key: "
|
|
617
|
+
{ key: "ConfigMap//config", label: "config", matches: 2, row: undefined },
|
|
620
618
|
{
|
|
621
|
-
key: "b/config",
|
|
619
|
+
key: "ConfigMap/b/config",
|
|
622
620
|
label: "b/config",
|
|
623
621
|
matches: 1,
|
|
624
622
|
row: { kind: "ConfigMap", namespace: "b", name: "config" },
|
|
625
623
|
},
|
|
626
|
-
{ key: "
|
|
624
|
+
{ key: "ConfigMap//missing", label: "missing", matches: 0, row: undefined },
|
|
627
625
|
]);
|
|
628
626
|
// Rows of a namespace-scoped listing omit their namespace: the scope is
|
|
629
627
|
// theirs, and only that namespace satisfies a namespaced citation.
|
|
@@ -669,7 +667,7 @@ describe("story card defaults", () => {
|
|
|
669
667
|
[{ subject: { kind: "APIService", namespace: "", name: "v1.apps" } }],
|
|
670
668
|
)[0],
|
|
671
669
|
).toEqual({
|
|
672
|
-
key: "
|
|
670
|
+
key: "APIService//v1.apps",
|
|
673
671
|
label: "v1.apps",
|
|
674
672
|
matches: 1,
|
|
675
673
|
row: { kind: "APIService", name: "v1.apps" },
|
|
@@ -4,14 +4,16 @@ import { describe, expect, it, vi } from "vitest";
|
|
|
4
4
|
import {
|
|
5
5
|
INVESTIGATION_DISCLOSURE_SETTLE_MS,
|
|
6
6
|
InvestigationEvidencePane,
|
|
7
|
-
VISIBLE_LOG_EVIDENCE_LINES,
|
|
8
|
-
partitionInvestigationEvidence,
|
|
9
7
|
investigationDisclosureSettleDelay,
|
|
10
8
|
investigationDisclosureScrollTop,
|
|
9
|
+
} from "./InvestigationEvidencePane";
|
|
10
|
+
import { VISIBLE_LOG_EVIDENCE_LINES } from "./investigationEvidence/bodies/streams";
|
|
11
|
+
import {
|
|
12
|
+
partitionInvestigationEvidence,
|
|
11
13
|
investigationEvidenceFullRowFlags,
|
|
12
14
|
investigationEvidenceRevealCollection,
|
|
13
15
|
investigationEvidenceShouldRevealHistory,
|
|
14
|
-
} from "./
|
|
16
|
+
} from "./investigationEvidencePartition";
|
|
15
17
|
import {
|
|
16
18
|
investigationEvidenceSourceDomId,
|
|
17
19
|
investigationEvidenceStepIdsByTurn,
|