simplified kanban:

Before this change tasks were resorted on drop. By introduction of server-sent events, this is no longer required, as resorting also happens triggered by the server side.
This commit is contained in:
2025-12-20 13:21:17 +01:00
parent 851df52458
commit 78cae4644d

View File

@@ -97,12 +97,6 @@
body : JSON.stringify(patch)
});
if (resp.ok){
delete tasks[task.assignee][task.status][task.id]
if (!tasks[user_id]) tasks[user_id] = {}
if (!tasks[user_id][state]) tasks[user_id][state] = {}
tasks[user_id][state][task.id] = task;
task.assignee = user_id;
task.status = state;
yikes();
} else {
error(resp);
@@ -139,8 +133,6 @@
return [10,20,40,60,100].includes(state);
}
async function load(){
try {
eventSource = eventStream(handleUpdateEvent);