docs: replace stale getAdminContext snippet in packages/ui.md#612
Merged
Conversation
…n in packages/ui.md `getAdminContext` from `@opensaas/stack-ui/server` does not exist — the server export is type-only. Replace every occurrence with the correct starter-auth pattern: import `getContext`/`config` from `.opensaas/context`, resolve the session in the host page, and pass a `'use server'` wrapper around `context.serverAction` to `<AdminUI />`. Closes #563
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Coverage Report for Core Package Coverage (./packages/core)
File CoverageNo changed files found. |
Contributor
Coverage Report for UI Package Coverage (./packages/ui)
File CoverageNo changed files found. |
Contributor
Coverage Report for CLI Package Coverage (./packages/cli)
File CoverageNo changed files found. |
Contributor
Coverage Report for Auth Package Coverage (./packages/auth)
File CoverageNo changed files found. |
Contributor
Coverage Report for Storage Package Coverage (./packages/storage)
File CoverageNo changed files found. |
Contributor
Coverage Report for RAG Package Coverage (./packages/rag)
File CoverageNo changed files found. |
Contributor
Coverage Report for Storage S3 Package Coverage (./packages/storage-s3)
File CoverageNo changed files found. |
Contributor
Coverage Report for Storage Vercel Package Coverage (./packages/storage-vercel)
File CoverageNo changed files found. |
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.
Summary
getAdminContextfrom@opensaas/stack-ui/serverdoes not exist — the server export is type-only (export {}with onlyServerActionInput/ActionResultre-exports)getAdminContextindocs/content/packages/ui.mdhave been replaced with the correct host-supplies-context pattern fromexamples/starter-authgetContext/configfrom the generated.opensaas/context, resolve the session in the host page, and pass a'use server'wrapper aroundcontext.serverActionto<AdminUI />ServerActionInput(the actual export) and explicitly notes there is nogetAdminContexthelperTest plan
getAdminContextimport/usage snippets replaced withgetContext+getSessionpatternServerActionInputtype instead of non-existentgetAdminContextexamples/starter-auth/app/admin/[[...admin]]/page.tsxCloses #563
Generated by Claude Code