Files
envbao-admin/src/features/graph/GraphNode.tsx
T
mattandClaude Sonnet 5.5 d67a9c9b62
CI / integration (push) Successful in 12s
CI / check (push) Successful in 15s
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>
2026-10-20 12:16:02 +01:00

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>
)
}