Skip to content

Commit 77412a6

Browse files
committed
Fix role options in UpdateGraphModal to use correct role system
- Replace old Node Watcher, Connector, etc. roles with GUEST, VIEWER, USER, ADMIN - Ensures consistency with the unified role system across the application
1 parent d8a43e3 commit 77412a6

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

packages/web/src/components/UpdateGraphModal.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,10 @@ export function UpdateGraphModal({ isOpen, onClose }: UpdateGraphModalProps) {
7575
];
7676

7777
const roleOptions = [
78-
{ value: 'NodeWatcher', label: 'Node Watcher', description: 'Can view and track node progress' },
79-
{ value: 'Connector', label: 'Connector', description: 'Can create connections between nodes' },
80-
{ value: 'OriginNode', label: 'Origin Node', description: 'Can create and manage core nodes' },
81-
{ value: 'PathKeeper', label: 'Path Keeper', description: 'Can manage workflows and paths' },
82-
{ value: 'GraphMaster', label: 'Graph Master', description: 'Full control over the graph' }
78+
{ value: 'GUEST', label: 'Guest', description: 'Anonymous demo access (read-only)' },
79+
{ value: 'VIEWER', label: 'Viewer', description: 'Can view graphs and nodes (read-only)' },
80+
{ value: 'USER', label: 'User', description: 'Can create and work on tasks' },
81+
{ value: 'ADMIN', label: 'Admin', description: 'Full system administration access' }
8382
];
8483

8584
// Tag handling functions (same as CreateGraphModal)

0 commit comments

Comments
 (0)