- 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>
15 lines
629 B
TypeScript
15 lines
629 B
TypeScript
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>
|
|
)
|
|
}
|