Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(priority): give High its own color so it reads apart from Medium (#9410)
Bernardo Sader001e95794bc1
diff --git a/apps/mobile/components/ui/priority-icon.tsx b/apps/mobile/components/ui/priority-icon.tsxindex edc6e42fbe..8c97599a5d 100644--- a/apps/mobile/components/ui/priority-icon.tsx+++ b/apps/mobile/components/ui/priority-icon.tsx@@ -25,7 +25,7 @@ const BARS: Record<IssuePriority, number> = {// Mirrors PRIORITY_CONFIG.color in packages/core/issues/config/priority.ts.const COLOR: Record<IssuePriority, string> = {urgent: "#dc2626", // destructive- high: "#eab308", // warning+ high: "#f97316", // priority-highmedium: "#eab308", // warninglow: "#3b82f6", // infonone: "#71717a", // muted-foregrounddiff --git a/apps/mobile/components/ui/project-priority-icon.tsx b/apps/mobile/components/ui/project-priority-icon.tsxindex df2a789205..b8327b89c0 100644--- a/apps/mobile/components/ui/project-priority-icon.tsx+++ b/apps/mobile/components/ui/project-priority-icon.tsx@@ -12,7 +12,7 @@ import { projectPriorityBars } from "@/lib/project-status";const COLOR: Record<ProjectPriority, string> = {urgent: "#dc2626",- high: "#eab308",+ high: "#f97316",medium: "#eab308",low: "#3b82f6",none: "#71717a",diff --git a/apps/web/app/custom.css b/apps/web/app/custom.cssindex 7ba66de96d..ae2441bf4c 100644--- a/apps/web/app/custom.css+++ b/apps/web/app/custom.css@@ -67,6 +67,7 @@--success: oklch(0.55 0.16 145);--warning: oklch(0.75 0.16 85);--info: oklch(0.55 0.18 250);+ --priority-high: oklch(0.68 0.18 50);--scrollbar-thumb: oklch(0 0 0 / 10%);--scrollbar-thumb-hover: oklch(0 0 0 / 18%);--scrollbar-track: transparent;diff --git a/packages/core/issues/config/priority.ts b/packages/core/issues/config/priority.tsindex 12538b911a..f0b5910bcf 100644--- a/packages/core/issues/config/priority.ts+++ b/packages/core/issues/config/priority.ts@@ -34,7 +34,7 @@ export const PRIORITY_CONFIG: Record<{ label: string; bars: number; color: string; badgeBg: string; badgeText: string }> = {urgent: { label: "Urgent", bars: 4, color: "text-destructive", badgeBg: "bg-destructive/10", badgeText: "text-destructive" },- high: { label: "High", bars: 3, color: "text-warning", badgeBg: "bg-warning/10", badgeText: "text-warning" },+ high: { label: "High", bars: 3, color: "text-priority-high", badgeBg: "bg-priority-high/10", badgeText: "text-priority-high" },medium: { label: "Medium", bars: 2, color: "text-warning", badgeBg: "bg-warning/10", badgeText: "text-warning" },low: { label: "Low", bars: 1, color: "text-info", badgeBg: "bg-info/10", badgeText: "text-info" },none: { label: "No priority", bars: 0, color: "text-muted-foreground", badgeBg: "bg-muted", badgeText: "text-muted-foreground" },diff --git a/packages/core/projects/config.ts b/packages/core/projects/config.tsindex d4b93b9f7b..212dd740f0 100644--- a/packages/core/projects/config.ts+++ b/packages/core/projects/config.ts@@ -32,7 +32,7 @@ export const PROJECT_PRIORITY_CONFIG: Record<{ label: string; bars: number; color: string; badgeBg: string; badgeText: string }> = {urgent: { label: "Urgent", bars: 4, color: "text-destructive", badgeBg: "bg-destructive/10", badgeText: "text-destructive" },- high: { label: "High", bars: 3, color: "text-warning", badgeBg: "bg-warning/10", badgeText: "text-warning" },+ high: { label: "High", bars: 3, color: "text-priority-high", badgeBg: "bg-priority-high/10", badgeText: "text-priority-high" },medium: { label: "Medium", bars: 2, color: "text-warning", badgeBg: "bg-warning/10", badgeText: "text-warning" },low: { label: "Low", bars: 1, color: "text-info", badgeBg: "bg-info/10", badgeText: "text-info" },none: { label: "No priority", bars: 0, color: "text-muted-foreground", badgeBg: "bg-muted", badgeText: "text-muted-foreground" },diff --git a/packages/ui/styles/tokens.css b/packages/ui/styles/tokens.cssindex a6c4405892..66579cae9e 100644--- a/packages/ui/styles/tokens.css+++ b/packages/ui/styles/tokens.css@@ -34,6 +34,7 @@--color-success: var(--success);--color-warning: var(--warning);--color-info: var(--info);+ --color-priority-high: var(--priority-high);--color-brand: var(--brand);--color-brand-foreground: var(--brand-foreground);--color-accent-foreground: var(--accent-foreground);@@ -241,6 +242,8 @@--success: oklch(0.55 0.16 145);--warning: oklch(0.75 0.16 85);--info: oklch(0.55 0.18 250);+ /* High priority sits between --destructive (urgent) and --warning (medium). */+ --priority-high: oklch(0.68 0.18 50);--scrollbar-thumb: oklch(0 0 0 / 10%);--scrollbar-thumb-hover: oklch(0 0 0 / 18%);--scrollbar-track: transparent;@@ -314,6 +317,7 @@--success: oklch(0.65 0.15 145);--warning: oklch(0.70 0.16 85);--info: oklch(0.65 0.18 250);+ --priority-high: oklch(0.72 0.17 50);--scrollbar-thumb: oklch(1 0 0 / 8%);--scrollbar-thumb-hover: oklch(1 0 0 / 18%);--scrollbar-track: transparent;diff --git a/packages/views/issues/components/issues-cold-load-loop.test.tsx b/packages/views/issues/components/issues-cold-load-loop.test.tsxindex 074c0f65b6..52f5018c8d 100644--- a/packages/views/issues/components/issues-cold-load-loop.test.tsx+++ b/packages/views/issues/components/issues-cold-load-loop.test.tsx@@ -110,7 +110,7 @@ vi.mock("@multica/core/issues/config", () => ({PRIORITY_DISPLAY_ORDER: ["none", "urgent", "high", "medium", "low"],PRIORITY_CONFIG: {urgent: { label: "Urgent", bars: 4, color: "text-destructive" },- high: { label: "High", bars: 3, color: "text-warning" },+ high: { label: "High", bars: 3, color: "text-priority-high" },medium: { label: "Medium", bars: 2, color: "text-warning" },low: { label: "Low", bars: 1, color: "text-info" },none: { label: "No priority", bars: 0, color: "text-muted-foreground" },