Preparing search index...

    Single editable ingredient row. Commits via the provided callbacks on blur only — no per-keystroke writes. The caller wires the commit callbacks to a per-row form controller so a row edit never re-renders sibling rows.

    interface IngredientRowProps {
        testID: string;
        index: number;
        ingredient: ingredientTableElement | Partial<ingredientTableElement>;
        availableIngredients: string[];
        rowError?: string;
        onCommit: (formatted: string) => void;
        onLiveNameChange?: (name: string) => void;
        onSelectName?: (name: string) => void;
        onRemove: () => void;
        onMoveUp?: () => void;
        onMoveDown?: () => void;
        onOpenNote: () => void;
        onFocus?: () => void;
        onBlur?: () => void;
    }
    Index
    testID: string
    index: number
    availableIngredients: string[]
    rowError?: string
    onCommit: (formatted: string) => void

    Single commit callback fired with the row's formatted ingredient string after the user blurs an input or saves the note dialog. The caller is responsible for parsing the string back into per-field commits.

    onLiveNameChange?: (name: string) => void

    Live-commit callback fired on every keystroke in the name input. Wired to the column controller's field.onChange so RHF stays in sync with what the user is typing without waiting for blur. Optional — consumers that only need the validation-queue commit semantics can rely on onCommit.

    onSelectName?: (name: string) => void

    Fired when the user picks an ingredient from the name autocomplete dropdown. Distinct from onCommit: the selection must always re-resolve the row against the database (id / type / season), even when the name already matches what live-commit wrote — so the consumer forces a fresh validation pass rather than short-circuiting on an unchanged name.

    onRemove: () => void
    onMoveUp?: () => void

    Moves the row one position up; omitted on the first row, which disables the menu item.

    onMoveDown?: () => void

    Moves the row one position down; omitted on the last row, which disables the menu item. With both move handlers omitted (single row), the move items are hidden.

    onOpenNote: () => void
    onFocus?: () => void

    Optional focus handler called when any row input gains focus.

    onBlur?: () => void

    Optional blur handler called when any row input loses focus.