Replace free-text encounter method input with dropdown selector

Use the predefined METHOD_ORDER/METHOD_CONFIG from EncounterMethodBadge
to populate a select dropdown with all known encounter methods plus an
"Other" option for custom values. Shows a colored badge preview on
selection. Correctly handles editing encounters with non-standard methods.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 20:19:16 +01:00
parent fb3b003a6d
commit c3bbd365a9
4 changed files with 68 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
const METHOD_CONFIG: Record<string, { label: string; color: string }> = {
export const METHOD_CONFIG: Record<string, { label: string; color: string }> = {
starter: {
label: 'Starter',
color: