You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): compare and product page show invented values for unknown specs #1193
mm_speaker defaults to "stereo" (valDefaultStereo).
conn_usb_gps defaults to "USB Type-C".
avail_announced defaults to "Đang mở bán chính hãng" (valDefaultAvailable).
reg_cert defaults to "Đạt chuẩn hợp quy Bộ TT&TT Việt Nam" (valDefaultRegulatory).
Product page (apps/web/src/lib/product-spec-rows.ts): the 5G row prints "No" when neither specifications.cellular.has_5g nor has_5g is known, and the commercial status row defaults to "Đang kinh doanh" (availableStatus).
This is user-facing misinformation: a buyer reads a fact the catalogue does not have.
Fix
An unknown value is empty and follows #1186's rules:
the product page hides the row, and the group when no row is left;
compare shows "-" only where another column has a value, and hides the row when every column is empty.
Acceptance
No invented value for an unknown spec in compare or on the product page.
Known values are unchanged (a stored has_5g: false still reads "No").
Activity
fix(web): show unknown specs as empty instead of invented values (#1199)