Skip to content

feat: split ExoMetadataProps into base and Experience-extended variants [DX-987]#3008

Merged
Tyler Pina (tylerpina) merged 2 commits intofeat/exofrom
dx-987-split-exo-metadata-props
Apr 28, 2026
Merged

feat: split ExoMetadataProps into base and Experience-extended variants [DX-987]#3008
Tyler Pina (tylerpina) merged 2 commits intofeat/exofrom
dx-987-split-exo-metadata-props

Conversation

@tylerpina
Copy link
Copy Markdown
Contributor

@tylerpina Tyler Pina (tylerpina) commented Apr 28, 2026

DX-987

Summary

  • Split ExoMetadataProps into two types: base (tags + concepts, used by ComponentType and Template) and ExperienceMetadataProps which extends the base with name? (used only by Experience)
  • Aligns the SDK with the upstream experiences-api-schemas which defines a base MetadataSchema and a separate ExperienceMetadata that adds name
  • ExperienceCommonProps.metadata now uses ExperienceMetadataProps; ComponentType and Template are unchanged

Test plan

  • npx tsc --noEmit passes with no errors
  • Unit tests pass: npm run test:unit
  • Confirm ExoMetadataProps no longer has name field
  • Confirm ExperienceMetadataProps extends ExoMetadataProps and adds name?
  • Confirm assigning { name: 'foo' } to ExoMetadataProps produces a type error

Generated with Claude Code

…X-987]

ExoMetadataProps no longer includes name — aligns with upstream MetadataSchema
used by ComponentType and Template. New ExperienceMetadataProps extends the base
with name? for variant labeling, mirroring upstream ExperienceMetadata.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tylerpina Tyler Pina (tylerpina) requested a review from a team as a code owner April 28, 2026 17:16
@bito-code-review
Copy link
Copy Markdown

bito-code-review Bot commented Apr 28, 2026

Bito Automatic Review Skipped - Branch Excluded

Bito didn't auto-review because the source or target branch is excluded from automatic reviews.
No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the branch exclusion settings here, or contact your Bito workspace admin at michael.pearce@contentful.com.

@tylerpina Tyler Pina (tylerpina) merged commit d7ab506 into feat/exo Apr 28, 2026
14 of 16 checks passed
@tylerpina Tyler Pina (tylerpina) deleted the dx-987-split-exo-metadata-props branch April 28, 2026 18:36
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.

2 participants