#1121 — Convert free-text field to enum (low / medium / critical)

Repo: Twill-AI/facade State: closed | Status: done Assignee: meliascosta

Created: 2026-03-13 · Updated: 2026-03-19

Description

Context

Mike defined three priority levels (low / medium / critical) for tickets. The backend currently stores priority as a free-text field — needs to become a structured enum so the frontend can render it consistently.

Raymond is excluding priority from the frontend until the backend field is structured.


Requirements

  1. Convert the priority field from free-text to an enum with values: low, medium, high
  2. Add validation to reject values outside the enum
  3. Migrate existing free-text priority values to the new enum (map current values or set a default)
  4. Ensure API responses return the enum value consistently

AC

  • Priority field is an enum (low / medium / high) in the database schema
  • API validates and rejects non-enum values
  • Existing records migrated to enum values
  • Frontend can consume structured priority values (unblocks Raymond)

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets