Skip to content

chore(release): promote dev to main - #1860

Merged
JOY (JOY) merged 4 commits into
mainfrom
dev
Nov 22, 2026
Merged

JOY (JOY) merged 4 commits into
mainfrom
dev

Conversation

@JOY

@JOY JOY (JOY) commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Promote dev to main.

Merge with a merge commit, never squash (Docs/Resources/RELEASE.md).


📌 TL;DR

Expands the Rate.vn browser extension's supported marketplace coverage from 10 to 22 Vietnamese retail chains by adding new host permissions, updating the content script detector with store-specific URL heuristics, and refreshing all localization strings and compliance documentation.

🎯 Type of Change

  • 🚀 New feature
  • 🐛 Bugfix
  • 🧹 Refactor
  • ⚡ Performance
  • 📚 Documentation
  • ⚙️ CI / Configuration

🔍 Changes Walkthrough

File Summary of Changes
apps/extension/CHROMEWEBSTORE.md Updates the Chrome Web Store listing description, privacy disclosure, and permission justification table to reflect the expansion from 10 to 22 supported stores. Clarifies that the opt-in observation feature remains restricted to the original 10 quarantine-enabled stores.
apps/extension/RELEASE.md Updates the release-readiness checklist to verify the new 36 host patterns across 22 stores. Adds a new checklist item for handling Chrome's host-permission upgrade prompt for existing users.
apps/extension/manifest.json Adds 24 new host_permissions entries (bare + subdomain patterns) for the 12 new retail chains. Updates the content_scripts matches array to include these new origins.
apps/extension/src/_locales/cs/messages.json Updates Czech localization strings to reflect "22 stores" instead of "10 stores" and expands the list of supported store names in the "no product" state.
apps/extension/src/_locales/en/messages.json Updates English localization strings to reflect "22 stores" instead of "10 stores" and expands the list of supported store names in the "no product" state.
apps/extension/src/_locales/vi/messages.json Updates Vietnamese localization strings to reflect "22 stores" instead of "10 stores" and expands the list of supported store names in the "no product" state.
apps/extension/src/background/service-worker.ts Refactors SUPPORTED_CROWD_PLATFORMS to use the shared EXTENSION_MARKETPLACES constant. Adds ALLOWED_EXTENSION_STORE_HOSTS map and isAllowedExtensionStoreHost validator to strictly enforce manifest permissions. Updates QUICK_QUERY_BARE_MARKETPLACE_DOMAINS with new domains.
apps/extension/src/extractors/ecommerce-detector.ts Splits the tgdd platform into distinct tgdd, dienmayxanh, and topzone platforms. Adds detection logic for 12 new stores. Significantly expands RETAIL_NON_PRODUCT_FIRST_SEGMENTS and adds store-specific regexes/sets (e.g., MEDIAMART_ALLOWED_CATEGORY_PREFIXES, HACOM_CATEGORY_BRAND_SLUG_REGEX) to accurately identify product pages vs. non-product pages on the new retail chains.

📊 Architectural Flow

flowchart TD
    A[User Visits Store Page] --> B{Content Script Injected?}
    B -->|No| Z[No Action]
    B -->|Yes| C[Detect Ecommerce Platform]
    C --> D{Is Platform Supported?}
    D -->|No| Z
    D -->|Yes| E[Extract Product Data]
    E --> F{Is Product Page?}
    F -->|No| Z
    F -->|Yes| G[Send Lookup Request to Rate.vn API]
    G --> H[Display Price History & Comparison in Side Panel]
    
    subgraph "New Store Support (12 Chains)"
        C2[New Hosts: GearVN, NguyenKim, ShopDunk, etc.] --> C
        E2[Store-Specific URL Heuristics] --> E
    end
    
    subgraph "Opt-in Observation (Restricted)"
        H --> I{User Opted In?}
        I -->|Yes| J{Is Store in Original 10?}
        J -->|Yes| K[Send Observation to Quarantine]
        J -->|No| L[Read-Only Lookup Only]
        I -->|No| L
    end
Loading

)

* fix(importer): reject --audit-only with --apply in backfill-specs

Fail closed in parseBackfillSpecsArgs, runBackfillSpecsCli, and
runQuickSpecSyncAndAudit when --audit-only is combined with --apply,
preserving the read-only --audit-only contract and preventing unscoped
flagship seed writes.

Refs #1854

* fix(importer): make runQuickSpecSyncAndAudit strictly read-only

Reject truthy apply, only, expect, expectInserts, and insertMissing
unconditionally at the entry of runQuickSpecSyncAndAudit and remove its
legacy unscoped master_products update loop so delegating callers such
as test-ai-enricher.ts --audit-only --apply also fail closed.

Refs #1854
* fix(importer): harden review jobs against NaN cap and proto keys

Closes #1853

* fix(importer): close review-gate path, overflow, and weight bounds
…1858)

* fix(importer): remove unsourced seed templates and tighten 1758 test

- Replace unsourced "6.0, A2DP, LE" Bluetooth text on iPhone 18 Pro,
  iPhone 18 Pro Max, and Galaxy S26 Ultra with sourced versions ("6"
  and "6.0") in flagship-seed-sourced-2026.ts and product-normalizer.ts
  (#1803 item 6).
- Replace unsourced 5G band labels on iPad Pro M5 and Apple Watch Ultra 3
  with official Apple NR band lists and field-level sources.
- Drop remaining unsourced Bluetooth profile strings, CE/FCC/QCVN
  certifications, and cross-category laptop camera and Wi-Fi-only
  cellular placeholders across flagship-seed-data.ts, recording every
  removed seed field in retract_spec_fields.
- Require field-level sources[path] in seed-template-values-1758.test.ts
  so group-level sources.<group> cannot mask template or placeholder
  values (#1855).

* fix(importer): address round 1 provenance and retraction review

- Replace unsourced certifications on the 3 canonical iPhone entries
  with sourced Apple Vietnam model identifiers (A3287, A3290, A3090)
  so canonicalMasterUpdate overwrites stale stored values (#1855).
- Replace AirPods Pro 2 USB-C Bluetooth codec string with sourced "5.3"
  citing Apple Tech Specs, and remove port/mic text from MacBook key
  camera specs.
- Broaden Bluetooth profile, QCVN, 5G band-pair, and mid-string
  non-cellular regexes in seed-template-values-1758.test.ts, extend
  checks to watches/earbuds, and verify 10-group + rear-camera audit
  invariants after retraction.
* feat(shared): add 12 Wave 1-3 retail platforms across monorepo

* fix(shared): harden Wave 1-3 URL, SQL, and MV3 parity

* fix(shared): address CodeRabbit review threads in web and extension

- Scope legacy tgdd- fallback lookups to the parsed retailer platform
  and prefer canonical tz-/dmx- IDs in inspect, extension lookup, and
  item-model resolution.
- Align non-An Phat URL slug bounds to 120 chars and An Phat externalId
  bounds to 128 chars across lookup route and OpenAPI spec.
- Exclude An Phat smartphone slugs and HACOM sub-series category paths
  while keeping laptop, tablet, smartwatch, and earbud listings.
- Harden DOM active-container price selectors and PicoPix title suffix
  boundaries, and clarify 22-store lookup vs 10-store observation scope.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
rate Ready Ready Preview Nov 22, 2026 12:36pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fe592f02-ba1b-4917-899f-7042b98c50b4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added area:frontend Frontend / Next.js / UI area:shared Shared packages / contracts / configs area:crawlers area:extension labels Nov 22, 2026
dos[bot]
dos Bot approved these changes Nov 22, 2026

@dos dos Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⏱️ Code Review completed (53 eligible files · 410,987 chars · 1 model call(s) · 14 PR unit(s))

Whole diff with bounded context at base 64bbf72 / head 56309d8.

✅ CLEAN_PASS: Complete diff reviewed

@JOY
JOY (JOY) merged commit f84b37f into main Nov 22, 2026
23 checks passed

This branch was successfully deployed

1 active deployment
Preview — 56309d8a Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:crawlers area:extension area:frontend Frontend / Next.js / UI area:shared Shared packages / contracts / configs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant