Rework Graph page: node cards, key, toolbar bar and details card
- Custom graph nodes with identity kind tags and per-column colours; wider text, styled edge labels, "full access" for everything grants. - Filters, refresh and the key share one bar above the canvas. - Details card restructured into sections with capability chips, a collapsible policy HCL and a red Revoke button; shared CapabilityChips component. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
68e564eb6c
commit
d67a9c9b62
7 files changed
+441
-110
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { Handle, Position, type NodeProps } from '@xyflow/react'
|
||||
|
||||
/** One box in the access graph: identities show their kind, so "alice" the user and "alice" the entity differ. */
|
||||
export function GraphNodeCard({ data }: NodeProps) {
|
||||
const { label, kind } = data as { label: string; kind?: string }
|
||||
return (
|
||||
<div className="gnode-card">
|
||||
<Handle type="target" position={Position.Left} isConnectable={false} />
|
||||
{kind && <span className="gnode-kind">{kind}</span>}
|
||||
<span className="gnode-label">{label}</span>
|
||||
<Handle type="source" position={Position.Right} isConnectable={false} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user