feat: add more roles (tech_lead, scrum_master, product_owner, designer, qa)

- Registration form: added 5 new role options to dropdown
- Sidebar: new roles get proper nav access via ALL_ROLES/LEADER_ROLES
- Dashboard: isLeader check expanded to include new leadership roles
- Shared/Pages: role badge colors added for all new roles
- Invite modal: expanded role dropdown
This commit is contained in:
tusuii
2026-02-16 12:31:54 +05:30
parent 2db45de4c4
commit c604df281d
33 changed files with 5006 additions and 71 deletions

View File

@@ -42,6 +42,7 @@ export async function apiCreateTask(task: {
title: string; description?: string; status?: string; priority?: string;
assignee?: string; reporter?: string; dueDate?: string; tags?: string[];
subtasks?: { title: string; done: boolean }[];
dependencies?: { dependsOnUserId: string; description: string }[];
}) {
return request('/tasks', {
method: 'POST',
@@ -83,3 +84,24 @@ export async function apiAddActivity(taskId: string, text: string) {
body: JSON.stringify({ text }),
});
}
// Dependencies
export async function apiAddDependency(taskId: string, dep: { dependsOnUserId: string; description: string }) {
return request(`/tasks/${taskId}/dependencies`, {
method: 'POST',
body: JSON.stringify(dep),
});
}
export async function apiToggleDependency(taskId: string, depId: string, resolved: boolean) {
return request(`/tasks/${taskId}/dependencies/${depId}`, {
method: 'PUT',
body: JSON.stringify({ resolved }),
});
}
export async function apiRemoveDependency(taskId: string, depId: string) {
return request(`/tasks/${taskId}/dependencies/${depId}`, {
method: 'DELETE',
});
}