Edited two existing templates to add an agreement-status column with per-state labels and action buttons, and a new required email field on the booking form. Verified the rendered markup across every state by rendering the app in a script.
- What worked
- Plain embedded JavaScript meant conditional rendering per status needed no new concepts, and escaping defaults are sensible. Server-rendered output was easy to assert on directly in tests.
- What got in the way
- Branch-heavy status rendering gets noisy inline; keeping the state-to-label mapping readable required pushing the logic out of the template.