@skyhook-io/k8s-ui 1.7.5 → 1.7.7
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/components/gitops/GitOpsDetailLayout.tsx +4 -4
- package/src/components/gitops/GitOpsTableView.tsx +363 -89
- package/src/components/gitops/index.ts +1 -0
- package/src/components/resources/ResourcesView.tsx +75 -19
- package/src/components/resources/renderers/ArgoApplicationRenderer.tsx +47 -3
- package/src/components/resources/renderers/RBACErrorSection.tsx +6 -9
- package/src/components/resources/renderers/RoleBindingRenderer.test.tsx +76 -0
- package/src/components/resources/renderers/RoleBindingRenderer.tsx +23 -7
- package/src/components/resources/resource-utils-argo.ts +18 -0
- package/src/components/ui/FetchResult.test.tsx +93 -0
- package/src/components/ui/FetchResult.tsx +141 -0
- package/src/components/ui/RowActionMenu.tsx +149 -0
- package/src/components/ui/index.ts +3 -0
- package/src/components/workload/WorkloadView.tsx +13 -18
- package/src/types/fetch-error.test.ts +46 -0
- package/src/types/fetch-error.ts +20 -0
- package/src/types/index.ts +1 -0
- package/src/utils/git-provider-urls.test.ts +348 -0
- package/src/utils/git-provider-urls.ts +142 -0
- package/src/utils/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, type ComponentType, type ReactNode } from 'react'
|
|
2
|
-
import { ChevronDown, ChevronRight, Clock3, GitBranch, GitCommit, Loader2, Pause, Play, RefreshCw,
|
|
2
|
+
import { ArrowDownUp, ChevronDown, ChevronRight, Clock3, GitBranch, GitCommit, Loader2, Pause, Play, RefreshCw, Settings, Trash2, XCircle, Zap } from 'lucide-react'
|
|
3
3
|
|
|
4
4
|
import { HealthStatusBadge, SyncStatusBadge } from './GitOpsStatusBadge'
|
|
5
5
|
import { GitOpsIssuesBand, GitOpsStatusStrip } from './insights'
|
|
@@ -340,7 +340,7 @@ export function GitOpsDetailLayout(props: GitOpsDetailLayoutProps) {
|
|
|
340
340
|
<ActionButton
|
|
341
341
|
label="Sync…"
|
|
342
342
|
description="Apply manifests from Git to the cluster. Opens an options dialog (prune, dry-run, revision)."
|
|
343
|
-
icon={
|
|
343
|
+
icon={ArrowDownUp}
|
|
344
344
|
loading={argo.syncing}
|
|
345
345
|
onClick={argo.onSyncRequested}
|
|
346
346
|
disabled={effectiveSuspended || terminating}
|
|
@@ -350,14 +350,14 @@ export function GitOpsDetailLayout(props: GitOpsDetailLayoutProps) {
|
|
|
350
350
|
<ActionButton
|
|
351
351
|
label="Refresh"
|
|
352
352
|
description="Re-check Git for new commits and recompute sync status. Doesn't apply anything."
|
|
353
|
-
icon={
|
|
353
|
+
icon={RefreshCw}
|
|
354
354
|
loading={argo.refreshing && argo.refreshingKind === 'normal'}
|
|
355
355
|
onClick={() => argo.onRefresh('normal')}
|
|
356
356
|
/>
|
|
357
357
|
<ActionButton
|
|
358
358
|
label="Hard refresh"
|
|
359
359
|
description="Like Refresh, but also bypasses Argo's manifest cache (re-renders Helm/Kustomize)."
|
|
360
|
-
icon={
|
|
360
|
+
icon={Zap}
|
|
361
361
|
loading={argo.refreshing && argo.refreshingKind === 'hard'}
|
|
362
362
|
onClick={() => argo.onRefresh('hard')}
|
|
363
363
|
/>
|