@skyhook-io/radar-app 1.19.0 → 1.20.0

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.
Files changed (173) hide show
  1. package/README.md +1 -1
  2. package/package.json +5 -5
  3. package/src/App.tsx +31 -5
  4. package/src/api/application-evidence.ts +63 -0
  5. package/src/api/argoSync.test.ts +22 -0
  6. package/src/api/client.audit-gating.test.tsx +48 -0
  7. package/src/api/client.kueuePosition.test.ts +32 -0
  8. package/src/api/client.kueueQueueWorkloads.test.tsx +71 -0
  9. package/src/api/client.resource-identity.test.ts +3 -0
  10. package/src/api/client.resourceIssues.test.tsx +239 -0
  11. package/src/api/client.resourcePath.test.ts +3 -0
  12. package/src/api/client.ts +285 -55
  13. package/src/api/config.ts +21 -0
  14. package/src/api/diagnose.ts +4 -0
  15. package/src/api/radarFeatures.render.test.tsx +33 -1
  16. package/src/api/radarFeatures.test.ts +47 -0
  17. package/src/api/radarFeatures.ts +40 -1
  18. package/src/api/rbac.settled.test.tsx +42 -0
  19. package/src/api/rbac.test.ts +18 -0
  20. package/src/api/rbac.ts +37 -7
  21. package/src/api/traffic.ts +9 -4
  22. package/src/api/usage-data.fixtures.ts +3 -1
  23. package/src/api/usage-data.test.tsx +134 -0
  24. package/src/api/usage-data.ts +35 -7
  25. package/src/api/workloadPodsPolling.test.ts +26 -0
  26. package/src/components/CloudConnectFlow.test.tsx +86 -0
  27. package/src/components/CloudConnectFlow.tsx +65 -27
  28. package/src/components/CloudFunnelButton.test.tsx +140 -5
  29. package/src/components/CloudFunnelButton.tsx +50 -9
  30. package/src/components/ConnectionErrorView.test.tsx +34 -0
  31. package/src/components/ConnectionErrorView.tsx +35 -11
  32. package/src/components/ContextSwitcher.tsx +5 -2
  33. package/src/components/SwitchAwareConnectionError.test.tsx +43 -0
  34. package/src/components/SwitchAwareConnectionError.tsx +85 -0
  35. package/src/components/application-evidence/ApplicationEvidenceAction.flow.test.tsx +234 -0
  36. package/src/components/application-evidence/ApplicationEvidenceAction.test.tsx +144 -0
  37. package/src/components/application-evidence/ApplicationEvidenceAction.tsx +218 -0
  38. package/src/components/capacity/CapacityDemand.tsx +3 -2
  39. package/src/components/capacity/demandSummary.test.ts +38 -0
  40. package/src/components/capacity/shared.tsx +12 -1
  41. package/src/components/cost/ApplicationCostTab.tsx +4 -0
  42. package/src/components/cost/CostTrendChart.tsx +2 -0
  43. package/src/components/cost/WorkloadCostTab.tsx +4 -0
  44. package/src/components/cost/source.test.ts +5 -0
  45. package/src/components/cost/source.ts +11 -0
  46. package/src/components/diagnose/AIMarkdown.tsx +3 -0
  47. package/src/components/diagnose/AgentSetupNotice.test.tsx +17 -0
  48. package/src/components/diagnose/AgentSetupNotice.tsx +21 -3
  49. package/src/components/diagnose/ContinueInAgentButton.mounted.test.tsx +182 -0
  50. package/src/components/diagnose/ContinueInAgentButton.test.tsx +128 -0
  51. package/src/components/diagnose/ContinueInAgentButton.tsx +303 -0
  52. package/src/components/diagnose/DiagnoseContext.question.test.tsx +1 -1
  53. package/src/components/diagnose/DiagnoseContext.tsx +68 -2
  54. package/src/components/diagnose/DiagnoseSurface.tsx +58 -113
  55. package/src/components/diagnose/ExampleInvestigationLink.tsx +20 -0
  56. package/src/components/diagnose/Home.test.tsx +26 -0
  57. package/src/components/diagnose/Home.tsx +20 -1
  58. package/src/components/diagnose/InvestigationEvidenceSections.tsx +45 -22
  59. package/src/components/diagnose/InvestigationView.tsx +94 -26
  60. package/src/components/diagnose/LocalDiagnoseAction.history.test.tsx +450 -0
  61. package/src/components/diagnose/LocalDiagnoseAction.tsx +354 -35
  62. package/src/components/diagnose/NextStepJump.test.tsx +92 -0
  63. package/src/components/diagnose/NextStepJump.tsx +75 -0
  64. package/src/components/diagnose/QuestionComposer.tsx +8 -0
  65. package/src/components/diagnose/exampleInvestigation.events.json +191 -0
  66. package/src/components/diagnose/exampleInvestigation.loadFailure.test.tsx +94 -0
  67. package/src/components/diagnose/exampleInvestigation.test.tsx +248 -0
  68. package/src/components/diagnose/exampleInvestigation.ts +121 -0
  69. package/src/components/diagnose/investigationCase.test.tsx +9 -1
  70. package/src/components/diagnose/investigationEvidence/adapters/applicationFindings.test.ts +739 -0
  71. package/src/components/diagnose/investigationEvidence/adapters/diagnose.ts +50 -2
  72. package/src/components/diagnose/investigationEvidence/adapters/issues.ts +9 -0
  73. package/src/components/diagnose/investigationEvidence/builder.ts +30 -0
  74. package/src/components/diagnose/investigationEvidence/observations.ts +121 -2
  75. package/src/components/diagnose/investigationEvidence/projection.test.ts +85 -3
  76. package/src/components/diagnose/investigationEvidence/types.ts +5 -0
  77. package/src/components/diagnose/investigationState.ts +28 -0
  78. package/src/components/diagnose/lastInvestigation.test.ts +95 -0
  79. package/src/components/diagnose/lastInvestigation.ts +58 -0
  80. package/src/components/diagnose/launch.test.ts +125 -1
  81. package/src/components/diagnose/launch.ts +57 -10
  82. package/src/components/diagnose/toolCallLabel.test.ts +10 -4
  83. package/src/components/execution/BatchExecutionView.tsx +24 -11
  84. package/src/components/execution/JobSetAdmission.test.tsx +42 -0
  85. package/src/components/execution/JobSetAdmission.tsx +18 -3
  86. package/src/components/execution/JobSetMemberComparison.tsx +2 -1
  87. package/src/components/execution/runState.test.ts +14 -0
  88. package/src/components/execution/runState.ts +8 -0
  89. package/src/components/gitops/GitOpsView.rollbackGate.test.tsx +202 -0
  90. package/src/components/gitops/GitOpsView.syncRequest.test.tsx +369 -0
  91. package/src/components/gitops/GitOpsView.tsx +86 -17
  92. package/src/components/gitops/RemoteDestinationCloudHint.tsx +2 -3
  93. package/src/components/gitops/destination-toast.test.ts +1 -1
  94. package/src/components/gitops/destination-toast.ts +2 -2
  95. package/src/components/home/ClusterHealthCard.tsx +1 -1
  96. package/src/components/home/HomeAgentBlock.test.tsx +31 -3
  97. package/src/components/home/HomeAgentBlock.tsx +13 -4
  98. package/src/components/home/HomeDiagramCard.tsx +47 -0
  99. package/src/components/home/HomeView.tsx +81 -41
  100. package/src/components/home/MCPSetupDialog.test.tsx +95 -5
  101. package/src/components/home/MCPSetupDialog.tsx +30 -5
  102. package/src/components/home/ProblemsPanel.investigate.test.tsx +171 -0
  103. package/src/components/home/ProblemsPanel.test.tsx +3 -1
  104. package/src/components/home/TopologyPreview.test.tsx +73 -0
  105. package/src/components/home/TopologyPreview.tsx +120 -233
  106. package/src/components/home/TrafficSummary.test.tsx +63 -0
  107. package/src/components/home/TrafficSummary.tsx +135 -138
  108. package/src/components/home/mcpToolCatalog.ts +23 -10
  109. package/src/components/issues/IssuesPane.test.ts +11 -0
  110. package/src/components/issues/IssuesPane.tsx +15 -5
  111. package/src/components/issues/uncheckedSources.test.ts +20 -1
  112. package/src/components/issues/uncheckedSources.ts +18 -0
  113. package/src/components/kueue/KueuePendingPosition.tsx +35 -0
  114. package/src/components/kueue/useRelatedObjects.test.tsx +219 -0
  115. package/src/components/kueue/useRelatedReads.test.ts +56 -0
  116. package/src/components/kueue/useRelatedReads.ts +205 -0
  117. package/src/components/logs/MultiPodLogsTab.test.tsx +93 -0
  118. package/src/components/logs/MultiPodLogsTab.tsx +120 -0
  119. package/src/components/logs/PodLogsUnavailable.test.tsx +18 -0
  120. package/src/components/logs/PodLogsUnavailable.tsx +21 -0
  121. package/src/components/logs/RayClusterLogsTab.reselect.test.tsx +67 -0
  122. package/src/components/logs/RayClusterLogsTab.test.tsx +167 -0
  123. package/src/components/logs/RayClusterLogsTab.tsx +109 -0
  124. package/src/components/logs/ScheduledWorkloadLogsViewer.tsx +3 -2
  125. package/src/components/logs/rayClusterPods.ts +32 -0
  126. package/src/components/outageSince.test.ts +21 -0
  127. package/src/components/outageSince.ts +10 -0
  128. package/src/components/resource/PrometheusCharts.overlays.test.ts +12 -0
  129. package/src/components/resource/PrometheusCharts.tsx +3 -40
  130. package/src/components/resources/crd/CRDSchemaTab.test.tsx +28 -0
  131. package/src/components/resources/crd/CRDSchemaTab.tsx +13 -0
  132. package/src/components/resources/crd/host.tsx +14 -0
  133. package/src/components/resources/renderers/CustomResourceDefinitionRenderer.test.tsx +27 -0
  134. package/src/components/resources/renderers/CustomResourceDefinitionRenderer.tsx +12 -0
  135. package/src/components/resources/renderers/JobAdmissionRenderers.test.tsx +4 -1
  136. package/src/components/resources/renderers/JobAdmissionRenderers.tsx +4 -3
  137. package/src/components/resources/renderers/KueueHostRenderers.test.tsx +117 -0
  138. package/src/components/resources/renderers/KueueQueueRenderers.test.tsx +97 -0
  139. package/src/components/resources/renderers/KueueQueueRenderers.tsx +139 -0
  140. package/src/components/resources/renderers/KueueWorkloadRenderer.test.tsx +7 -1
  141. package/src/components/resources/renderers/KueueWorkloadRenderer.tsx +47 -7
  142. package/src/components/resources/renderers/OpenTelemetryCollectorRenderer.test.tsx +67 -0
  143. package/src/components/resources/renderers/OpenTelemetryCollectorRenderer.tsx +31 -0
  144. package/src/components/resources/renderers/RayClusterRenderer.test.tsx +81 -3
  145. package/src/components/resources/renderers/RayClusterRenderer.tsx +19 -4
  146. package/src/components/traffic/TrafficView.tsx +3 -3
  147. package/src/components/ui/command-items-crd.test.tsx +23 -0
  148. package/src/components/ui/command-items.ts +2 -1
  149. package/src/components/useContextSwitchFlow.test.tsx +61 -0
  150. package/src/components/useContextSwitchFlow.tsx +21 -4
  151. package/src/components/whats-new/WhatsNew.test.ts +10 -3
  152. package/src/components/whats-new/WhatsNew.tsx +5 -1
  153. package/src/components/whats-new/WhatsNewDialog.test.tsx +17 -3
  154. package/src/components/whats-new/releaseNotes.ts +77 -4
  155. package/src/components/workload/RelatedFindingsSection.test.tsx +126 -0
  156. package/src/components/workload/RelatedFindingsSection.tsx +80 -0
  157. package/src/components/workload/WorkloadView.test.ts +10 -1
  158. package/src/components/workload/WorkloadView.tsx +85 -98
  159. package/src/components/workload/issueResourceOpener.test.ts +20 -0
  160. package/src/components/workload/issueResourceOpener.ts +17 -0
  161. package/src/context/ConnectionContext.tsx +133 -60
  162. package/src/context/ConnectionProvider.retry.test.tsx +176 -0
  163. package/src/context/ContextSwitchContext.tsx +14 -1
  164. package/src/context/DiagnoseCustomization.tsx +3 -0
  165. package/src/context/clusterConnected.ts +10 -0
  166. package/src/contexts/CapabilitiesContext.tsx +6 -4
  167. package/src/hooks/useElementSize.ts +30 -0
  168. package/src/integrations/resourceHost.test.tsx +1 -0
  169. package/src/integrations/resourceHost.ts +5 -1
  170. package/src/integrations/resourceHosts.test.tsx +21 -4
  171. package/src/integrations/resourceHosts.tsx +12 -0
  172. package/src/main.tsx +5 -0
  173. package/src/utils/related-findings.ts +46 -0
@@ -15,6 +15,9 @@ import {
15
15
  GitOpsTreeGraph,
16
16
  RollbackDialog,
17
17
  SyncOptionsDialog,
18
+ argoApplicationSyncOptions,
19
+ argoComparedRevisionCurrent,
20
+ isArgoMultiSource,
18
21
  buildFluxSourceUrlMap,
19
22
  buildTreeFacets,
20
23
  describeGitOpsTerminating,
@@ -24,6 +27,10 @@ import {
24
27
  getGitOpsTool,
25
28
  gitOpsDetailGroup,
26
29
  isDestinationRef,
30
+ isArgoAutoSyncEnabled,
31
+ isArgoAutoSyncSwitchedOff,
32
+ argoAutoSyncController,
33
+ argoResumeSettings,
27
34
  isArgoOperationInProgress,
28
35
  isArgoSuspendedByRadar,
29
36
  gitOpsInsightChangeKey,
@@ -33,6 +40,7 @@ import {
33
40
  normalizeFluxHelmRelease,
34
41
  normalizeFluxKustomization,
35
42
  parseArgoRollbackID,
43
+ radarUpgradeNoteText,
36
44
  toggleSet,
37
45
  type APIResource,
38
46
  type ArgoActionHandlers,
@@ -73,6 +81,7 @@ import {
73
81
  useFluxSyncWithSource,
74
82
  useGitOpsInsights,
75
83
  useGitOpsTree,
84
+ useRadarFeature,
76
85
  useResource,
77
86
  } from '../../api/client'
78
87
  import { useAPIResources, GITOPS_KINDS } from '../../api/apiResources'
@@ -138,8 +147,10 @@ function GitOpsTableView({ namespaces, onClearNamespaces }: { namespaces: string
138
147
  const fluxSyncWithSource = useFluxSyncWithSource()
139
148
  const fluxSuspend = useFluxSuspend()
140
149
  const fluxResume = useFluxResume()
150
+ const { upgrade: argoResumeUpgrade, blockedReason: argoResumeBlockedReason } = useRadarFeature('argoAutoSyncEnable')
151
+ const { support: argoInheritanceSupport } = useRadarFeature('argoSyncInheritance')
141
152
 
142
- const [syncDialogRow, setSyncDialogRow] = useState<GitOpsRow | null>(null)
153
+ const [syncDialogRowId, setSyncDialogRowId] = useState<string | null>(null)
143
154
  const [pendingActions, setPendingActions] = useState<Map<string, Set<GitOpsRowAction>>>(new Map())
144
155
 
145
156
  // Mark an action as in-flight (or done) for a given row. Cloning the
@@ -236,6 +247,11 @@ function GitOpsTableView({ namespaces, onClearNamespaces }: { namespaces: string
236
247
  refetchInterval: GITOPS_ROWS_REFRESH_INTERVAL_MS,
237
248
  })
238
249
 
250
+ const syncDialogRow = rowsQuery.data?.rows.find((row) => row.id === syncDialogRowId)
251
+ useEffect(() => {
252
+ if (syncDialogRowId && !syncDialogRow) setSyncDialogRowId(null)
253
+ }, [syncDialogRowId, syncDialogRow])
254
+
239
255
  // Row mutations invalidate granular keys (['resource', …], ['gitops-tree', …])
240
256
  // that don't match the table's aggregate gitops-rows-main / counts queries,
241
257
  // so refetch those explicitly — otherwise a row keeps showing the pre-action
@@ -286,7 +302,7 @@ function GitOpsTableView({ namespaces, onClearNamespaces }: { namespaces: string
286
302
  // detail page uses. The mutation fires from onConfirm; clear the
287
303
  // in-flight flag here since the dialog now owns the lifecycle.
288
304
  markAction(id, action, false)
289
- setSyncDialogRow(row)
305
+ setSyncDialogRowId(id)
290
306
  return
291
307
  case 'refresh':
292
308
  argoRefresh.mutate({ namespace, name, hard: false }, settle)
@@ -302,6 +318,10 @@ function GitOpsTableView({ namespaces, onClearNamespaces }: { namespaces: string
302
318
  else fluxSuspend.mutate({ kind, namespace, name }, settle)
303
319
  return
304
320
  case 'resume':
321
+ if (row.tool === 'argo' && isArgoAutoSyncSwitchedOff(row.raw) && (argoResumeUpgrade || argoResumeBlockedReason)) {
322
+ markAction(id, action, false)
323
+ return
324
+ }
305
325
  if (row.tool === 'argo') argoResume.mutate({ namespace, name }, settle)
306
326
  else fluxResume.mutate({ kind, namespace, name }, settle)
307
327
  return
@@ -340,6 +360,8 @@ function GitOpsTableView({ namespaces, onClearNamespaces }: { namespaces: string
340
360
  }}
341
361
  onRowAction={handleRowAction}
342
362
  pendingRowActions={pendingActions}
363
+ argoResumeUpgrade={argoResumeUpgrade}
364
+ argoResumeBlockedReason={argoResumeBlockedReason}
343
365
  searchHotkey
344
366
  globalNamespaces={namespaces}
345
367
  onClearNamespaces={onClearNamespaces}
@@ -347,17 +369,22 @@ function GitOpsTableView({ namespaces, onClearNamespaces }: { namespaces: string
347
369
  <SyncOptionsDialog
348
370
  open={!!syncDialogRow}
349
371
  appLabel={syncDialogRow ? `${syncDialogRow.namespace}/${syncDialogRow.name}` : ''}
372
+ multiSource={isArgoMultiSource(syncDialogRow?.raw)}
373
+ comparedRevision={syncDialogRow?.raw?.status?.sync?.revision}
374
+ pinsComparedRevision={argoInheritanceSupport === 'supported' && argoComparedRevisionCurrent(syncDialogRow?.raw)}
375
+ applicationSyncOptions={argoApplicationSyncOptions(syncDialogRow?.raw)}
376
+ autoSyncEnabled={!!syncDialogRow && isArgoAutoSyncEnabled(syncDialogRow.raw)}
350
377
  pending={argoSync.isPending}
351
- onCancel={() => setSyncDialogRow(null)}
378
+ onCancel={() => setSyncDialogRowId(null)}
352
379
  onConfirm={(opts) => {
353
380
  if (!syncDialogRow) return
354
381
  const { namespace, name } = syncDialogRow
355
382
  argoSync.mutate(
356
- { namespace, name, ...opts },
383
+ { namespace, name, ...opts, applicationSyncOptions: argoApplicationSyncOptions(syncDialogRow.raw) },
357
384
  // onSettled so the dialog closes on both success and error —
358
385
  // otherwise the error toast surfaces behind the still-open
359
386
  // modal and the user can't read it.
360
- { onSuccess: refetchTableAfterMutation, onSettled: () => setSyncDialogRow(null) },
387
+ { onSuccess: refetchTableAfterMutation, onSettled: () => setSyncDialogRowId(null) },
361
388
  )
362
389
  }}
363
390
  />
@@ -401,11 +428,22 @@ function GitOpsDetailView({ namespaces, onOpenResource, onOpenSettings }: GitOps
401
428
  const tool = resourceQ.data ? getGitOpsTool(kind, effectiveGroup) : null
402
429
  const isArgoApp = tool === 'argo' && kind === 'applications'
403
430
  const status = tool && resourceQ.data ? getGitOpsResourceStatus(kind, resourceQ.data) : null
404
- // Argo "auto-sync ON" is determined by spec.syncPolicy.automated being set,
405
- // not by health.status === Suspended (which is Argo's CronJob-style suspend).
431
+ // Argo "auto-sync ON" is read from spec.syncPolicy.automated (honoring
432
+ // `enabled: false`), not from health.status === Suspended (which is Argo's
433
+ // CronJob-style suspend).
406
434
  // The toggle button reads from this so the label flips correctly when an
407
435
  // app is in Manual mode or suspended via Radar's annotations.
408
- const argoAutoSyncEnabled = isArgoApp && Boolean(resourceQ.data?.spec?.syncPolicy?.automated)
436
+ const argoAutoSyncEnabled = isArgoApp && isArgoAutoSyncEnabled(resourceQ.data)
437
+ const appSyncOptions = argoApplicationSyncOptions(resourceQ.data)
438
+ // What a sync of this Application would deploy: its source(s), and the
439
+ // revision(s) Argo last compared with the source(s) compared, which decide
440
+ // whether the sync pins them. A dry-run result describes the value it was
441
+ // run against.
442
+ const deployTargetKey = JSON.stringify([
443
+ kind, namespace, name,
444
+ resourceQ.data?.spec?.source, resourceQ.data?.spec?.sources, resourceQ.data?.spec?.sourceHydrator,
445
+ resourceQ.data?.status?.sync?.revision, resourceQ.data?.status?.sync?.revisions, resourceQ.data?.status?.sync?.comparedTo,
446
+ ])
409
447
  // Radar-driven Argo suspension is signaled by annotations that record the
410
448
  // pre-suspend prune/selfHeal state for restoration on resume. When present,
411
449
  // the app is in a deliberately-paused state (vs. Manual mode, which is a
@@ -456,6 +494,10 @@ function GitOpsDetailView({ namespaces, onOpenResource, onOpenSettings }: GitOps
456
494
  const argoSuspend = useArgoSuspend()
457
495
  const argoResume = useArgoResume()
458
496
  const argoRollback = useArgoRollback()
497
+ const { upgrade: argoRollbackUpgrade, blockedReason: argoRollbackBlockedReason } = useRadarFeature('argoRollback')
498
+ const { upgrade: argoResumeUpgrade, blockedReason: argoResumeBlockedReason } = useRadarFeature('argoAutoSyncEnable')
499
+ const { support: argoInheritanceSupport } = useRadarFeature('argoSyncInheritance')
500
+ const { support: argoSelfHealOffSupport } = useRadarFeature('argoEnableSelfHealOff')
459
501
  const applyResource = useApplyResource()
460
502
  const fluxReconcile = useFluxReconcile()
461
503
  const fluxSyncWithSource = useFluxSyncWithSource()
@@ -463,6 +505,8 @@ function GitOpsDetailView({ namespaces, onOpenResource, onOpenSettings }: GitOps
463
505
  const fluxResume = useFluxResume()
464
506
 
465
507
  const [syncDialogTarget, setSyncDialogTarget] = useState<ArgoSyncDialogTarget | null>(null)
508
+ const [validatedTargetKey, setValidatedTargetKey] = useState<string | null>(null)
509
+ const validationStale = validatedTargetKey !== null && validatedTargetKey !== deployTargetKey
466
510
  // Doubles as the "open" flag (truthy = dialog open) and the data carrier
467
511
  // for which history entry to roll back to.
468
512
  const [rollbackTarget, setRollbackTarget] = useState<GitOpsHistoryItem | null>(null)
@@ -656,7 +700,10 @@ function GitOpsDetailView({ namespaces, onOpenResource, onOpenSettings }: GitOps
656
700
  },
657
701
  onTerminate: () => argoTerminate.mutate({ namespace, name }),
658
702
  onSuspend: () => argoSuspend.mutate({ namespace, name }),
659
- onResume: () => argoResume.mutate({ namespace, name }),
703
+ onResume: () => {
704
+ if (isArgoAutoSyncSwitchedOff(resourceQ.data) && (argoResumeUpgrade || argoResumeBlockedReason)) return
705
+ argoResume.mutate({ namespace, name })
706
+ },
660
707
  syncing: argoSync.isPending,
661
708
  refreshing: argoRefresh.isPending,
662
709
  refreshingKind: refreshKind,
@@ -666,6 +713,12 @@ function GitOpsDetailView({ namespaces, onOpenResource, onOpenSettings }: GitOps
666
713
  autoSyncEnabled: argoAutoSyncEnabled,
667
714
  isRunning,
668
715
  operationInProgress,
716
+ resumeUpgrade: isArgoAutoSyncSwitchedOff(resourceQ.data) ? argoResumeUpgrade : null,
717
+ autoSyncController: argoAutoSyncController(resourceQ.relationships, { namespace, name }),
718
+ resumeSettings: argoInheritanceSupport === 'unknown' || argoSelfHealOffSupport === 'unknown'
719
+ ? argoResumeSettings(resourceQ.data, undefined)
720
+ : argoResumeSettings(resourceQ.data, argoInheritanceSupport === 'supported', argoSelfHealOffSupport === 'supported'),
721
+ resumeBlockedReason: isArgoAutoSyncSwitchedOff(resourceQ.data) ? argoResumeBlockedReason : undefined,
669
722
  } : undefined
670
723
 
671
724
  const fluxHandlers: FluxActionHandlers | undefined = isFlux ? {
@@ -696,6 +749,7 @@ function GitOpsDetailView({ namespaces, onOpenResource, onOpenSettings }: GitOps
696
749
  terminatingActionTooltip={terminatingActionTooltip}
697
750
  detail={tool ? detail : undefined}
698
751
  insight={tool ? insightsQ.data ?? null : null}
752
+ warnings={tree?.warnings}
699
753
  insightLoading={insightsQ.isLoading}
700
754
  healthDocsUrl={GITOPS_HEALTH_DOCS_URL}
701
755
  remoteDestinationHint={<RemoteDestinationCloudHint />}
@@ -732,7 +786,7 @@ function GitOpsDetailView({ namespaces, onOpenResource, onOpenSettings }: GitOps
732
786
  // failure doesn't yield a misleading "sync triggered" toast.
733
787
  if (isArgoApp) {
734
788
  argoSync.mutate(
735
- { namespace, name },
789
+ { namespace, name, applicationSyncOptions: appSyncOptions },
736
790
  {
737
791
  onSuccess: () => {
738
792
  showSuccess(`Created namespace ${nsName}`, 'Sync triggered to retry the apply.')
@@ -812,9 +866,11 @@ function GitOpsDetailView({ namespaces, onOpenResource, onOpenSettings }: GitOps
812
866
  insight={insightsQ.data}
813
867
  error={insightsQ.error as Error | null}
814
868
  onRollback={isArgoApp && !operationInProgress ? (item) => {
815
- if (parseArgoRollbackID(item.id) == null) return
869
+ if (argoRollbackUpgrade || argoRollbackBlockedReason || parseArgoRollbackID(item.id) == null) return
816
870
  setRollbackTarget(item)
817
871
  } : undefined}
872
+ rollbackUpgrade={argoRollbackUpgrade}
873
+ rollbackBlockedReason={argoRollbackBlockedReason}
818
874
  />
819
875
  )
820
876
  }
@@ -890,23 +946,28 @@ function GitOpsDetailView({ namespaces, onOpenResource, onOpenSettings }: GitOps
890
946
  <SyncOptionsDialog
891
947
  open={!!syncDialogTarget}
892
948
  appLabel={`${namespace}/${name}`}
949
+ multiSource={isArgoMultiSource(resourceQ.data)}
950
+ pinsComparedRevision={argoInheritanceSupport === 'supported' && argoComparedRevisionCurrent(resourceQ.data)}
893
951
  resource={syncDialogTarget?.scope === 'resource' ? syncDialogTarget.resource : undefined}
952
+ comparedRevision={resourceQ.data?.status?.sync?.revision}
953
+ applicationSyncOptions={appSyncOptions}
894
954
  pending={argoSync.isPending}
895
955
  autoSyncEnabled={argoAutoSyncEnabled}
896
956
  validationPending={argoResourceValidation.isPending}
897
957
  operationInProgress={operationInProgress}
898
- validationResult={argoResourceValidation.data}
899
- validationError={argoResourceValidation.error?.message}
958
+ validationResult={validationStale ? null : argoResourceValidation.data}
959
+ validationError={validationStale ? undefined : argoResourceValidation.error?.message}
900
960
  onCancel={closeArgoSyncDialog}
901
961
  onValidationReset={() => argoResourceValidation.reset()}
902
962
  onValidate={syncDialogTarget?.scope === 'resource' ? (opts) => {
903
- argoResourceValidation.mutate(buildArgoResourceSyncVars(namespace, name, syncDialogTarget.resource, opts))
963
+ setValidatedTargetKey(deployTargetKey)
964
+ argoResourceValidation.mutate(buildArgoResourceSyncVars(namespace, name, syncDialogTarget.resource, opts, appSyncOptions))
904
965
  } : undefined}
905
966
  onConfirm={(opts) => {
906
967
  if (!syncDialogTarget) return
907
968
  const variables = syncDialogTarget.scope === 'resource'
908
- ? buildArgoResourceSyncVars(namespace, name, syncDialogTarget.resource, opts)
909
- : { namespace, name, ...opts }
969
+ ? buildArgoResourceSyncVars(namespace, name, syncDialogTarget.resource, opts, appSyncOptions)
970
+ : { namespace, name, ...opts, applicationSyncOptions: appSyncOptions }
910
971
  argoSync.mutate(variables, {
911
972
  onSettled: closeArgoSyncDialog,
912
973
  })
@@ -917,9 +978,17 @@ function GitOpsDetailView({ namespaces, onOpenResource, onOpenSettings }: GitOps
917
978
  appLabel={`${namespace}/${name}`}
918
979
  revision={rollbackTarget?.revision || ''}
919
980
  historyId={rollbackTarget?.id}
981
+ source={rollbackTarget?.source}
982
+ multiSourceWarning={rollbackTarget?.rollbackMultiSourceWarning}
920
983
  pending={argoRollback.isPending}
984
+ blockedReason={argoRollbackBlockedReason || (argoRollbackUpgrade ? radarUpgradeNoteText(argoRollbackUpgrade) : undefined)}
921
985
  onCancel={() => setRollbackTarget(null)}
922
986
  onConfirm={(opts) => {
987
+ if (argoRollbackUpgrade || argoRollbackBlockedReason) {
988
+ showError('Rollback unavailable', argoRollbackBlockedReason || radarUpgradeNoteText(argoRollbackUpgrade!))
989
+ setRollbackTarget(null)
990
+ return
991
+ }
923
992
  const id = parseArgoRollbackID(rollbackTarget?.id)
924
993
  if (id == null) {
925
994
  showError('Rollback target became invalid', 'The history entry changed while the dialog was open. Reselect a target and try again.')
@@ -1128,7 +1197,7 @@ function TopologyCounts({ tree }: { tree: GitOpsResourceTree }) {
1128
1197
  const outOfSync = nodes.filter((n) => (n.sync || '').toLowerCase() === 'outofsync').length
1129
1198
  return (
1130
1199
  <div className="hidden min-w-0 flex-1 items-center gap-3 truncate text-[11px] text-theme-text-tertiary sm:flex">
1131
- <span><span className="text-theme-text-primary">{total}</span> resources</span>
1200
+ <span><span className="text-theme-text-primary">{total}</span> resources shown</span>
1132
1201
  {dependencies > 0 && <span><span className="text-theme-text-primary">{dependencies}</span> {dependencies === 1 ? 'dependency' : 'dependencies'}</span>}
1133
1202
  {failingDependencies > 0 && <span className="flex items-center gap-1 font-medium text-red-600 dark:text-red-400"><span className="h-1.5 w-1.5 rounded-full bg-red-500" /> {failingDependencies} {failingDependencies === 1 ? 'dependency' : 'dependencies'} failing</span>}
1134
1203
  {healthy > 0 && <span className="flex items-center gap-1"><span className="h-1.5 w-1.5 rounded-full bg-emerald-500" /> {healthy} healthy</span>}
@@ -2,8 +2,7 @@ import { useNavCustomization } from '../../context/NavCustomization'
2
2
  import { useCapabilities } from '../../api/client'
3
3
  import { openCloudFunnel } from '../CloudFunnelButton'
4
4
 
5
- // The one sentence a standalone Radar adds after "this application deploys
6
- // to another cluster": the thing the user just ran into is what Radar Cloud
5
+ // The one sentence a standalone Radar adds for a remote destination: what Radar Cloud
7
6
  // does. "Radar Cloud" opens the same dialog as the top-right button, so
8
7
  // there is one pitch and one connect flow. That dialog connects THIS
9
8
  // cluster; the destination is a second connect from Cloud, which is why the
@@ -16,7 +15,7 @@ export function RemoteDestinationCloudHint() {
16
15
  if (embedded || !capabilities.data?.cloudConnect) return null
17
16
  return (
18
17
  <>
19
- Connect both clusters to{' '}
18
+ For resources on another cluster, connect both clusters to{' '}
20
19
  <button type="button" onClick={openCloudFunnel} className="underline decoration-theme-border underline-offset-2 hover:text-theme-text-primary">
21
20
  Radar Cloud
22
21
  </button>{' '}
@@ -27,7 +27,7 @@ describe('destinationToast', () => {
27
27
  })
28
28
  test('unknown destination', () => {
29
29
  const t = destinationToast('ConfigMap a/b', { canSwitch: true })
30
- expect(t.message).toBe('ConfigMap a/b is on another cluster')
30
+ expect(t.message).toBe("ConfigMap a/b can't be opened from this cluster")
31
31
  expect(t.actionLabel).toBeUndefined()
32
32
  })
33
33
  })
@@ -32,8 +32,8 @@ export function destinationToast(resource: string, dest: DestinationCluster): De
32
32
  }
33
33
  }
34
34
  return {
35
- message: `${resource} is on another cluster`,
36
- detail: "Radar couldn't tell which cluster, so it can't open it from here.",
35
+ message: `${resource} can't be opened from this cluster`,
36
+ detail: "Radar couldn't tell which cluster holds the recorded resource, so it can't open it from here.",
37
37
  }
38
38
  }
39
39
 
@@ -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} applicationEvidenceAvailable={caps.mcpApplicationEvidence} />
307
307
  )}
308
308
  </div>
309
309
 
@@ -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 ? <div data-testid="mcp-dialog">{readOnly ? 'read-only' : 'full'}</div> : null,
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).toBe('read-only')
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,12 @@ export function HomeAgentBlock({
14
14
  mcpUrl,
15
15
  readOnly,
16
16
  execTools,
17
+ applicationEvidenceAvailable,
17
18
  }: {
18
19
  mcpUrl: string
19
20
  readOnly?: boolean
20
21
  execTools?: boolean
22
+ applicationEvidenceAvailable?: boolean
21
23
  }) {
22
24
  const [mcpDialogOpen, setMcpDialogOpen] = useState(false)
23
25
  const d = useDiagnose()
@@ -52,11 +54,18 @@ export function HomeAgentBlock({
52
54
  mcpUrl={mcpUrl}
53
55
  readOnly={readOnly}
54
56
  execTools={execTools}
57
+ onInvestigate={showInvestigate && d.available ? () => openComposer(d) : undefined}
58
+ applicationEvidenceAvailable={applicationEvidenceAvailable}
55
59
  />
56
60
  </div>
57
61
  )
58
62
  }
59
63
 
64
+ function openComposer(d: ReturnType<typeof useDiagnose>) {
65
+ if (d.questions) d.openQuestion({})
66
+ else d.openWorkspace()
67
+ }
68
+
60
69
  function InvestigateLine() {
61
70
  const d = useDiagnose()
62
71
  if (!d.available) {
@@ -66,9 +75,9 @@ function InvestigateLine() {
66
75
  <button
67
76
  type="button"
68
77
  onClick={d.openHome}
69
- className="flex w-full items-center gap-2 rounded px-0.5 text-left text-xs font-medium text-purple-600 hover:underline dark:text-purple-400"
78
+ className="flex w-full items-center gap-2 rounded px-0.5 text-left text-xs font-medium text-accent-text hover:underline"
70
79
  >
71
- <Sparkles className="h-3.5 w-3.5 shrink-0" aria-hidden />
80
+ <Sparkles className="h-3.5 w-3.5 shrink-0 text-accent" aria-hidden />
72
81
  {label}
73
82
  </button>
74
83
  </Tooltip>
@@ -81,10 +90,10 @@ function InvestigateLine() {
81
90
  type="button"
82
91
  // Opens the investigations panel's question composer, focused: the
83
92
  // composer is where the scope and look-back are chosen before a run.
84
- onClick={() => (d.questions ? d.openQuestion({}) : d.openWorkspace())}
93
+ onClick={() => openComposer(d)}
85
94
  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
95
  >
87
- <Sparkles className="h-3.5 w-3.5 shrink-0 text-purple-600 dark:text-purple-400" aria-hidden />
96
+ <Sparkles className="h-3.5 w-3.5 shrink-0 text-accent" aria-hidden />
88
97
  <span className="truncate">
89
98
  {d.questions ? `Ask ${d.agentLabel} about this cluster…` : `Investigate with ${d.agentLabel}`}
90
99
  </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
- <button
439
- key={issue.id}
440
- className="w-full flex items-center gap-2 px-3 py-1.5 hover:bg-theme-hover transition-colors text-left"
441
- onClick={() => onResourceClick({
442
- kind: ref.kind,
443
- namespace: ref.namespace ?? '',
444
- name: ref.name,
445
- group: ref.group ?? '',
446
- })}
447
- >
448
- <StatusDot tone={issue.severity === 'critical' ? 'unhealthy' : 'degraded'} className="shrink-0" />
449
- <div className="min-w-0 flex-1">
450
- <div className="flex items-center gap-1.5">
451
- <span className="text-[10px] text-theme-text-tertiary bg-theme-elevated px-1 py-0.5 rounded">{issue.kind}</span>
452
- <span className="text-xs text-theme-text-primary truncate font-medium">{issue.name}</span>
453
- {(age || timing) && (
454
- <span className="ml-auto flex shrink-0 items-center gap-1">
455
- {age && (
456
- <Tooltip content={issueFirstSeenTitle(issue)} delay={100}>
457
- <span className="text-[10px] text-theme-text-tertiary tabular-nums">{age}</span>
458
- </Tooltip>
459
- )}
460
- {timing && (
461
- <Tooltip content={timing.tooltip} delay={100}>
462
- <span className="badge-sm text-[10px] text-theme-text-secondary">{timing.chip}</span>
463
- </Tooltip>
464
- )}
465
- </span>
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
- <div className="flex items-center gap-1.5 mt-0.5">
469
- <span className="text-[11px] text-theme-text-secondary truncate">{issueTitle(issue)}</span>
470
- <span className="text-[10px] text-theme-text-tertiary shrink-0">{groupLabel(issue.category_group)}</span>
471
- {issue.namespace && <span className="text-[10px] text-theme-text-tertiary shrink-0">{issue.namespace}</span>}
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
- {(issue.reason || issue.message) && (
474
- <div className="text-[10px] text-theme-text-tertiary truncate mt-0.5">
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>