fix: recent-product ring rows now reach the field + hide 'mới' row during queries

#6
by bep40 - opened

Two bugs fixed:

  1. TL869IMAX and other newly added products never appeared in the neon front row on page entry — the delivered round-5 bundle had an ordering bug: o.unshift(...s) (interiors copied to output) ran BEFORE recentProducts were unshifted into s, so by the time the recent products were added to s, the output o had already been built from s. The recent products never reached the field. The fixed bundle now builds the recentProducts ring list FIRST, prepends it into fresh, then unshifts once.

  2. Product searches still showed the neon 'mới' interior row — while query is non-empty, the newest-interiors ring row is now hidden entirely, so searching "eurogold", "kệ xoong nồi", "máy hút mùi" returns ONLY product/interior hits that match, no decoration row.

Files:

  • dist/assets/index.js (minified bundle, fixed qe ordering + query gate)
  • src/merge.js (source mirror of the same logic for future rebuilds)
bep40 changed pull request status to open
bep40 changed pull request status to merged

Sign up or log in to comment