feat: dodaj bilješke widget i admin kalendar/notifikacije
Some checks failed
ERP CI/CD Pipeline / test (push) Has been cancelled
ERP CI/CD Pipeline / Deploy (server git pull + compose) (push) Has been cancelled

Uveden je novi Notes drawer s kalendar integracijom, zajednički DRY
left-slide mehanizam te međusobno isključivo prikazivanje s Kalendar
widgetom.

Backend i frontend su prošireni za servisne bilješke (uključujući slanje
na više servisera), dodan je users/servicers endpoint, te su uvedene
warning notifikacije kada serviser ima više od 2 zadatka isti dan.

U admin su dodane stavke za Bilješke i zaseban Kalendar zadataka (proxy
TaskCalendar) radi lakšeg operativnog pregleda.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
mariomitte
2026-07-20 06:33:36 +02:00
parent 61996bd1a0
commit 1a18498b30
20 changed files with 1312 additions and 113 deletions

View File

@@ -0,0 +1,17 @@
import { atom } from 'nanostores';
export const $activeLeftDrawer = atom(null);
export function openLeftDrawer(drawerId) {
$activeLeftDrawer.set(drawerId || null);
}
export function closeLeftDrawer(drawerId = null) {
if (!drawerId) {
$activeLeftDrawer.set(null);
return;
}
if (String($activeLeftDrawer.get() || '') === String(drawerId)) {
$activeLeftDrawer.set(null);
}
}