@skyhook-io/radar-app 1.13.3 → 1.13.4
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 +6 -6
- package/src/App.tsx +68 -23
- package/src/RadarApp.tsx +12 -1
- package/src/api/client.ts +24 -10
- package/src/components/diagnose/DiagnoseContext.test.ts +95 -0
- package/src/components/diagnose/DiagnoseContext.tsx +402 -77
- package/src/components/diagnose/DiagnoseSurface.test.tsx +53 -34
- package/src/components/diagnose/DiagnoseSurface.tsx +167 -92
- package/src/components/diagnose/Home.test.tsx +23 -1
- package/src/components/diagnose/Home.tsx +49 -3
- package/src/components/diagnose/InvestigationEvidencePane.test.tsx +665 -0
- package/src/components/diagnose/InvestigationEvidencePane.tsx +631 -25
- package/src/components/diagnose/InvestigationView.tsx +5 -0
- package/src/components/diagnose/LocalDiagnoseAction.tsx +2 -3
- package/src/components/diagnose/investigationEvidence.test.ts +2102 -9
- package/src/components/diagnose/investigationEvidence.ts +1357 -65
- package/src/components/diagnose/investigationSourceFocus.ts +4 -0
- package/src/components/diagnose/parts.test.tsx +55 -1
- package/src/components/diagnose/parts.tsx +68 -1
- package/src/components/resource/HPACharts.render.test.tsx +77 -0
- package/src/components/resource/HPACharts.tsx +32 -25
- package/src/components/resources/ResourcesView.tsx +27 -2
- package/src/index.ts +7 -5
|
@@ -91,6 +91,7 @@ import {
|
|
|
91
91
|
import {
|
|
92
92
|
InvestigationEvidencePane,
|
|
93
93
|
partitionInvestigationEvidence,
|
|
94
|
+
type InvestigationTimelineScope,
|
|
94
95
|
} from "./InvestigationEvidencePane";
|
|
95
96
|
import type { DiagnosisResourceRef } from "./diagnoseEvidenceTypes";
|
|
96
97
|
import { formatInvestigationTarget } from "./target";
|
|
@@ -153,12 +154,15 @@ export function InvestigationView({
|
|
|
153
154
|
agentLabel,
|
|
154
155
|
maximized,
|
|
155
156
|
onOpenResource,
|
|
157
|
+
onOpenTimeline,
|
|
156
158
|
}: {
|
|
157
159
|
run: RunSummary;
|
|
158
160
|
agentLabel: string;
|
|
159
161
|
maximized: boolean;
|
|
160
162
|
/** Opens an unambiguous evidence subject in Radar's native resource views. */
|
|
161
163
|
onOpenResource?: (ref: DiagnosisResourceRef) => void;
|
|
164
|
+
/** Opens Radar's Timeline filtered to the resource a changes card is about. */
|
|
165
|
+
onOpenTimeline?: (scope: InvestigationTimelineScope) => void;
|
|
162
166
|
}) {
|
|
163
167
|
const { kind, namespace, name } = run;
|
|
164
168
|
// Apply is off for hosted agents (read-only server-side). Keyed on the selected
|
|
@@ -2074,6 +2078,7 @@ export function InvestigationView({
|
|
|
2074
2078
|
onViewSource={viewActivitySource}
|
|
2075
2079
|
onViewActivity={viewActivity}
|
|
2076
2080
|
onOpenResource={stale ? undefined : onOpenResource}
|
|
2081
|
+
onOpenTimeline={stale ? undefined : onOpenTimeline}
|
|
2077
2082
|
revealRequest={evidenceRevealRequest}
|
|
2078
2083
|
onRevealReady={revealEvidenceSource}
|
|
2079
2084
|
afterEvidence={
|
|
@@ -162,10 +162,9 @@ export function IssueDiagnoseButton({
|
|
|
162
162
|
// investigations). Self-hides when no agent CLI is present.
|
|
163
163
|
export function GlobalDiagnoseButton() {
|
|
164
164
|
const d = useDiagnose();
|
|
165
|
-
const {
|
|
165
|
+
const { runningCount } = useDiagnoseLayout();
|
|
166
166
|
if (d.setupState === "off") return null;
|
|
167
167
|
const ready = d.available;
|
|
168
|
-
const runningCount = runningKeys.size;
|
|
169
168
|
const agentSuffix = d.hosted
|
|
170
169
|
? `powered by ${d.agentLabel}`
|
|
171
170
|
: `runs your own ${d.agentLabel} locally`;
|
|
@@ -181,7 +180,7 @@ export function GlobalDiagnoseButton() {
|
|
|
181
180
|
position="bottom"
|
|
182
181
|
>
|
|
183
182
|
<button
|
|
184
|
-
onClick={d.
|
|
183
|
+
onClick={() => d.openWorkspace()}
|
|
185
184
|
className="relative rounded-md bg-theme-elevated p-1.5 text-theme-text-secondary transition-colors hover:bg-theme-hover hover:text-theme-text-primary"
|
|
186
185
|
aria-label={
|
|
187
186
|
runningCount > 0
|