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

Function stateGlyph

app/components/_status.ts:8–16  ·  view source on GitHub ↗
(state?: string)

Source from the content-addressed store, hash-verified

6
7/** Unicode glyph for a Linear workflow-state name. */
8export function stateGlyph(state?: string): string {
9 const s = (state ?? "").toLowerCase();
10 if (s.includes("done") || s.includes("complete")) return "✅";
11 if (s.includes("progress") || s.includes("started")) return "🔵";
12 if (s.includes("review")) return "🟣";
13 if (s.includes("cancel")) return "🚫";
14 if (s.includes("backlog")) return "⚪";
15 return "🟠";
16}
17
18/** Unicode glyph for a Linear priority label, or "" for none/unknown. */
19export function priorityGlyph(priority?: string): string {

Callers 2

IssueListFunction · 0.85
IssueCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected