Skip to content

feat(demo): mixture mode (n-ingredient hazard screen) + typeahead - #67

Merged
rvnminers-A-and-N merged 1 commit into
mainfrom
feat/demo-mixtures-typeahead
Jun 30, 2026
Merged

rvnminers-A-and-N merged 1 commit into
mainfrom
feat/demo-mixtures-typeahead

Conversation

@rvnminers-A-and-N

Copy link
Copy Markdown
Collaborator

The last two demo asks.

Mixture mode

A toggle opens a multi-ingredient panel: starts with 2 rows, "+ add ingredient", remove per row, process checkboxes (high heat / refining / fermentation), and Check mixture. Calls a new /api/mixturepredict.check_mixture(), rendering active hazards and process-conditional ones (benzene, nitrosamine, ethyl carbamate, acrylamide, furan, …). This surfaces the formulation-level screen that was built but never exposed.

Typeahead

/api/suggest over the curated flavor_volatiles list; the input's <datalist> fills as you type (van → vanillin, ethyl vanillin).

Verified live: benzoate+ascorbate → ⚠ benzene (active) + furan (conditional on high heat); nitrite + secondary amine → ⚠ N-nitrosamines; suggest works.

- Mixture mode: a toggle opens a multi-ingredient panel (start with 2 rows, "+ add
  ingredient", remove per row) plus process checkboxes (high heat / refining /
  fermentation) and a "Check mixture" button. It calls a new /api/mixture endpoint
  -> predict.check_mixture(), rendering active hazards and process-conditional ones
  (benzene, nitrosamine, ethyl carbamate, acrylamide, furan, ...). Surfaces the
  formulation-level feature that was built but never exposed in the UI.
- Typeahead: /api/suggest over the curated flavor_volatiles list; the input's datalist
  fills as you type (van -> vanillin, ...).

Verified: benzoate+ascorbate -> benzene (active) + furan (conditional); nitrite+amine
-> nitrosamine; suggest 'van' -> vanillin / ethyl vanillin.

Signed-off-by: Austin L. <86896075+rvnminers-A-and-N@users.noreply.github.com>
@rvnminers-A-and-N
rvnminers-A-and-N merged commit 7bc5a10 into main Jun 30, 2026
3 checks passed
@rvnminers-A-and-N
rvnminers-A-and-N deleted the feat/demo-mixtures-typeahead branch June 30, 2026 18:06
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