Skip to content

Campaigns: point Cart SDK links at the 0.5.0 docs layout - #73

Merged
next-devin merged 4 commits into
mainfrom
sdk-0-5-knowledge
Nov 23, 2026
Merged

next-devin merged 4 commits into
mainfrom
sdk-0-5-knowledge

Conversation

@next-devin

@next-devin next-devin commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Campaign Cart SDK 0.5.0 moved its docs site to a new layout, so every deep link we had into cart-sdk.nextcommerce.com/latest/ returned 404. Main has since fixed the links and moved the redirects to public/_redirects (72432bb). This PR now carries only what main does not already have.

What changed

  • content/docs/campaigns/index.mdx and meta.json: adds "Migrating from 0.4.x" and "Events" to the Cart SDK reference table and sidebar, next to the rows main already fixed. Adds a sentence that links the 0.4.43 docs for campaigns that still load 0.4.x.
  • Analytics section: forwarding is now described with analytics.destinations (gtm, meta). It also says 0.5 still reads the older providers.gtm / providers.facebook flags that 0.4.x templates set. window.NextAnalyticsClearIgnore() no longer exists, so the docs now say ?ignore=false (or ?reset=1). "Auto mode" is gone because 0.5 ignores analytics.mode.
  • page-kit.mdx: the from-scratch sdk_version example is now 0.5.0.

Checked

  • Each cart-sdk.nextcommerce.com URL this PR adds was curl-checked and returns 200.
  • validate-links: 0 errors. check-frontmatter and check-markup pass.

Not changed, worth knowing

The playground (lib/playground/utils.ts) loads campaign-cart@latest, which now serves 0.5. It still passes nextConfig.debug / debugger. 0.5 drops the debug config key and opens its debug panel from ?debug=1 instead.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
developer-docs 8789dd7 Commit Preview URL

Branch Preview URL
Nov 17 2026, 04:30 AM

Comment thread content/docs/campaigns/index.mdx Resolved
Comment thread content/docs/campaigns/index.mdx Resolved
@kilo-code-bot

kilo-code-bot Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 file in incremental scope)
  • content/docs/campaigns/index.mdx - 0 issues (2 lines changed: lines 274, 281)
Verification Notes
  • Incremental review of 4b7ebae9b8c8c512f93ac7e9c8377182a4e04893..e4cf875d34ae9a04edb086a3a79c78f79867820b — the only new commit is e4cf875 ("settle destinations vs providers precedence, drop ?reset=1"), touching 2 lines in content/docs/campaigns/index.mdx.
  • Both previously reported findings were verified as resolved in current HEAD:
    • Line 274 now names one concrete 0.5 config (analytics.destinations.gtm.enabled / analytics.destinations.meta.enabled), scopes the legacy flags explicitly to 0.4.x templates (analytics.providers.gtm / analytics.providers.facebook), states the precedence rule ("when both are set, destinations wins"), and resolves the fb_pixel_id → destinations.meta mapping. The author reports the Destinations URL was curl-checked and returns 200 (the earlier finding was based on path-family inference, since outbound network access is blocked in this environment).
    • Line 281 no longer documents ?reset=1; ?ignore=false is the single documented way to re-enable tracking, and the scope was corrected from "entire session" to "rest of that browser tab" per campaign-cart v0.5.0 src/engine/visit/params.ts.
  • Full PR scope re-checked against base 72c48d5: index.mdx (+10/-4), meta.json (+2), page-kit.mdx (+1/-1). netlify.toml is confirmed not part of the PR head — the gh pr diff patch output reflects the superseded commit f76ad88, so only the incremental diff above was used for line targets.
  • Sidebar rows added in meta.json (Migrating from 0.4.x, Events) match the corresponding rows in the index.mdx Cart SDK table, and the Events (next.on) vs Analytics events (tracking/dl_*) descriptions no longer overlap. The sdk_version example in page-kit.mdx is now 0.5.0 with no contradictory value elsewhere in the file.
  • Internal links in the changed files are unchanged and valid; all added cart-sdk.nextcommerce.com URLs use trailing slashes consistently with the rest of the repo. Note that scripts/validate-links.mjs resolves internal links only, so external cart-sdk URLs are not covered by CI.

Fix these issues in Kilo Cloud

Previous Review Summary (commit 4b7ebae)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 4b7ebae)

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 1
Issue Details (click to expand)

WARNING

File Line Issue
content/docs/campaigns/index.mdx 274 Destinations link uses analytics-reference/destinations/overview/, a path family present nowhere else in the repo or in the merged main redirects — likely a 404. The same sentence also points readers at two conflicting config key sets (analytics.destinations vs providers.gtm/providers.facebook) without resolving which to set, and leaves the fb_pixel_id → destinations.meta mapping unclear.

SUGGESTION

File Line Issue
content/docs/campaigns/index.mdx 281 ?reset=1 is documented as a supported way to re-enable tracking, but it appears nowhere else in the repo and was not covered by the PR's URL-only curl check. Verify against the SDK source or drop it.
Files Reviewed (3 files)
  • content/docs/campaigns/index.mdx - 2 issues
  • content/docs/campaigns/meta.json - 0 issues
  • content/docs/campaigns/page-kit.mdx - 0 issues
Verification Notes
  • Reviewed the true PR diff as 72c48d5...4b7ebae9b8c8c512f93ac7e9c8377182a4e04893 (the gh pr diff patch output reflected the superseded commit f76ad88 and included a netlify.toml change that is not in this PR's head).
  • All three changed files were read in full, along with AGENTS.md and CLAUDE.md.
  • External URL reachability could not be verified: outbound network commands were blocked in this environment. The Destinations finding is based on internal path-family evidence only (merged public/_redirects from 72432bb, and this PR's own earlier commit f76ad88), so it should be confirmed with a curl before merge.
  • scripts/validate-links.mjs resolves internal links only, so external cart-sdk URLs are not covered by CI and will not fail the build if broken.

Fix these issues in Kilo Cloud


Reviewed by minimax-m3 · Input: 44.3K · Output: 4.8K · Cached: 605.1K

@next-devin
next-devin merged commit bdc2ca8 into main Nov 23, 2026
3 checks passed
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