Add reallocate cap description, update assign/admin/settings wording for tasks app

Reflects the new tasks-app permission tiers (use/assign/reallocate/admin) —
descriptions were still saying "phase 2" for features that now exist.
This commit is contained in:
jtricerolph 2026-09-17 08:06:34 +00:00
parent 0574ceddb0
commit f756a600b1

View file

@ -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