Skip to content

feat(schema): Subcomponent.source — Figma node identity (ADR-060)#172

Closed
nathanacurtis wants to merge 2 commits into
release/schema-0.27.0-cli-0.23.0from
main
Closed

feat(schema): Subcomponent.source — Figma node identity (ADR-060)#172
nathanacurtis wants to merge 2 commits into
release/schema-0.27.0-cli-0.23.0from
main

Conversation

@nathanacurtis

Copy link
Copy Markdown
Member

Summary

  • Adds optional source?: SubcomponentSource to Subcomponent, carrying pageId, nodeId, and nodeType from the originating Figma node
  • Adds and exports SubcomponentSource type
  • Enables reverse-direction tools (spec → Figma writers) to resolve SubcomponentRef entries to Figma nodes without side-channels
  • No version bump — ships within 0.27.0

Gates

  • tsc -p tsconfig.build.json --noEmit — clean
  • validate-schema.sh — 5/5 passed
  • tests/Subcomponent.test-d.ts — clean

Test plan

  • Review packages/schema/types/Subcomponent.tsSubcomponentSource type and updated Subcomponent intersection
  • Review packages/schema/schema/component.schema.json — new SubcomponentSource definition, updated Subcomponent
  • Review packages/schema/tests/Subcomponent.test-d.ts
  • Review packages/schema/CHANGELOG.md entry under [0.27.0]
  • Review site/src/content/docs/schema/subcomponents.md doc update

Closes ADR-060.

🤖 Generated with Claude Code

nathanacurtis and others added 2 commits June 26, 2026 08:25
Add optional source field to Subcomponent carrying pageId/nodeId/nodeType,
enabling reverse-direction tools to resolve SubcomponentRef entries to Figma
nodes without side-channels. MINOR bump (additive, optional field).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nathanacurtis

Copy link
Copy Markdown
Member Author

Closing — PR was created from wrong head branch (main). Replacing with correct PR from 060-subcomponent-source-metadata.

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