From 6837e4f13931ac80c4cee87bb8e0f67b41cbfa03 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Apr 2026 11:07:34 -0300 Subject: [PATCH] feat: Add "Show other options" to surface nutritionally equivalent food alternatives (#10) * Initial plan * feat: Add 'Show other options' feature to find similar foods by category and bestFor Agent-Logs-Url: https://github.com/RMCampos/calories-tracker/sessions/00437e19-3c33-48b4-8d15-f29ac843a20f Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com> * fix: Address code review issues - string type, dedup logic, HTML escaping Agent-Logs-Url: https://github.com/RMCampos/calories-tracker/sessions/00437e19-3c33-48b4-8d15-f29ac843a20f Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com> * fix: Add full HTML escaping including quotes in alternatives display Agent-Logs-Url: https://github.com/RMCampos/calories-tracker/sessions/00437e19-3c33-48b4-8d15-f29ac843a20f Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com> * feat: improve food options by food type --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: RMCampos <2219519+RMCampos@users.noreply.github.com> Co-authored-by: Ricardo Campos --- index.html | 15 ++++ src/foodDatabase.ts | 15 ++-- src/index.ts | 165 ++++++++++++++++++++++++++++++++++++++++++++ style.css | 54 +++++++++++++++ 4 files changed, 242 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 65a673a..4953288 100644 --- a/index.html +++ b/index.html @@ -298,6 +298,21 @@ +
+ +
+ + + +