| 6 | |
| 7 | /** Unicode glyph for a Linear workflow-state name. */ |
| 8 | export 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. */ |
| 19 | export function priorityGlyph(priority?: string): string { |