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 <ricardompcampos@gmail.com>
This commit is contained in:
+15
@@ -298,6 +298,21 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group checkbox-group">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" id="enableAlternatives" class="ai-checkbox">
|
||||
<span>Show other options</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<!-- Alternatives Container -->
|
||||
<div class="display-none" id="alternatives-container">
|
||||
<div class="alternatives-list-container">
|
||||
<h3 class="alternatives-title">Similar Food Options</h3>
|
||||
<div id="alternatives-list"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group checkbox-group">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" id="enableAINutrition" class="ai-checkbox">
|
||||
|
||||
Reference in New Issue
Block a user