vai-avatar2 / src /app.js

Commit History

Customer list feature + quote/order import fixes
963ecb8

bep40 commited on

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

bep40 commited on

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

bep40 commited on

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

bep40 commited on

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

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 floating catalog button stability/speed; order image/pdf use 100% quote-excel layout; full CK features in order detail modal; delivery excel/pdf drop price cols + add note col
4d7f69b

bep40 commited on

v20: FIX ROOT CAUSE: Tu van nhanh generic query no longer shows khoa-dien-tu wall; buildSuggestionCards routes generic queries to DIVERSE cards
729579f
verified

bep40 commited on

v19: hard diversity guard — initial list can NEVER fall back to a khóa-only slice; per-family cap in getDiverseProducts + fresh cache-bust + rebuild trigger
f8756e5
verified

bep40 commited on

v16: restore Malloca combo greeting; Demax detail fix (dict gallery); random category float list
f4fc9f6
verified

bep40 commited on

v15: greeting shows diverse random product cards (no fixed khóa cửa default); add getDiverseProducts + getGreetingSuggestions
acb144a
verified

bep40 commited on

v14: fix doc to khi mute (unlock audio ctx), combo tra loi ngan gon du ma sp, them ma/model len card SP, system prompt ngan gon
248ff03
verified

bep40 commited on

v13: mute mặc định text chat (bỏ TTS khi mute), nút Hỏi AI mỗi card SP, combo kèm mô tả chi tiết 2 SP, khôi phục HOT keywords + tin HOT ở câu chào
b5b187e
verified

bep40 commited on

Upload folder using huggingface_hub
077b532
verified

bep40 commited on

Upload folder using huggingface_hub
3455495
verified

bep40 commited on

Upload folder using huggingface_hub
bd46db0
verified

bep40 commited on

Upload folder using huggingface_hub
64fcf00
verified

bep40 commited on

Upload folder using huggingface_hub
d48baac
verified

bep40 commited on

Upload folder using huggingface_hub
ff570e6
verified

bep40 commited on

Upload folder using huggingface_hub
cc1f814
verified

bep40 commited on

Upload folder using huggingface_hub
21af1d7
verified

bep40 commited on

UI chat: card SP gợi ý mỗi câu trả lời, combo ở câu chào, typing indicator, bỏ **, canh giữa background logo
9884e71
verified

bep40 commited on

Đưa nút gợi ý, HOT, hỏi AI SP/tin, combo SP đi qua model google/gemma-4-31B-it
9c44d52
verified

bep40 commited on

Text chat + tư vấn nhanh dùng google/gemma-4-31B-it qua HF Inference
19ba483
verified

bep40 commited on

Extend combo categories (kệ xoong nồi/chén dĩa/dao thớt, giá góc, thùng rác, giá gia vị, khóa cửa) + strict per-category size(mm) filtering + improved multi-term & size search ranking
b63855e
verified

bep40 commited on

Extend combo categories (lo nuong, lo vi song, noi chien, may rua chen, may ep/xay) + confirm total-budget pricing & combo tool docs
a889713
verified

bep40 commited on

Distinct context-aware HOT news: single greeting list + different topical list after each answer
8c4d2a1
verified

bep40 commited on

Remove duplicate greeting HOT list; 20 distinct HOT keywords; context-aware distinct news after each answer
0949d2e
verified

bep40 commited on

Fix combo: total-budget (sum of items) price + Vietnamese money units (triệu đồng, chục triệu, trăm nghìn, tỷ, word numbers)
c1013cc
verified

bep40 commited on

Restore to commit 1ab9196 (100% content restore)
18b395a
verified

bep40 commited on

Combo total-budget + VN money units; greeting HOT news: 10 distinct keywords (no duplicates); context-aware non-repeating news after each answer
d2fa60f
verified

bep40 commited on

Add Tu van nhanh (quick consult, no avatar) + combo search 2+ products
4818204
verified

bep40 commited on

v12: deferred avatar (modal first) + Lisamy->Sohee voice + reliability instructions
860e8b8
verified

bep40 commited on

v8: avatar now understands VN via authoritative browser STT (backend audio off) + auto subtitles on in voice
7e3f7a3
verified

bep40 commited on

v7: price color fix + V.AISTUDIO order backend sync + browser VN STT + subtitles default on
04235c0
verified

bep40 commited on

v6: editable SL+ghi chú in order detail modal, strict VN subtitle STT (no en-US fallback)
312db20
verified

bep40 commited on

Voice+order fixes: subtitles default ON, VN STT user-subtitles, order detail columns, phiếu giao = V.AISTUDIO
5e1c4e8
verified

bep40 commited on

Fix: news card image/AI mismatch + per-news contextual questions + robust cart/quote export (images+layout)
5726d8e
verified

bep40 commited on

Remove duplicate welcome handlers; step2 wizard handles apply+start
dd6026e
verified

bep40 commited on

Welcome wizard: step1 pick char -> step2 mode+voice
4b7d925
verified

bep40 commited on

Round4b: bugfix cart/quote open, floating cart FAB, Excel/PDF/Luu/Don-hang buttons, Mr V/Lisamy character selector with voice
f7d68e5
verified

bep40 commited on

Round4: cart+quote modals, add-to-cart buttons, Ask-AI on news cards, topic-contextual suggestions src/app.js
bc8bc57
verified

bep40 commited on

Upload src/app.js with huggingface_hub
ec3569c
verified

bep40 commited on