setExpanded(expanded === u.id ? null : u.id)}>
@@ -99,7 +99,7 @@ export function MembersPage({ tasks, users }: { tasks: Task[]; users: User[] })
-
+
diff --git a/src/Shared.tsx b/src/Shared.tsx
index f0dee20..246d454 100644
--- a/src/Shared.tsx
+++ b/src/Shared.tsx
@@ -51,7 +51,7 @@ export function ProgressBar({ subtasks }: { subtasks: Subtask[] }) {
}
export function RoleBadge({ role }: { role: string }) {
- const colors: Record = { cto: '#818cf8', manager: '#fb923c', tech_lead: '#06b6d4', scrum_master: '#a855f7', product_owner: '#ec4899', designer: '#f43f5e', qa: '#14b8a6', employee: '#22c55e' };
+ const colors: Record = { ceo: '#eab308', cto: '#818cf8', manager: '#fb923c', tech_lead: '#06b6d4', scrum_master: '#a855f7', product_owner: '#ec4899', designer: '#f43f5e', qa: '#14b8a6', employee: '#22c55e' };
const c = colors[role] || '#64748b';
return {role.toUpperCase()};
}
diff --git a/src/Sidebar.tsx b/src/Sidebar.tsx
index 66ad0bd..4b1b810 100644
--- a/src/Sidebar.tsx
+++ b/src/Sidebar.tsx
@@ -2,8 +2,8 @@ import type { User } from './data';
import { Avatar } from './Shared';
import { RoleBadge } from './Shared';
-const ALL_ROLES = ['cto', 'manager', 'tech_lead', 'scrum_master', 'product_owner', 'employee', 'designer', 'qa'];
-const LEADER_ROLES = ['cto', 'manager', 'tech_lead', 'scrum_master', 'product_owner'];
+const ALL_ROLES = ['ceo', 'cto', 'manager', 'tech_lead', 'scrum_master', 'product_owner', 'employee', 'designer', 'qa'];
+const LEADER_ROLES = ['ceo', 'cto', 'manager', 'tech_lead', 'scrum_master', 'product_owner'];
const NAV_ITEMS = [
{ id: 'dashboard', icon: '⊞', label: 'Dashboard', roles: ALL_ROLES },
@@ -12,7 +12,7 @@ const NAV_ITEMS = [
{ id: 'mytasks', icon: '✓', label: 'My Tasks', roles: ['employee', 'designer', 'qa'] },
{ id: 'teamtasks', icon: '👥', label: 'Team Tasks', roles: LEADER_ROLES },
{ id: 'reports', icon: '📊', label: 'Reports', roles: LEADER_ROLES },
- { id: 'members', icon: '👤', label: 'Members', roles: ['cto'] },
+ { id: 'members', icon: '👤', label: 'Members', roles: ['ceo', 'cto'] },
];
interface SidebarProps {