Spaces:
Running
Running
Commit History
Customer list feature + quote/order import fixes 963ecb8
Fix combo card<->answer mismatch + smarter coherent combos: cards and answer now derive from the SAME single combo computation (comboByCriteria is randomized, calling it twice returned different combos -> mã mismatch); combo price per item + total written as digits matching card fmt exactly; no-budget combo picks now prefer same-brand across all items (20/20 same-brand in tests across bếp+hút, chậu+vòi, kệ combos) 1b0ee6f
Combo answer polish: combo label now uses requested category labels (e.g. 'Kệ xoong nồi + Kệ dao thớt') instead of raw DB category; buildComboAnswerText no longer depends on cross-file normalizeCategory (removes ReferenceError risk that silently disabled the override); verified end-to-end on real catalog — override produces correct, digit-based answer matching cards c438a3b
Fix combo text answer: client now overrides the AI prose with a CANONICAL combo answer built from the exact same items shown as cards (so answer always matches cards; mã + giá written as DIGITS, never Vietnamese words); serverItemFamily adds kệ xoong nồi / kệ dao thớt / khay chia / giá góc / thùng rác / giá gia vị so server combo_suggest returns correct accessory combos; stronger system prompt to echo tool product codes/prices verbatim and write numbers as digits 8aceab6
Combo match reliability: floating panel combo cards now always include 'Đổi combo' button + show exact user criteria (material/size/feature/color/brand/price) in heading; parseComboQuery now extracts 'tính năng' (feature); comboByCriteria treats material/color/feature as STRICT per-category (verified against product detail) with multi-brand/mixed fallback so combos genuinely satisfy the request; server combo_suggest tool accepts material/color/feature/sizes and filters server-side 73859dd
Text chat combo/context fix: server /api/chat now exposes query_catalog/show_product/combo_suggest tools grounded on real catalog (no more off-data answers, model re-queries on follow-ups and keeps history context); client retains last combo/product context and re-shows correct cards on follow-up turns (quotes/pronouns) 50a2263
ML Intern commited on
Quote/order PDF+image: use brand logo (quote_logo.png), dark text for khách hàng/địa chỉ/SĐT/ngày, remove mã đơn from BẢNG BÁO GIÁ title; floating panel: route ALL open paths (toggle, open_catalog, quick-consult) through renderDiversePanel so first open never shows stale khóa list 32d08a4
ML Intern commited on
Fix specs [object Object] in order PDF/image (flatten specs object); explicit text colors on tên/mã/sl/đơn giá/ghi chú; floating panel first-open always random diverse via renderDiversePanel 1115762
ML Intern commited on
Fix root-causes: Thành tiền recalc (undefined 'o' in CK apply), harden share fallback for báo giá, add no-cache headers so deploys take effect, order PDF/image now embeds logo + Excel-matching layout 3ec6043
ML Intern commited on
Order PDF/image match quote Excel layout (total banner + bank/QR footer); fix Thành tiền auto-recalc after CK; floating panel always shows fresh diverse random list on open 4ba869e
ML Intern commited on
Fix order image share fallback, order PDF color fidelity, consistent random lists 0655801
ML Intern commited on