Add block document reference support to schema form#20209
Merged
desertaxle merged 10 commits intomainfrom Jan 13, 2026
Merged
Conversation
- Create BlockDocumentCombobox component for selecting block documents - Create BlockDocumentCreateDialog for inline block document creation - Create SchemaFormInputBlockDocument wrapper component - Update schema-form-input.tsx to handle blockTypeSlug properties - Add tests for new components - Add Storybook stories Co-Authored-By: alex.s@prefect.io <ajstreed1@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
… fields Co-Authored-By: alex.s@prefect.io <ajstreed1@gmail.com>
Co-Authored-By: alex.s@prefect.io <ajstreed1@gmail.com>
- Create BlockDocumentCombobox component for selecting block documents - Create BlockDocumentCreateDialog component for creating new blocks - Create SchemaFormInputBlockDocument wrapper component - Modify schema-form-input.tsx to use new component for blockTypeSlug properties - Add tests and Storybook stories for all new components Co-Authored-By: alex.s@prefect.io <ajstreed1@gmail.com>
Co-Authored-By: alex.s@prefect.io <ajstreed1@gmail.com>
…ck-document-references
…/git-manager.devin.ai/proxy/github.com/PrefectHQ/prefect into ui-v2/schema-form-block-document-references
Co-Authored-By: alex.s@prefect.io <ajstreed1@gmail.com>
…tories Co-Authored-By: alex.s@prefect.io <ajstreed1@gmail.com>
desertaxle
approved these changes
Jan 13, 2026
This was referenced Jan 21, 2026
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.
Implements block document reference support for schema form properties. When a schema property has a
blockTypeSlugfield, it now renders a block document selector with optional inline creation instead of throwing a "not implemented" error.This adds three new components:
{ $ref: blockDocumentId }formatThe integration in
schema-form-input.tsxreplaces the previousthrow new Error("not implemented")with the new component.Related to #15512
Updates since last revision
reactQueryDecoratortoproperties.stories.tsxto fix Storybook error for blockTypeSlug stories (they require QueryClientProvider for TanStack Query)Screenshots
Human Review Checklist
{ $ref: blockDocumentId }format is the correct structure for block document references in Prefect schemasschema-form-input.tsx(line 82) castsvalue as { $ref: string } | undefined- confirm this is safeas unknown as PrefectSchemaObjectcast inblock-document-create-dialog.tsxforblockSchema.fields- confirm this is safelike_in API query) and client-side filtering (filteredData) - this may be redundantChecklist
<link to issue>"mint.json.Link to Devin run: https://app.devin.ai/sessions/36e0160cacd7477db78917771f4b27f4
Requested by: @desertaxle