@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.
@@ -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 { runningKeys } = useDiagnoseLayout();
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.openHome}
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