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

@@ -1655,6 +1655,281 @@ body {
background: var(--accent-hover);
}
/* DEPENDENCIES */
.dep-unresolved-badge {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
font-size: 11px;
font-weight: 600;
padding: 2px 8px;
border-radius: 10px;
margin-left: 8px;
}
.dep-empty {
color: var(--text-muted);
font-size: 12px;
padding: 8px 0;
font-style: italic;
}
.dep-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px;
border-radius: 8px;
margin-bottom: 4px;
transition: background 0.15s;
}
.dep-item:hover {
background: rgba(255, 255, 255, 0.03);
}
.dep-unresolved {
border-left: 3px solid #ef4444;
}
.dep-resolved {
border-left: 3px solid #22c55e;
opacity: 0.7;
}
.dep-check {
width: 22px;
height: 22px;
border-radius: 50%;
border: 2px solid var(--text-muted);
background: none;
color: #22c55e;
font-size: 13px;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
flex-shrink: 0;
}
.dep-check.checked {
border-color: #22c55e;
background: rgba(34, 197, 94, 0.15);
}
.dep-check:hover {
border-color: var(--accent);
}
.dep-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.dep-user {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
color: var(--accent);
}
.dep-desc {
font-size: 13px;
color: var(--text-primary);
}
.dep-desc.done {
text-decoration: line-through;
color: var(--text-muted);
}
.dep-remove {
background: none;
border: none;
color: var(--text-muted);
font-size: 14px;
cursor: pointer;
padding: 4px;
border-radius: 4px;
opacity: 0;
transition: all 0.15s;
}
.dep-item:hover .dep-remove {
opacity: 1;
}
.dep-remove:hover {
color: #ef4444;
background: rgba(239, 68, 68, 0.1);
}
.dep-add-row {
display: flex;
gap: 6px;
margin-top: 8px;
}
.dep-add-select {
padding: 6px 8px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text-primary);
font-size: 12px;
font-family: inherit;
width: 140px;
outline: none;
}
.dep-add-select:focus {
border-color: var(--accent);
}
.dep-add-input {
flex: 1;
padding: 6px 10px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text-primary);
font-size: 12px;
font-family: inherit;
outline: none;
}
.dep-add-input:focus {
border-color: var(--accent);
}
.dep-add-btn {
padding: 6px 14px;
background: var(--accent);
border: none;
border-radius: 6px;
color: #fff;
font-size: 12px;
font-weight: 600;
cursor: pointer;
font-family: inherit;
white-space: nowrap;
transition: background 0.15s;
}
.dep-add-btn:hover {
background: var(--accent-hover);
}
/* Modal dependency styles */
.modal-deps-list {
margin-bottom: 8px;
}
.modal-dep-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
margin-bottom: 4px;
font-size: 13px;
border-left: 3px solid #f59e0b;
}
.modal-dep-icon {
font-size: 14px;
}
.modal-dep-user {
color: var(--accent);
font-weight: 600;
font-size: 12px;
white-space: nowrap;
}
.modal-dep-desc {
flex: 1;
color: var(--text-primary);
}
.modal-dep-remove {
background: none;
border: none;
color: var(--text-muted);
font-size: 14px;
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
}
.modal-dep-remove:hover {
color: #ef4444;
background: rgba(239, 68, 68, 0.1);
}
.modal-dep-add {
display: flex;
gap: 6px;
}
.modal-dep-select {
padding: 8px 10px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text-primary);
font-size: 12px;
font-family: inherit;
width: 160px;
outline: none;
}
.modal-dep-select:focus {
border-color: var(--accent);
}
.modal-dep-input {
flex: 1;
padding: 8px 12px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text-primary);
font-size: 13px;
font-family: inherit;
outline: none;
}
.modal-dep-input:focus {
border-color: var(--accent);
}
.modal-dep-btn {
padding: 8px 14px;
background: var(--accent);
border: none;
border-radius: 8px;
color: #fff;
font-size: 12px;
font-weight: 600;
cursor: pointer;
font-family: inherit;
white-space: nowrap;
transition: background 0.15s;
}
.modal-dep-btn:hover {
background: var(--accent-hover);
}
/* DASHBOARD */
.dashboard {
padding: 20px;