When a new user is added, it now gives them a column -- as well as when you remove a user it deletes their column and moves all tasks to ROD

This commit is contained in:
NPS Agent
2026-05-12 09:32:56 +09:30
parent 6bcea3ee5d
commit 62d431818a
4 changed files with 24 additions and 14 deletions
+5 -1
View File
@@ -91,7 +91,11 @@ function fmtDateTime(iso) {
' · ' + d.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit' });
}
function findUser(id) { return USERS.find(u => u.id === id); }
function findUser(id) {
const live = window.dbUsers;
if (live) return live.find(u => u.id === id);
return USERS.find(u => u.id === id);
}
function TaskCard({ task, onOpen, density = 'cozy', dragging = false, onDragStart, onDragEnd }) {
const author = findUser(task.addedBy);