From 48bdbb362ece294d5dbe47c0049944fa036fa08a Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sun, 8 Feb 2026 19:04:10 -0800 Subject: [PATCH] Remove task categories from portal, fix HUD color logic - Remove Task Categories section from Task Admin page (deprecated) - Simplify HUD getCategoryColor() to use TaskTypeColor directly Co-Authored-By: Claude Opus 4.5 --- hud/hud.js | 9 +++------ portal/index.html | 14 -------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/hud/hud.js b/hud/hud.js index 93c7fd1..3059e5f 100644 --- a/hud/hud.js +++ b/hud/hud.js @@ -248,15 +248,12 @@ const HUD = { return this.categories[task?.TaskCategoryID]?.name || 'Task'; }, - // Get category/task type color - prefer task type color for service bell tasks + // Get task type color from tt_TaskTypes getCategoryColor(task) { - if (task && task.TaskTypeColor && task.TaskTypeColor.length > 0 && task.TaskTypeColor !== '#9C27B0') { + if (task && task.TaskTypeColor && task.TaskTypeColor.length > 0) { return task.TaskTypeColor; } - if (task && task.Color && task.Color !== '#888888') { - return task.Color; - } - return this.categories[task?.TaskCategoryID]?.color || '#888888'; + return '#9C27B0'; // Default purple }, // Handle bar press (start long press timer) diff --git a/portal/index.html b/portal/index.html index 1adfec5..65bde5c 100644 --- a/portal/index.html +++ b/portal/index.html @@ -520,20 +520,6 @@
- -
-
-

Task Categories

- -
-
-

Categories organize tasks and assign colors. Every task needs a category.

-
-
Loading...
-
-
-
-