Files
smartmenu-collina/src
Jorem Juárez 14e2f73db9 Carousel: random sample (reshuffles per open), dedup vs consultant, broken-image fallback
1) getRecommendations is now a RANDOM sample of the whole active menu, lightly
   refined by complement rules (a +0.25 nudge toward wanted categories that can't
   beat a strong random draw — variety dominates, all sections surface). New
   opts.seed re-randomizes per open; opts.excludeIds filters extra ids. Signature
   and the CoOccurrence Phase-2 seam are unchanged. Never returns empty unless the
   whole menu is excluded.
2) PublicMenu passes a buildSuggestions(seed, excludeIds) callback instead of a
   memoized list. OrderPanel and AiConsultant each seed on mount (Date.now()), so
   reopening reshuffles. The consultant excludes the dishes it already showed above
   (answer.recommendations resolved to ids) → no more carousel/answer duplicates
   (fixes the Combo Aguacate dup).
3) MediaThumb adds onError on <img>/<video> → a 404/broken file falls back to the
   🍽️ icon, same as missing media.

Verified: build passes; reopening yields a different sample (same seed stable);
sample spans all sections; consultant picks + cart items excluded; never empty.
2026-06-15 21:36:37 -06:00
..
2026-06-15 20:48:14 -06:00