feat(FN-3350): tokenize task detail danger/error styling
Fixes task detail modal danger/error styling by switching to token-based CSS variables for consistent theming across dark and light modes. Fusion-Task-Id: FN-3350
This commit is contained in:
@@ -709,6 +709,7 @@ function TaskCardComponent({
|
||||
|
||||
const isFailed = task.status === "failed";
|
||||
const isPaused = task.paused === true;
|
||||
const pausedByAgent = Boolean(task.paused && task.pausedByAgentId);
|
||||
const normalizedPriority = normalizeTaskPriorityValue(task.priority);
|
||||
const showPriorityBadge = normalizedPriority !== DEFAULT_TASK_PRIORITY;
|
||||
const isStuck = isTaskStuck(task, taskStuckTimeoutMs, lastFetchTimeMs);
|
||||
@@ -1315,7 +1316,7 @@ function TaskCardComponent({
|
||||
<span
|
||||
className="card-status-badge paused"
|
||||
>
|
||||
paused
|
||||
{pausedByAgent ? "paused by agent" : "paused"}
|
||||
</span>
|
||||
)}
|
||||
{!isPaused && task.status && task.status !== "queued" && (
|
||||
|
||||
Reference in New Issue
Block a user