From f756a600b1d36373bc5ac5a77c89609adaaab996 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Thu, 17 Sep 2026 08:06:34 +0000 Subject: [PATCH] Add reallocate cap description, update assign/admin/settings wording for tasks app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reflects the new tasks-app permission tiers (use/assign/reallocate/admin) — descriptions were still saying "phase 2" for features that now exist. --- src/db.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/db.js b/src/db.js index f0aa241..41ef29e 100644 --- a/src/db.js +++ b/src/db.js @@ -497,8 +497,12 @@ export async function initDb() { `) // Seed tasks app + capabilities. LXC 130 — personal task planner (lists, - // reminders, recurring to-dos). 'use' granted to Staff so everyone gets their - // own tasks; 'assign'/'admin' reserved for phase-2 cross-user assignment. + // reminders, recurring to-dos, categories/projects). 'use' granted to Staff + // so everyone gets their own tasks; 'assign' hands off your own tasks; + // 'reallocate' is the dispatcher power — see everyone's boards and move any + // task between people; 'settings' configures the shared status + // pipeline/categories; 'admin' (manage every field of every user's tasks) + // is still reserved, not built yet. await pool.query(` INSERT INTO apps (slug, name, description, base_path, icon, theme_color, category, internal_host, internal_port) VALUES ('tasks', 'Tasks', 'Personal task planner — lists, reminders and recurring to-dos', '/tasks', 'ListChecks', '#0d9488', 'Operations', '10.10.10.130', 3080) @@ -518,10 +522,11 @@ export async function initDb() { SELECT a.id, c.slug, c.name, c.description, c.sort_order FROM apps a CROSS JOIN (VALUES - ('use', 'Use Tasks', 'Create and manage your own lists and tasks', 1), - ('assign', 'Assign Tasks', 'Assign tasks to other users (phase 2)', 2), - ('admin', 'Manage All', 'View and manage every user''s tasks (phase 2)', 3), - ('settings', 'Settings', 'Configure tasks app settings', 4) + ('use', 'Use Tasks', 'Create and manage your own lists and tasks', 1), + ('assign', 'Assign Tasks', 'Hand off your own tasks to other users', 2), + ('reallocate', 'Reallocate Tasks', 'View every user''s board and move any task between people', 3), + ('admin', 'Manage All', 'View and manage every field of every user''s tasks (not yet built)', 4), + ('settings', 'Settings', 'Configure the shared status pipeline and categories', 5) ) AS c(slug, name, description, sort_order) WHERE a.slug = 'tasks' ON CONFLICT (app_id, slug) DO UPDATE SET