@skyhook-io/radar-app 1.3.1 → 1.3.3
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 +111 -58
- package/src/api/client.ts +29 -1
- package/src/components/ConnectionErrorView.tsx +2 -2
- package/src/components/gitops/GitOpsView.tsx +127 -27
- package/src/components/helm/ChartBrowser.tsx +7 -3
- package/src/components/helm/HelmReleaseDrawer.tsx +4 -6
- package/src/components/helm/InstallWizard.tsx +1 -1
- package/src/components/helm/RoleGatedPanel.tsx +2 -2
- package/src/components/home/ClusterHealthCard.tsx +1 -1
- package/src/components/home/GitOpsControllersCard.tsx +14 -12
- package/src/components/home/HomeView.tsx +84 -56
- package/src/components/home/MCPSetupDialog.tsx +20 -86
- package/src/components/home/mcpToolCatalog.ts +276 -0
- package/src/components/issues/IssuesPane.tsx +78 -0
- package/src/components/portforward/PortForwardButton.tsx +1 -1
- package/src/components/portforward/PortForwardManager.tsx +1 -1
- package/src/components/resource/PrometheusCharts.tsx +18 -159
- package/src/components/resources/ImageFilesystemModal.tsx +1 -2
- package/src/components/resources/renderers/RoleBindingRenderer.tsx +5 -3
- package/src/components/resources/renderers/WorkloadRenderer.tsx +6 -2
- package/src/components/settings/MyPermissionsDialog.tsx +1 -1
- package/src/components/settings/SettingsDialog.tsx +22 -2
- package/src/components/timeline/TimelineSwimlanes.tsx +8 -1311
- package/src/components/ui/Markdown.tsx +1 -1
- package/src/components/ui/UpdateNotification.tsx +1 -1
- package/src/components/workload/WorkloadView.tsx +190 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect, useRef, useCallback } from 'react'
|
|
2
2
|
import { createPortal } from 'react-dom'
|
|
3
|
-
import { Settings, X, RotateCcw, Loader2, Copy, Check, Pin } from 'lucide-react'
|
|
3
|
+
import { Settings, X, RotateCcw, Loader2, Copy, Check, Pin, Shield } from 'lucide-react'
|
|
4
4
|
import { clsx } from 'clsx'
|
|
5
5
|
import { useAnimatedUnmount } from '../../hooks/useAnimatedUnmount'
|
|
6
6
|
import { TRANSITION_BACKDROP, TRANSITION_PANEL } from '../../utils/animation'
|
|
@@ -28,9 +28,10 @@ interface ConfigResponse {
|
|
|
28
28
|
interface SettingsDialogProps {
|
|
29
29
|
open: boolean
|
|
30
30
|
onClose: () => void
|
|
31
|
+
onShowMyPermissions?: () => void
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
export function SettingsDialog({ open, onClose }: SettingsDialogProps) {
|
|
34
|
+
export function SettingsDialog({ open, onClose, onShowMyPermissions }: SettingsDialogProps) {
|
|
34
35
|
const dialogRef = useRef<HTMLDivElement>(null)
|
|
35
36
|
const { shouldRender, isOpen } = useAnimatedUnmount(open, 200)
|
|
36
37
|
const [configData, setConfigData] = useState<ConfigResponse | null>(null)
|
|
@@ -167,6 +168,25 @@ export function SettingsDialog({ open, onClose }: SettingsDialogProps) {
|
|
|
167
168
|
{loadError}
|
|
168
169
|
</div>
|
|
169
170
|
)}
|
|
171
|
+
{onShowMyPermissions && (
|
|
172
|
+
<div className="mb-4 rounded-md border border-theme-border bg-theme-elevated/50 p-3">
|
|
173
|
+
<div className="flex items-center justify-between gap-3">
|
|
174
|
+
<div className="min-w-0">
|
|
175
|
+
<h3 className="text-sm font-medium text-theme-text-primary">My permissions</h3>
|
|
176
|
+
<p className="mt-0.5 text-xs text-theme-text-tertiary">
|
|
177
|
+
View what your current identity can do in this cluster.
|
|
178
|
+
</p>
|
|
179
|
+
</div>
|
|
180
|
+
<button
|
|
181
|
+
onClick={onShowMyPermissions}
|
|
182
|
+
className="shrink-0 flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-theme-text-secondary hover:text-theme-text-primary hover:bg-theme-hover rounded-md transition-colors"
|
|
183
|
+
>
|
|
184
|
+
<Shield className="w-3.5 h-3.5" />
|
|
185
|
+
Open
|
|
186
|
+
</button>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
)}
|
|
170
190
|
<StartupConfigTab
|
|
171
191
|
config={editedConfig}
|
|
172
192
|
effectiveConfig={configData?.effective}
|