- The delete button is now director-only via CSS + JS guard.
- The main tasks table only shows active tasks (not done).
- A collapsible "Архив" section lists completed tasks (employees
see their own; Абделазиз sees everyone's). Each archived row
has "↺ Вернуть" and progress access; delete is director-only.
- Department charts are now director-only too.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The actions cell was a no-wrap flex container, so the new
"💬 Прогресс" button overflowed sideways and bent the table
lines. Allow wrap, shrink button to icon + count badge.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Each task gets an "updates" timeline. Tap "💬 Прогресс" in the
table row to open a wide modal that shows past entries
(author + timestamp + text) and a textarea for a new one.
Only the assignee or Абделазиз can add entries.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Hide department KPI card, "Загрузка по сотрудникам" card, and
the assignee filter for non-director sessions. The tasks table
title swaps to "Мои поручения" for employees. Calendar dots and
the upcoming-tasks widget now show only the current user's
tasks when not director.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
applySession was still checking the old name, so Абделазиз was
classified as employee and the create-task menu item stayed
hidden.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Replace 'Директор' employee with 'Абделазиз' (director role).
- Seed unique simple temporary passwords for every employee in
localStorage on first run. Existing sessions/usernames migrated.
- Login now requires a password for every employee.
- Add personal cabinet (modal) reachable via the user chip with a
change-password form (current + new + confirm, min 4 chars).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Login overlay on first visit. Pick employee from list; director
requires password (demo: 1234). Session persists in localStorage.
The "Create task" menu item and form are gated to the director
role. Employees are redirected away from #/create. Top bar shows
a user chip with avatar, name, role, and logout button.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two-column row: calendar | upcoming tasks (top 6 by deadline).
Color-coded by overdue / due soon / normal. Priority dot on right.
Click an item to filter analytics by that deadline.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mini month calendar below clock/weather. Highlights today,
shows dots on dates with active task deadlines. Click a day
to filter analytics table by that deadline.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>