diff --git a/src/Dashboard.tsx b/src/Dashboard.tsx index c4e5481..dbb43dd 100644 --- a/src/Dashboard.tsx +++ b/src/Dashboard.tsx @@ -8,7 +8,7 @@ export function DashboardPage({ tasks, currentUser, users }: { tasks: Task[]; cu const overdue = tasks.filter(t => new Date(t.dueDate + 'T00:00:00') < new Date() && t.status !== 'done').length; const critical = tasks.filter(t => t.priority === 'critical' && t.status !== 'done').length; - const isLeader = ['cto', 'manager', 'tech_lead', 'scrum_master', 'product_owner'].includes(currentUser.role); + const isLeader = ['ceo', 'cto', 'manager', 'tech_lead', 'scrum_master', 'product_owner'].includes(currentUser.role); const myTasks = tasks.filter(t => t.assignee === currentUser.id); const myDone = myTasks.filter(t => t.status === 'done').length; diff --git a/src/Login.tsx b/src/Login.tsx index b2823d1..30938ce 100644 --- a/src/Login.tsx +++ b/src/Login.tsx @@ -90,6 +90,7 @@ export function LoginPage({ onLogin }: { onLogin: (u: User) => void }) { + diff --git a/src/Pages.tsx b/src/Pages.tsx index 4968def..6bf4162 100644 --- a/src/Pages.tsx +++ b/src/Pages.tsx @@ -59,7 +59,7 @@ export function MembersPage({ tasks, users }: { tasks: Task[]; users: User[] }) const ut = tasks.filter(t => t.assignee === u.id); const done = ut.filter(t => t.status === 'done').length; const active = ut.filter(t => t.status !== 'done').length; - const roleColors: Record = { cto: '#818cf8', manager: '#fb923c', tech_lead: '#06b6d4', scrum_master: '#a855f7', product_owner: '#ec4899', designer: '#f43f5e', qa: '#14b8a6', employee: '#22c55e' }; + const roleColors: Record = { ceo: '#eab308', cto: '#818cf8', manager: '#fb923c', tech_lead: '#06b6d4', scrum_master: '#a855f7', product_owner: '#ec4899', designer: '#f43f5e', qa: '#14b8a6', employee: '#22c55e' }; return ( 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 {