(priority?: string)
| 17 | |
| 18 | /** Unicode glyph for a Linear priority label, or "" for none/unknown. */ |
| 19 | export function priorityGlyph(priority?: string): string { |
| 20 | const p = (priority ?? "").toLowerCase(); |
| 21 | if (p.includes("urgent")) return "🚨"; |
| 22 | if (p.includes("high")) return "🔴"; |
| 23 | if (p.includes("medium")) return "🟠"; |
| 24 | if (p.includes("low")) return "⚪"; |
| 25 | return ""; |
| 26 | } |
| 27 | |
| 28 | /** Brand + semantic accent colors for the attachment left-border. */ |
| 29 | export const ACCENT = { |