From 14e2f73db98d77104423f8b56017df3e75e507c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Mon, 15 Jun 2026 21:36:37 -0600 Subject: [PATCH] Carousel: random sample (reshuffles per open), dedup vs consultant, broken-image fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 /