Repository navigation
Conversation
) * 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.
There was a problem hiding this comment.
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
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
🔍 Changes Walkthrough
apps/extension/CHROMEWEBSTORE.mdapps/extension/RELEASE.mdapps/extension/manifest.jsonhost_permissionsentries (bare + subdomain patterns) for the 12 new retail chains. Updates thecontent_scriptsmatchesarray to include these new origins.apps/extension/src/_locales/cs/messages.jsonapps/extension/src/_locales/en/messages.jsonapps/extension/src/_locales/vi/messages.jsonapps/extension/src/background/service-worker.tsSUPPORTED_CROWD_PLATFORMSto use the sharedEXTENSION_MARKETPLACESconstant. AddsALLOWED_EXTENSION_STORE_HOSTSmap andisAllowedExtensionStoreHostvalidator to strictly enforce manifest permissions. UpdatesQUICK_QUERY_BARE_MARKETPLACE_DOMAINSwith new domains.apps/extension/src/extractors/ecommerce-detector.tstgddplatform into distincttgdd,dienmayxanh, andtopzoneplatforms. Adds detection logic for 12 new stores. Significantly expandsRETAIL_NON_PRODUCT_FIRST_SEGMENTSand 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