@skyhook-io/radar-app 1.9.4 → 1.9.6
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 +9 -9
- package/src/App.tsx +10 -2
- package/src/api/client.authRedirect.test.ts +194 -0
- package/src/api/client.trace.test.ts +37 -0
- package/src/api/client.ts +315 -1
- package/src/api/config.test.ts +19 -0
- package/src/components/CloudConnectFlow.tsx +605 -0
- package/src/components/CloudFunnelButton.tsx +522 -0
- package/src/components/ConnectionErrorView.tsx +2 -1
- package/src/components/UserMenu.tsx +3 -2
- package/src/components/diagnose/DiagnoseSurface.tsx +2 -1
- package/src/components/home/ClusterHealthCard.tsx +10 -5
- package/src/components/home/mcpToolCatalog.ts +7 -5
- package/src/components/nav/PrimaryNavRail.tsx +4 -1
- package/src/components/resources/ImageFilesystemModal.tsx +4 -1
- package/src/components/settings/SettingsDialog.tsx +11 -4
- package/src/components/traffic/TrafficWizard.tsx +4 -2
- package/src/components/workload/WorkloadView.tsx +558 -12
- package/src/main.tsx +7 -1
- package/src/vite-env.d.ts +8 -0
package/src/main.tsx
CHANGED
|
@@ -153,8 +153,14 @@ window.addEventListener('mouseup', (e: MouseEvent) => {
|
|
|
153
153
|
// tab, so it opts into per-view document.title. Library consumers (e.g.
|
|
154
154
|
// radar-hub-web) render <RadarApp apiBase="..." basename="..." /> WITHOUT this
|
|
155
155
|
// flag, keeping their own tab title.
|
|
156
|
+
const runtimeConfig = window.__RADAR_RUNTIME_CONFIG__
|
|
157
|
+
|
|
156
158
|
ReactDOM.createRoot(document.getElementById('radar')!).render(
|
|
157
159
|
<React.StrictMode>
|
|
158
|
-
<RadarApp
|
|
160
|
+
<RadarApp
|
|
161
|
+
apiBase={runtimeConfig?.apiBase}
|
|
162
|
+
basename={runtimeConfig?.basePath}
|
|
163
|
+
manageDocumentTitle
|
|
164
|
+
/>
|
|
159
165
|
</React.StrictMode>
|
|
160
166
|
)
|