feat: CMS live preview SDK#5435
Merged
Merged
Conversation
The Date GraphQL scalar (from graphql-scalars) accepted any parseable date string, including full ISO timestamps for date-only fields. This caused "Invalid time value" errors on read. Two fixes applied: - DateScalar.parseValue now enforces YYYY-MM-DD regex before delegating - Use-case level validation in entryDataValidation.ts checks format based on field.settings.type, catching mismatches when the use-case is called programmatically (bypassing GraphQL scalars) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ms-live-preview # Conflicts: # packages/app-headless-cms/src/HeadlessCMS.tsx # packages/app-headless-cms/src/presentation/contentEntries/views/ContentEntryFormView.tsx # yarn.lock
…ms-live-preview # Conflicts: # packages/api-headless-cms/src/domain/contentModel/schemas.ts # packages/api-headless-cms/src/features/modelBuilder/fields/DynamicZoneFieldType.ts # packages/api-headless-cms/src/types/model.ts # packages/api-headless-cms/src/types/modelField.ts # packages/app-headless-cms/src/admin/plugins/editor/formSettings/components/GeneralSettings.tsx
…ms-live-preview # Conflicts: # yarn.lock
…ms-live-preview # Conflicts: # packages/cli/files/references.json
Inline entry creation with 50ms delays to ensure distinct savedOn timestamps, and narrow the filter window to ±25ms. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
cms-sdkandcms-nextjspackages for real-time CMS live preview with postMessage-based editor bridge, entry store, ref resolution, and dynamic zone supportcontent-sdkandcontent-sdk-nextjspackages for content deliverygetModelmethod with wildcard field expansion, component map generation, and ref model resolutionTest plan
🤖 Generated with Claude Code