feat: Whiteboard Dot in Liste, Favoriten eingeklappt + Modal bei Klick

This commit is contained in:
2026-07-04 12:49:19 +02:00
parent 31cb7f7411
commit 8425688160
3 changed files with 124 additions and 66 deletions

View File

@@ -76,6 +76,13 @@ router.get('/unread', authenticate, (req, res) => {
res.json({ count });
});
// ── Unread IDs (welche Whiteboards konkret) ───────────────────────────────────
router.get('/unread-ids', authenticate, (req, res) => {
const me = uid(req);
const rows = db.prepare('SELECT whiteboard_id FROM whiteboard_unread WHERE user_id=?').all(me);
res.json({ ids: rows.map(r => r.whiteboard_id) });
});
// ── Liste ─────────────────────────────────────────────────────────────────────
router.get('/', authenticate, (req, res) => {
const me = uid(req);