Skip to content

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

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

JOY (JOY) merged 24 commits into
mainfrom
dev

Conversation

@JOY

Copy link
Copy Markdown
Contributor

Promote dev to main.

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

JOY (JOY) and others added 24 commits November 21, 2026 22:56
…1814)

* fix(importer): let the scoped spec backfill reach canonical masters

`--only` now accepts keys from CANONICAL_BACKFILL_SPECS_BY_MODEL_KEY as
well as seed keys. A named canonical master is read by model_key,
planned, diffed and counted by --expect like a seed, and written with
the same payload as the unscoped run (shared canonicalMasterUpdate). A
scoped run still reads no other canonical or AI master and no Item. A
canonical key with no master row is never inserted: it stops an
--apply (even with --insert-missing) before any write, and a dry run
warns. A key that is neither a seed nor canonical still fails before
any read.

Closes #1804

* test(importer): pin canonical scope guards and unscoped canonical payload

Review round 1 of #1814: the scoped canonical path refuses a row with no
usable id before any write; tests cover an unnamed canonical master,
a canonical problem blocking named seeds, a lookup error, repeated keys
and the unscoped canonical payload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1806)

* chore(ops): add po:antigravity runtime to claim-lock and PO config

Register antigravity (po:antigravity) in PO_TOOLS alongside claude and qwen
so board.mjs stamps po:antigravity on claim and enforces 3-way mutual
exclusion across PO lines, while keeping claude as the sole dev -> main
promoter in promote.mjs.

Update docs/product-owner-config.md (po_labels, agent_model Antigravity
mapping, cc-po 2.18.0 heartbeat and context compaction keys), AGENTS.md,
and .claude/skills/product-owner/SKILL.md.

Closes #1805

* chore(ops): address round-1 review on po:antigravity docs and labels

Add po:antigravity preset to .github/labels.yml and Claimant example to
.github/pull_request_template.md, qualify per-line Antigravity check-in file
names in AGENTS.md and SKILL.md, and align multi-runtime wording in SKILL.md
and board.mjs JSDoc.

Refs #1805
…nders (#1815)

* fix(extension): clear stale spa state and validate message senders (#1809)

* fix(extension): harden exact-origin sender checks and spa debounce races (#1809)
…talog reads (#1816)

* fix(web): group item variants before home battles and deals, cache catalog reads

- Group homepage catalog rows by Item before building popular 1v1
  battles so storage variants of the same Item never pair and battle
  URLs use canonical Item slugs.
- Apply groupCatalogRowsByItem on /deals consistently with category
  pages under RATE_ITEM_MODEL.
- Switch uncached getMasterProducts calls on / and /contact-us to
  getCachedMasterProducts so rate:products tag invalidation applies.
- Add unit tests in home-deals-item-grouping.test.ts.

Closes #1808

* fix(web): keep per-variant deal spread and guard home battle versus slugs

- Preserve the standing variant max_price on Item-grouped /deals rows
  so spreadSavingsVnd reflects cross-platform savings rather than
  cross-capacity price deltas.
- Guard homepage 1v1 battles with versusHref, itemSlugFromProductAnswer,
  and isParseableVersusPair, skipping -vs- slugs and side collisions.
- Expand home-deals-item-grouping.test.ts for review round 1 findings.
* fix(web): serve dotted merchant, product, and versus slugs

Route single-segment dotted dynamic paths under /merchants/:id,
/compare/:versus, and /:category/:slug (with or without /vi, /en, /cs)
through proxy.ts with per-request CSP nonces instead of rewriting them
to /vi/__not-found or applying the static non-page CSP header.

Closes #1807

* fix(web): align proxy matcher case-sensitivity and slug tokens

Match mixed-case prefixes in proxy.ts config.matcher to stay in exact
lockstep with routes-manifest.json caseSensitive: false, and restrict
dotted dynamic page segments to valid slug characters so malformed or
percent-encoded dotted probes fall through to /vi/__not-found.

Refs #1807

* chore(web): merge origin/dev into fix/1807-dotted-slugs
…ers (#1818)

* fix(web): suppress discount verdicts on unavailable or bait-price offers

Guard HeroSearchInspector discountAnalysis against unavailable and
bait offers, exclude unavailable/bait offer prices in DeepInspect,
and require orig > current in Markdown price lines. Refs #1810.

* fix(web): harden 1-2 offer bait, unavailable verdict, and orig guards

Suppress top-level DeepInspect verdicts on unavailable/unpriced offers,
guard Offers Table and CSV price_original with orig > current, catch
sub-floor 1-2 offer bait and stale min_price, and speed up offer sort.
Refs #1810.
…1823)

* fix(shared-data): guard prototype keys and lone surrogates (#1813)

* fix(shared-data): harden spec-template malformed runtime inputs (#1813)
…en radar UI (#1824)

* fix(extension): prevent surrogate URIError, sync v2 consent, and harden radar UI

Closes #1812

* fix(extension): serialize settings writes and harden consent/radar edge cases
…#1825)

* fix(web): resolve item slugs in reviews api and harden route handlers

Refs #1811

* fix(web): drop item-size static params and dedupe leaderboard items

Refs #1811
… JSON-LD (#1827)

* fix(web): group Item peers on product detail and preserve ImageObject JSON-LD

- Group category peers by Item via groupCatalogRowsByItem and exclude
  the current Item before standing and relatedCompetitors rankings.
- Emit canonical Item detail hrefs (catalogRowSlug) and guarded 1v1
  versus links (versusHref + isParseableVersusPair).
- Preserve CC BY-SA ImageObject JSON-LD attribution on ProductGroup
  and hasVariant in buildItemProductGroupNode.
- Add unit tests in product-competitors.test.ts and device-images.test.ts.

Closes #1819

* fix(web): address round-1 review findings on compare pins and JSON-LD fallback

- Precompute fallbackGroupImages in buildItemProductGroupNode so all
  priced hasVariant Product nodes inherit ImageObject metadata when
  default images are empty, and strip null contentUrl/url properties.
- Pin shared-slug multi-size Items and partial-load routes, and build
  /compare links with cat= and variant.<token> fallback hints.
- Strip control chars and validate fallback catalogue slugs in
  resolveCanonicalPeerSlug and withoutCurrentItemPeers.
- Emit the trimmed canonical string returned by resolvePeerVersusHref.
- Expand unit tests in product-competitors.test.ts and device-images.test.ts.
…catalog (#1835)

* fix(web): sync ?brand= sidebar filter, guard 1v1 links, and localize catalog UI/exports

Seed sidebar active brands from ?brand= fallback and clear legacy brand
param on toggle, guard category and toolbar /compare/<a-vs-b> 1v1 links
with isParseableVersusPair and Object.hasOwn lookups, export canonical
catalogRowSlug(p) in toolbar CSV/JSON exports, and localize price chips,
slider unit, and Markdown headers across vi/en/cs.

Refs #1828.
… versus urls (#1831)

* fix(web): dedupe Item variants in Compare, wire combobox ARIA/Escape, and guard SEO/versus slugs

* fix(web): preserve non-cheapest tray variants and wire listbox/option focus semantics
…SC flags (#1832)

* fix(web): preserve null merchant review risk and resolve Item links

Keep null review seeding risk as null/empty/localized no-data in MD,
CSV, and JSON merchant audit exports instead of coercing to 0/100.
Resolve canonical Item URLs via getItemSlugsFor and pass locale to
fitTitle/fitDescription on /merchants/[id], and strip internal
dosafe_risk_known flags via withPublicReviewRisk on /merchants RSC.

Refs #1821

* fix(web): harden merchant Item hrefs, URL export, and score guards

Drop raw fallbackHref bypass on Deal Radar links, enforce canonical
categories and <=120-char Object.prototype-safe slugs with mixed-case
Item resolution, sanitize Markdown profile URLs, and reject control-char
and radix score inputs before trimming.

Refs #1821

* fix(web): keep /merchants RSC normalization server-safe

Compute public merchant score clamping in merchants/page.tsx without
invoking use-client helpers on the server, and preserve the direct
knownDosafeRiskScore(merchant) call contract on /merchants/[id].

Refs #1821
…1833)

* fix(web): dedupe sitemap item variants and harden 1v1 versus guards

Deduplicate category candidates per Item and case-insensitive side slug
before building curated 1v1 sitemap battles, build URLs via versusHref,
enforce parseable -vs-/-vs and case-insensitive pairKey guards across
Item and variant modes, and resolve versusLastModified across canonical
Item and fallback variant slugs.

Refs #1822

* fix(web): enforce exact master slug parity and >256-char lastmod guards

Require exact lowercase master catalog slugs on variant/unlinked/fallback
versus sides, remove case-insensitive variant cross-linking, reject
over-256-char sitemap lastmod keys without prefix truncation, refresh
bySlug cache on mutation, and assert 200 route parity on all compare URLs.

Refs #1822

* test(web): parse URL origin and pathname in sitemap assertions

Use parsed URL origin and pathname Set lookups instead of URL string
includes in sitemap-lastmod.test.ts to satisfy CodeQL URL sanitization.

Refs #1822
… read (#1836)

* fix(web): emit canonical item product_href in watchlist api and cache read

Expose itemSlug in resolveWatchlistSlug and build canonical Item
product_href URLs in GET /api/v1/rate/watchlist under RATE_ITEM_MODEL
without ?v= query parameters or 308 redirect hops.

Switch /watchlist ISR catalog loading to getCachedMasterProducts so
regeneration shares the Data Cache and rate:products revalidation.

Closes #1829

* fix(web): honor item category_id and slug bounds in watchlist product_href

Carry itemCategoryId from resolveWatchlistSlug and resolve canonical
Item category slugs in GET /api/v1/rate/watchlist so divergent Item
categories emit zero-hop Item URLs and non-catalogue categories or
unresolvable Item slugs fall back to getMasterProductHref(master).

Refs #1829
* fix(web): align OpenAPI v1 schemas, params, and 500 error shape

- Flatten extension/lookup data.properties.priceAssessment schema
- Document category=all and brands on GET /api/v1/rate/products
- Document optional v variant slug on GET /api/v1/rate/reviews
- Document 400 ApiError on GET /api/v1/rate/merchants
- Return jsonApiError on GET /api/v1/rate/openapi 500 failures

Closes #1830

* test(web): assert brands filter and brand alias fallback on /products

Verify p_brands RPC arguments and filtered brand rows for both
brands=Apple,Samsung and brands=&brand=Samsung on category=all.

Refs #1830
* fix(web): align peer compare count and Item fallback guards

- Derive compareAllCount from buildPeerCompareLink emitted tokens.
- Allow leading-underscore Item slugs in resolveCanonicalPeerSlug
  while keeping 1v1 and /compare token checks strict.
- Surface groupCatalogRowsByItemWithStatus degraded flag to suppress
  mixed Item-vs-fallback 1v1 versus links.

Refs #1834
)

* fix(extension): format VND and decimal scores with cs conventions

Add optional locale support to formatSafeExtensionVnd and
formatSafeNumber with deterministic Czech NBSP grouping and comma
decimals. Wire t('langCode') across pill, sidepanel, and verdict UI
call sites while preserving machine attributes, and add vi/en/cs tests.

Closes #1839
* fix(web): close mobile nav on navigate and localize cs exports

Close #rate-nav-menu and the categories dropdown on unmodified link
activation and reset both when usePathname() changes so <main> and
<footer> do not stay inert on same-route or shared-shell navigations.

Route VND, percent, and decimal score formatting in
ProductOffersExplorer and ProductShareAuditButton Markdown builders
through locale-format.ts helpers for /cs while preserving vi and en
outputs.

Refs #1838
* fix(reviews): render v2 category criteria and /cs labels

* fix(reviews): handle db category precedence and 320px badge wrap
* fix(web): localize Inspect, PriceHistory, and Merchant Markdown

Route DeepInspectWorkspace, PriceHistorySection, and
MerchantDirectoryExplorer Markdown builders through locale-format
helpers and next-intl catalogs across vi, en, and cs (#1842).

* fix(web): harden Markdown export cell sanitization and bounds

Preserve Czech NBSP in Markdown cell sanitizers, clamp non-finite
score/trust inputs, and type InspectMarkdownKey strictly (#1842).
* fix(web): wire watchlist editor a11y and localize cs export

Label target-price spinbuttons, expose aria-expanded and aria-controls
on PriceWatchButton and WatchlistWorkspace target editors, support
Escape/Enter and outside-press dismissal, pass categoryPath to
CompareQuickToggle, prioritize canonical Item product_href, and
localize portfolio Markdown exports across vi, en, and cs.

Closes #1693

* fix(web): harden watchlist editor focus, href bounds, and ime guard

Restore trigger focus after keyboard/button saves and unwatch, scope
document Escape handling to the active PriceWatchButton container,
skip Enter commits during IME composition, accept up to 256-char
canonical product_href slugs while sanitizing fallback stored slugs
through getMasterProductHref, and index inlineEditorId so spaced
localStorage slugs keep single-token aria-controls IDREFs.

Refs #1693
* fix(importer): fail closed on --master flag and keyset-page jobs

Support both --master <uuid> and --master=<uuid> across importer CLI
jobs, validate strict UUIDs, and fail closed before any auth or DB call
on missing, empty, malformed, repeated, or unknown flags.

Scope single-master reads in product-points and product-points-ai to
the target master and replace remaining OFFSET fetchAllPages/.range
scans with keyset fetchByKey pagination.

* fix(importer): harden lowered max-rows paging and --hide-ai= guard

Stop fetchByKey only on empty page responses so lowered PostgREST
max-rows (< pageSize) never truncates reads and missing tail keys fail
closed even on small pages.

Reject empty --hide-ai= CLI values so they cannot silently override
PRODUCT_POINTS_HIDE_AI=true, validate DOS_AI_BASE_URL before Auth
sign-in in review-ai-points, and align keyset test mock comparators.
* chore(ops): allow antigravity PO claimant in promote.mjs

Accept both claude: and antigravity: claimants in promote.mjs via an
unmutated ALLOWED_PROMOTER_TOOLS set while keeping PROMOTER_TOOL =
'claude' and PROMOTER_TOOLS exported. Reject explicit blank --claimant
flags, add unit test coverage, and update PO docs and config for Claude
Code quota failover.

Closes #1849

* docs(ops): clarify JOY-assigned Antigravity PO promotion rule

@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 9:15am 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: 26c072ae-2413-4f7b-b88b-94463da8d052

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 ci CI/CD workflows and pipelines area:frontend Frontend / Next.js / UI area:shared Shared packages / contracts / configs labels Nov 22, 2026
@JOY
JOY (JOY) merged commit 2066a74 into main Nov 22, 2026
22 of 23 checks passed

This branch was successfully deployed

1 active deployment
Preview — 64bbf72d 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 ci CI/CD workflows and pipelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant