Skip to content

fix: align DesignPropertyValue with upstream schema refactor [DX-990]#3014

Merged
Tyler Pina (tylerpina) merged 2 commits intofeat/exofrom
dx-990-fix-design-property-value-types
Apr 30, 2026
Merged

fix: align DesignPropertyValue with upstream schema refactor [DX-990]#3014
Tyler Pina (tylerpina) merged 2 commits intofeat/exofrom
dx-990-fix-design-property-value-types

Conversation

@tylerpina
Copy link
Copy Markdown
Contributor

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

DX-990

Summary

  • DesignPropertyValue is now the canonical base type (ManualDesignValue | DesignTokenValue only), matching upstream DesignPropertyValueSchema post INTEG-3511 (2026-03-26)
  • New ComponentTreeDesignPropertyValue union introduced as the tree-node-level type — DesignPropertyPointerValue and DimensionedDesignPropertyValue are siblings of the canonical value, not nested inside it
  • ComponentNode.designProperties updated to Record<string, ComponentTreeDesignPropertyValue>

Test plan

  • npx tsc --noEmit passes with no errors
  • Unit tests pass: npm run test:unit
  • Confirm assigning { breakpoint: pointer } to DesignPropertyValue produces a type error
  • Confirm ComponentTreeDesignPropertyValue accepts pointer, dimensioned record, and canonical value as siblings

Generated with Claude Code

…eeDesignPropertyValue [DX-990]

DesignPropertyValue is now the canonical base (ManualDesignValue | DesignTokenValue only),
matching upstream DesignPropertyValueSchema post INTEG-3511. New ComponentTreeDesignPropertyValue
union covers pointer and dimensioned as siblings at the tree-node level. ComponentNode.designProperties
updated accordingly.

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 29, 2026 17:08
@bito-code-review
Copy link
Copy Markdown

bito-code-review Bot commented Apr 29, 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.

Comment thread lib/entities/component-type.ts Outdated

// For designProperties[].defaultValue (definition level)
// Upstream: DesignPropertyValueSchema (schema line 86-91)
// Upstream: DesignPropertyValueSchema — canonical value only (no pointer, no dimensioned)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's time to have these comments removed. If you think it would help for a future debugging session, maybe list the upstream mapping in the PR description? I'm okay without that too -- I think the naming is fairly close to the upstream schema that we won't need it.

@tylerpina Tyler Pina (tylerpina) merged commit ba19acc into feat/exo Apr 30, 2026
15 of 16 checks passed
@tylerpina Tyler Pina (tylerpina) deleted the dx-990-fix-design-property-value-types branch April 30, 2026 19:11
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