MCPcopy Create free account
hub / github.com/CopilotKit/OpenTag / accentForIssues

Function accentForIssues

app/components/_status.ts:58–65  ·  view source on GitHub ↗
(
  issues: ReadonlyArray<{ priority?: string }>,
)

Source from the content-addressed store, hash-verified

56
57/** Accent for a list: surface the hottest priority present, else Linear purple. */
58export function accentForIssues(
59 issues: ReadonlyArray<{ priority?: string }>,
60): string {
61 const prios = issues.map((i) => (i.priority ?? "").toLowerCase());
62 if (prios.some((p) => p.includes("urgent"))) return ACCENT.urgent;
63 if (prios.some((p) => p.includes("high"))) return ACCENT.high;
64 return ACCENT.linear;
65}

Callers 1

IssueListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected