- {g.path}
+ {row.display}
+ {row.wildcard && everything inside}
+ |
+
+
|
- {g.capabilities.join(', ')} |
diff --git a/src/features/graph/Details.tsx b/src/features/graph/Details.tsx
index bf6ccd3..381cd5e 100644
--- a/src/features/graph/Details.tsx
+++ b/src/features/graph/Details.tsx
@@ -4,6 +4,7 @@ import { revokeAccess } from '../../api/grants'
import type { AccessGraph, GraphEdge, GraphNode, PolicyInput } from '../../model/graph'
import { parseManagedPolicy, type GrantTarget } from '../../model/managed'
import { CapabilityChips } from '../shared/CapabilityChips'
+import { useConfirm } from '../shared/useConfirm'
export type Selection = { kind: 'node'; id: string } | { kind: 'edge'; id: string }
@@ -147,6 +148,7 @@ function NodeDetails({ node, full, policies }: { node: GraphNode; full: AccessGr
function EdgeDetails({ client, edge, full, policies, onRevoked }: { client: BaoClient; edge: GraphEdge; full: AccessGraph } & Pick) {
const qc = useQueryClient()
+ const confirm = useConfirm()
const from = nodeById(full, edge.source)
const to = nodeById(full, edge.target)
const isGrant = from?.type === 'policy' && to?.type === 'path'
@@ -186,10 +188,14 @@ function EdgeDetails({ client, edge, full, policies, onRevoked }: { client: BaoC
|