Repository navigation
docs: Generate installation provider setup tabs from ProviderSetupCode - #4145
Merged
ntucker merged 2 commits intoOct 4, 2026
Merged
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ntucker
force-pushed
the
claude/project-thread-8m86ff
branch
from
October 4, 2026 11:24
8c21b8c to
1c2494d
Compare
managers is now optional in ProviderSetupCode, so the installation partial renders its Web/React Native/NextJS/Expo tabs and Vue main.ts from the same source as the managers partial. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WS9omUKcWVGuPunL3VoKc4
ntucker
force-pushed
the
claude/project-thread-8m86ff
branch
from
October 4, 2026 16:22
1c2494d to
7976d31
Compare
…to claude/project-thread-8m86ff
ntucker
added a commit
that referenced
this pull request
Oct 5, 2026
* docs: Vue examples for Controller and manager API pages Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LfrAWX2uC23Ym1SNjRYvo5 * docs: Make Manager.md prose and editor imports framework-neutral Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LfrAWX2uC23Ym1SNjRYvo5 * docs: Fix Vue getState example timing claim Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LfrAWX2uC23Ym1SNjRYvo5 * docs: Simplify Vue examples on Controller and manager pages Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LfrAWX2uC23Ym1SNjRYvo5 * docs: Vue version of DevToolsManager predicate example Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LfrAWX2uC23Ym1SNjRYvo5 * docs: Simplify React DevToolsManager skipLogging example; define myDomain Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LfrAWX2uC23Ym1SNjRYvo5 * docs: Share provider-with-managers setup across API pages Adds docs/core/shared/_provider_managers.mdx, which renders the React platform tabs (web, React Native, NextJS, Expo) and the Vue main.ts from a single `managers` code block. LogoutManager, Manager, DevToolsManager, PollingSubscription, getDefaultManagers and Controller now use it instead of their own copies. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DE1vvoaeNDUbYnk4ewofap * docs: Harden provider setup code extraction; drop redundant DataProvider note Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DE1vvoaeNDUbYnk4ewofap * docs: Simplify provider setup partial into a per-platform CodeBlock component Reuses parseCodeDocuments for the managers block, builds only the requested platform's file, and drops the leading-import parsing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DE1vvoaeNDUbYnk4ewofap * docs: Render nothing when the provider partial has no managers block The partial is also built as its own page until shared partials are excluded. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DE1vvoaeNDUbYnk4ewofap * docs: Generate installation provider setup tabs from ProviderSetupCode (#4145) managers is now optional in ProviderSetupCode, so the installation partial renders its Web/React Native/NextJS/Expo tabs and Vue main.ts from the same source as the managers partial. Claude-Session: https://claude.ai/code/session_01WS9omUKcWVGuPunL3VoKc4 Co-authored-by: Claude <noreply@anthropic.com> * docs: Render provider setup partial in skill references and llms.txt ProviderSetupCode now builds its code with a shared providerSetup module, which the markdown generator also uses, so generated references show the same per-platform setup files. Partials receive their page's code block, and JSX spreads are evaluated. Also drops a leftover Vue block on LogoutManager from the master merge. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DE1vvoaeNDUbYnk4ewofap * internal(website): Lint import order in docsToMarkdown Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DE1vvoaeNDUbYnk4ewofap * internal(website): Let ProviderSetupCode read its own managers block in docsToMarkdown Partials get their raw children; the ProviderSetupCode case extracts the code block, matching the site component. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DE1vvoaeNDUbYnk4ewofap * internal(website): Move providerSetup into framework-docs so skill checks see it Skill references depend on the provider setup generator; the skills workflow and pre-push hook already watch website/framework-docs/. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DE1vvoaeNDUbYnk4ewofap --------- Co-authored-by: Claude <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Nathaniel · project thread
Stacked on #4129; will be retargeted to
masteronce that merges.Motivation
docs/core/shared/_installation.mdx(rendered on Installation and<DataProvider />) hand-wrote the same Web / React Native / NextJS / Expo app-root code and Vuemain.tsthat #4129 generates inProviderSetupCode. Its web tab still hadReactDOM.createRootimported fromreact-dom.Solution
managers(the children code block) andimportsare now optional inProviderSetupCode. Without them it renders a plain<DataProvider>/app.use(DataClientPlugin), and NextJS rendersapp/layout.tsxusingDataProviderfrom@data-client/react/nextjsdirectly (no separate clientProvider.tsxneeded).Before:
After:
managerstogetDefaultManagers.DataProviderlines; generated blocks have no highlights.Verified by rendering
/docs/getting-started/installation,/vue/getting-started/installation,/docs/api/DataProviderand/docs|vue/api/LogoutManager(managers pages unchanged) in a local dev server; website typecheck and lint pass. Docs only, so no changeset.Open questions
None.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WS9omUKcWVGuPunL3VoKc4
Generated by Claude Code
Note
Low Risk
Documentation and a docs-site component only; no runtime library or API behavior changes.
Overview
Installation docs for Web, React Native, Next.js, Expo, and Vue replace duplicated inline snippets with shared
<ProviderSetupCode platform="…" />, so setup examples stay aligned with the managers guide.ProviderSetupCodenow works without amanagerschild or extraimports: it emits plain<DataProvider>/app.use(DataClientPlugin)wiring.managers={managers}and the managers block are only included when children are passed (managers pages unchanged). For Next.js without managers, the sample isapp/layout.tsxusing@data-client/react/nextjsinstead of a separate clientProvider.tsx; with managers it still shows the clientProvider.tsxpattern.The Vue installation tab moves optional plugin overrides out of code comments into a short prose line linking
managerstogetDefaultManagers. Generated samples usecreateRootfromreact-dom/client(replacing olderreact-domusage in the hand-written web tab). Next.js/Expo highlight comments from the old MDX blocks are dropped in generated output.Reviewed by Cursor Bugbot for commit ee45e7a. Bugbot is set up for automated code reviews on this repo. Configure here.