feat: TKB shift scheduler — personnel shift planning web app

Full rewrite of METRO HMG for TKB tunnel department:
- People-based grid (18 TKB + 5 IT), year-long calendar
- Color-coded shift values (4/6/8/12/A/B/D/N/U/O)
- Drag-and-drop cells, multi-cell selection (click/ctrl/shift/drag)
- Right-click context menu with color palette
- Tunnel closure + Metro + D8 info rows (toggleable)
- Czech holidays highlighted with names
- PDF export (2-page A4 landscape, DejaVu font for Czech chars)
- Improvement proposals system
- Sticky headers (vertical + horizontal scroll)
- Cell value filter toggles in legend

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Docker Config Backup
2026-04-02 09:48:38 +02:00
commit b4158d687f
47 changed files with 14185 additions and 0 deletions

27
web/deploy.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
# Deploy METRO HMG app to copelk
set -e
REMOTE="copelk"
REMOTE_DIR="~/Prace/METRO/web"
echo "Building..."
cd /home/klas/Prace/METRO/web
npx vite build
echo "Syncing to $REMOTE..."
rsync -avz --delete \
--exclude='node_modules' \
--exclude='.git' \
--exclude='saved_schedule.json' \
--exclude='schedules' \
--exclude='uploads' \
/home/klas/Prace/METRO/web/ $REMOTE:$REMOTE_DIR/
echo "Installing deps on remote..."
ssh $REMOTE "cd $REMOTE_DIR && npm install --production --silent"
echo "Restarting service on remote..."
ssh $REMOTE "cd $REMOTE_DIR && pm2 restart metro-hmg"
echo "Done! App running at http://copelk:3080"