feat: schema redesign — socialPreview, podcastSeries, category, short + podcast/guest/post/page/sponsor updates#680
Merged
codercatdev merged 2 commits intodevfrom Mar 16, 2026
Merged
Conversation
…ent types New partial: - socialPreview: ogTitle, ogDescription, ogImage (hotspot), twitterCardType, noIndex Applied to: post, podcast, page, sponsor New document types: - podcastSeries: series grouping with YouTube playlist support - category: content taxonomy with color badges - short: standalone YouTube Shorts with parentEpisode reference Updated documents: - podcast: +thumbnail, duration, chapters, series, seriesOrder, listenLinks, transcript, contentType enum, relatedShorts, relatedBlogPost, socialPreview - guest: +company, role - post: +categories, socialPreview - page: +socialPreview - sponsor: +socialPreview Registered podcastSeries, category, short in sanity.config.ts
Sandbox env var redaction substituted the wrong value during file generation.
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.
Track A: Sanity Schema Updates for Website Redesign
New Partial
socialPreview(schemas/partials/socialPreview.ts) — 5 optional fields applied to all content types:ogTitle(string, max 60 chars) — social title overrideogDescription(text, max 155 chars) — social description overrideogImage(image, hotspot: true) — custom OG image (1200×630)twitterCardType(enum: summary_large_image | summary)noIndex(boolean) — hide from search enginestitle,excerpt,coverImagewhen emptyNew Document Types
podcastSeries— series grouping for podcast episodes (title, slug, description, coverImage, youtubePlaylistId, isActive)category— content taxonomy with color badges (title, slug, description, color)short— standalone YouTube Shorts (title, slug, youtube, thumbnail, parentEpisode→podcast, publishedAt, duration, categories)Updated Documents
podcast— 11 new fields: thumbnail, duration, chapters (title+timestamp+seconds), series→podcastSeries, seriesOrder, listenLinks (youtube/spotify/apple/overcast/pocketCasts/rss), transcript, contentType enum (interview/solo/tutorial/news/review), relatedShorts, relatedBlogPost, + socialPreview partialguest— +company, +role (socials already exist via user partial)post— +categories (refs to category), +socialPreview partialpage— +socialPreview partialsponsor— +socialPreview partialNOT included (deferred per @pm)
Registration
All 3 new types registered in
sanity.config.ts.Specs
/specs/design-system.mdSection 7/specs/podcast-video-requirements.mdSection 3/specs/social-preview-requirements.mdSection 5/specs/schema-gap-analysis.md