Skip to content

release: ship blocks answer and organic measurement - #430

Closed
tin-computer[bot] wants to merge 2 commits into
mainfrom
release/search-measurement-20260803
Closed

tin-computer[bot] wants to merge 2 commits into
mainfrom
release/search-measurement-20260803

Conversation

@tin-computer

@tin-computer tin-computer Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What goes live

  • /docs/payload-blocks answers Payload CMS blocks directly in its title, description, and opening sentence while preserving the supported hero-basic install path.
  • Page views add privacy-safe traffic_source (organic_search or other) and verification_run fields. Raw referrers, campaigns, and query strings are not sent.
  • The public privacy and contributing docs describe those exact fields and boundaries.

Why this is focused

This branch starts from current main and ports only the reviewed outcomes from #395 (ac20166) and #406 (e04d513). It changes 7 files, with no package, registry, component, template, or unrelated dev work. No extra dependency was required.

This intentionally excludes the catalog metadata and import-map/article/action-event follow-ups in #422 and #427-#429.

Verification

  • git diff --check origin/main...HEAD
  • Prettier check on all 7 changed files
  • Focused Vitest: 32/32 passing across the analytics contract and Fumadocs site shell
  • Focused ESLint on the changed TypeScript and test files

Required GitHub and Vercel checks must pass before owner review and merge.

tin-computer Bot and others added 2 commits August 2, 2026 23:34
Co-authored-by: Ducksss <[email protected]>
Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
Co-authored-by: Ducksss <[email protected]>
Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
@tin-computer
tin-computer Bot requested a review from Ducksss as a code owner August 2, 2026 23:36
@vercel

vercel Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview Aug 2, 2026 11:39pm
payload-components-97bf Ready Ready Preview Aug 2, 2026 11:39pm

@Ducksss

Ducksss commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Closing — the content is already on dev (#395, #406, and now #427–#429), and shipping it to main this way would put production in a worse state than a normal promote.

The ordering is backwards. This adds new page-view collection (traffic_source, verification_run) to main, but main does not yet have the withdrawal fixes that landed on dev:

I verified both against origin/main: clearAnalyticsCookies is absent and consent.ts still lacks the parent loop. So this PR would expand what production measures while the "turn it off" path there is still incomplete. Measurement should not outrun the opt-out.

A subset promote also creates divergence. dev is 154 commits ahead. Hand-porting 7 files onto main means main's analytics.ts, privacy/page.tsx, and contributing.mdx reach a state that exists on neither branch, which is how the postcss regression nearly happened (#371 fixed on main while dev still pinned the vulnerable version, so the next promote would have reverted it).

What should happen instead: a full dev → main promote. It carries this work plus the consent-gate, cookie-deletion, and domain fixes together, and it is the path the release gate actually exercises. That promote is already the outstanding item on my side.

To be clear about what is and is not the objection: the scoping discipline here is good — starting from main, porting only reviewed commits, explicitly excluding #422 and #427–#429, and listing the verification. If main were current on the privacy fixes this would be a reasonable shape. The problem is which 7 files, relative to what main is missing.

@Ducksss Ducksss closed this Aug 4, 2026
@Ducksss

Ducksss commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Correcting one claim in my closing comment, because it was wrong and it was load-bearing.

I said clearAnalyticsCookies was absent from main. It is present — at src/lib/consent.ts:34, called from line 105. I had grepped analytics.ts for it, and it lives in consent.ts. So GA cookie deletion on withdrawal is already live in production; my "the turn-it-off path there is still broken" was overstated.

What does still hold:

  • main is on labels.slice(-2) (consent.ts:43); dev has the parent-domain enumeration from fix(privacy,test): expire every parent cookie domain, correct two stale test claims #418. That gap is real but latent — for www.payload-components.xyz, slice(-2) already yields the correct registrable domain, so it bites only multi-label public-suffix hosts. Lower severity than I implied.
  • The divergence argument is unaffected: hand-porting 7 files onto main still produces a state that exists on neither branch.

Net: closing this was still right, but for the divergence reason and because a full promote was imminent, not because production was leaking cookies. Apologies for the overstatement.

The full dev → main promote is being opened now and carries all of it, including the #418 fix.

This branch was successfully deployed

2 active deployments
Preview – payload-components-97bf — c6ccd3fc Deployed Aug 2, 2026 by vercel[bot]
Preview – payload-components — c6ccd3fc Deployed Aug 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant