In the notification feed, employee names are bolded and the
task title (in «…») becomes a pill-shaped button. Clicking it
closes the modal, navigates to #/tasks, expands the archive
section if the task lives there, scrolls the row into view,
and runs a brief highlight pulse.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Use a filled message bubble with three dots instead of the 🔔
emoji so the icon reads cleanly across platforms. When there
are unread notifications the button picks up the brand
gradient, and the unread counter gets a soft pulsing animation
with a tighter outline.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Every user gets a bell button in the top bar with an unread
counter and a modal inbox. Events that emit a notification:
- new task → assignee gets "Новое поручение"
- ▶ В работу / ↺ Вернуть / удаление → director (or assignee)
- ✓ На утверждение → director
- ✓ Утвердить / ✗ Отклонить / ↺ Отозвать → relevant party
- 💬 Прогресс → director (employee) or assignee (director)
Storage event keeps the bell in sync across tabs.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Employees clicking "Готово" now move the task to
status="pending_review" instead of "done". The task stays in
the active table with a purple "На утверждении" badge until
Абделазиз acts on it:
- ✓ Утвердить → status="done" → goes to archive
- ✗ Отклонить → status="in_progress" → back to work
Employees can revoke their own submission while it is pending.
Абделазиз's own "Готово" still completes immediately.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Menu now has three items per role:
- Director: Главная · Все поручения · Аналитика (+Создать)
- Employee: Главная · Мои поручения · Аналитика
#/tasks holds the filterable table and archive.
#/analytics holds KPIs, workload, and charts. Employees see
their own KPIs plus their personal deadline/direction/timeline
charts; department-wide charts stay director-only.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- 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>