Skip to content

feat(@sanity/presets): add link field preset and composer functionality#727

Draft
jordanl17 wants to merge 2 commits intomainfrom
feat/basic-link-field
Draft

feat(@sanity/presets): add link field preset and composer functionality#727
jordanl17 wants to merge 2 commits intomainfrom
feat/basic-link-field

Conversation

@jordanl17
Copy link
Member

@jordanl17 jordanl17 commented Mar 13, 2026

Description

This PR Introduces the first functional preset - a link field with internal/external discrimination - and replaces the placeholder presetsComposer with a real definePlugin factory that aggregates and deduplicates schema types from any number of preset results.

The link field factory validates its configuration eagerly, generates the schema type with conditional field visibility and preview support, and is exercised by both unit tests and a test studio integration.

What to review

Testing

@changeset-bot
Copy link

changeset-bot bot commented Mar 13, 2026

🦋 Changeset detected

Latest commit: 14412b2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sanity/presets Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Mar 13, 2026

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

Project Deployment Actions Updated (UTC)
plugins-studio Ready Ready Preview, Comment Mar 13, 2026 1:49pm

Request Review

@jordanl17 jordanl17 changed the title feat(presets): add link field preset and composer functionality feat(@sanity/presets): add link field preset and composer functionality Mar 13, 2026
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