@skyhook-io/radar-app 1.13.0 → 1.13.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 +36 -8
- package/src/RadarApp.tsx +1 -1
- package/src/api/diagnose.ts +45 -5
- package/src/components/diagnose/AISettings.tsx +9 -4
- package/src/components/diagnose/DiagnoseContext.tsx +216 -48
- package/src/components/diagnose/DiagnoseSurface.test.tsx +118 -5
- package/src/components/diagnose/DiagnoseSurface.tsx +190 -32
- package/src/components/diagnose/Home.tsx +93 -64
- package/src/components/diagnose/InvestigationView.tsx +190 -124
- package/src/components/diagnose/parts.tsx +10 -2
- package/src/components/execution/BatchExecutionView.render.test.tsx +35 -0
- package/src/components/execution/BatchExecutionView.tsx +2 -3
- package/src/components/execution/execution-definition.test.ts +19 -0
- package/src/components/execution/execution-definition.ts +2 -0
- package/src/components/gitops/GitOpsView.tsx +25 -3
- package/src/components/nav/navigation.test.ts +26 -0
- package/src/components/nav/navigation.ts +10 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Sidebar navigation means “show me that destination.” An expanded investigation
|
|
2
|
+
// obscures it, while a docked investigation intentionally stays alongside it.
|
|
3
|
+
export function navigateFromPrimaryRail(
|
|
4
|
+
expandedInvestigationOpen: boolean,
|
|
5
|
+
closeDiagnose: () => void,
|
|
6
|
+
navigate: () => void,
|
|
7
|
+
) {
|
|
8
|
+
if (expandedInvestigationOpen) closeDiagnose()
|
|
9
|
+
navigate()
|
|
10
|
+
}
|