Skip to content

feat(KNO-13285): final preference center docs#1528

Draft
andy-knock wants to merge 2 commits into
preference-api-authfrom
preference-center-final
Draft

feat(KNO-13285): final preference center docs#1528
andy-knock wants to merge 2 commits into
preference-api-authfrom
preference-center-final

Conversation

@andy-knock

@andy-knock andy-knock commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Restructures preference center documentation into two clear paths (hosted vs build-your-own) with a decision guide on the overview, a standalone build page, and React tutorials reframed as implementation examples.

Changes

Information architecture

  • preferences/overview.mdx — Replaces the inline build tutorial with Choosing a preference center (comparison table + decision questions linking to hosted and build paths).
  • preferences/build-your-preference-center.mdx (new) — Standalone walkthrough: auth, four-step flow, client SDK examples, optional dashboard-managed config section, implementation SdkCards.
  • preferences/hosted-preference-center.mdx — Intro bullets, split linking (workflow templates vs backend signed URL), cross-links to decision guide and build page.
  • data/sidebars/platformSidebar.ts — Adds build page to Preferences sidebar.

React tutorials reframed

  • in-app-ui/react/preferences.mdx and in-app-ui/react/headless/preferences.mdx — Positioned as React-specific implementations of build-your-own; callout links updated.

Cross-links

  • Updated entry points in concepts, commercial-unsubscribe, implementation-guide, per-tenant-preferences; fixed #create-a-default-preferenceset anchors.

Stack

Stacked on #1526 (auth + public-key clarifications). Merge the full stack via Graphite.

Follow-up TODOs (blocked on backend)

Architecture finalized in switchboard #6885 (KNO-13285). Doc TODOs in this PR reference the intended API surface:

  • Hosted signed URL — Document POST /v1/users/{user_id}/preference_center/signed_url (secret key → { url, token }) on hosted page; link to API reference once spec is current.
  • Build-your-own config — Document GET /v1/users/{user_id}/preference_center/config (public key + user token → dashboard row config) on build page; add client examples.
  • OpenAPI spec in docs — Update data/specs/api/openapi.yml when #6885 merges (config moves off /v1/preference_center/config; duplicate PC-token preference endpoints removed).
  • Do not document removed /v1/preference_center/preferences endpoints — build-your-own read/write stays on standard preferences.get() / preferences.set().

Test plan

  • Preview preferences overview decision guide (table + three questions)
  • Preview new build-your-preference-center page and hosted page linking sections
  • Confirm React tutorial intros and sidebar navigation
  • Spot-check cross-links from concepts, implementation-guide, per-tenant preferences

@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jul 10, 2026 6:11pm

Request Review

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@andy-knock andy-knock force-pushed the preference-center-final branch from b181cc4 to 06ee119 Compare July 8, 2026 23:03
@andy-knock andy-knock changed the title feat: final preference center docs feat(KNO-13285): final preference center docs Jul 8, 2026
@linear-code

linear-code Bot commented Jul 8, 2026

Copy link
Copy Markdown

KNO-13285

@andy-knock andy-knock force-pushed the preference-center-final branch 2 times, most recently from 8e22222 to 1171a36 Compare July 8, 2026 23:13
@andy-knock andy-knock force-pushed the preference-center-final branch from 80d28c0 to fcc1571 Compare July 8, 2026 23:34
@andy-knock andy-knock force-pushed the preference-api-auth branch from d74f371 to 2701ed1 Compare July 9, 2026 20:35
@andy-knock andy-knock force-pushed the preference-center-final branch 2 times, most recently from 8ddc056 to 13855f5 Compare July 9, 2026 20:38
@andy-knock andy-knock force-pushed the preference-api-auth branch 2 times, most recently from bea9a56 to 65365c2 Compare July 9, 2026 20:41
@andy-knock andy-knock force-pushed the preference-center-final branch 2 times, most recently from 4cddb54 to 7ef31ff Compare July 9, 2026 20:43
@andy-knock andy-knock force-pushed the preference-api-auth branch from 65365c2 to 862a7f7 Compare July 9, 2026 20:43
@andy-knock andy-knock force-pushed the preference-center-final branch from 7ef31ff to cda82a4 Compare July 10, 2026 18:00
@andy-knock andy-knock force-pushed the preference-api-auth branch from 693605b to 7ce60df Compare July 10, 2026 18:00
@andy-knock andy-knock force-pushed the preference-center-final branch 2 times, most recently from 8fb31c7 to cdb8faf Compare July 10, 2026 18:02
@andy-knock andy-knock force-pushed the preference-api-auth branch from c2b559b to b8774fa Compare July 10, 2026 18:02
Replace TODO placeholders with API docs aligned to switchboard #6885:
GET /v1/users/{user_id}/preference_center/config (public key + user token)
and POST /v1/users/{user_id}/preference_center/signed_url (secret key).
Update OpenAPI and stainless specs; remove deprecated PC-token endpoints.
@andy-knock andy-knock force-pushed the preference-center-final branch from cdb8faf to 8718fdd Compare July 10, 2026 18:06
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