import type { Verdict } from '@/types'

/**
 * Verdict presentation, in one place. Colour is never the only signal — each
 * verdict also carries a glyph and a word, so the list stays readable in a
 * screenshot, on a phone in sunlight, and to anyone who doesn't separate red
 * from green (DESIGN.md).
 */
export const VERDICTS: { key: Verdict; label: string; glyph: string; color: string; hotkey: string }[] = [
  { key: 'go',      label: 'Go',      glyph: '✓', color: 'var(--color-ready)',    hotkey: 'g' },
  { key: 'maybe',   label: 'Maybe',   glyph: '~', color: 'var(--color-wip)',      hotkey: 'm' },
  { key: 'nogo',    label: 'No-go',   glyph: '✕', color: 'var(--color-blocked)',  hotkey: 'n' },
  { key: 'pending', label: 'Pending', glyph: '·', color: 'var(--color-ink-faint)', hotkey: '0' },
]

export const verdictMeta = (v: Verdict | undefined) =>
  VERDICTS.find((x) => x.key === (v ?? 'pending'))!
