Skip to content

fix(equipment): show HLT + mash-tun for default (unset) mash mode - #57

Merged
ndreno merged 1 commit into
mainfrom
fix/equipment-default-mash-mode-sections
Jun 17, 2026
Merged

fix(equipment): show HLT + mash-tun for default (unset) mash mode#57
ndreno merged 1 commit into
mainfrom
fix/equipment-default-mash-mode-sections

Conversation

@ndreno

@ndreno ndreno commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Fixes the red e2e on main (Equipment — BIAB mash mode › mash thickness persists across navigation).

Cause: the single-vessel work (#47) changed the HLT/mash-tun visibility guards to mash_mode === "classic". But mash_mode is optional and is undefined on a fresh profile (the dropdown only displays "classic" via ?? "classic"). undefined === "classic" is false, so both sections — including the mash-thickness field the e2e drives — disappeared for any profile that hadn't explicitly set the mode.

Fix: guard on mash_mode !== "biab" && mash_mode !== "single_vessel" so the default (unset) and explicit "classic" both show the vessels; biab + single_vessel still hide them.

Unit suite (360) + lint green locally; the e2e that failed exercises exactly this path.

The single-vessel work (#47) changed the HLT/mash-tun section guards to
`mash_mode === "classic"`, but mash_mode is optional and is undefined on
fresh profiles (the dropdown shows 'classic' via `?? "classic"`). undefined
=== "classic" is false, so the sections — including the mash-thickness field —
vanished for any profile that hadn't explicitly set the mode. Guard on
`!== "biab" && !== "single_vessel"` instead so the default shows them. Fixes the
red 'mash thickness persists' e2e on main.
@ndreno
ndreno merged commit 72e89bd into main Jun 17, 2026
1 check passed
@ndreno
ndreno deleted the fix/equipment-default-mash-mode-sections branch June 17, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant