-
Notifications
You must be signed in to change notification settings - Fork 25
feat: Add schema converter library and GitHub PR workflow #691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add @adobe/component-schema-converter library with bidirectional conversion - Plugin format ↔ Official JSON Schema format - 296 tests with 96.4% code coverage - Validates all 80 component schemas (96.3% perfect round-trip) - Add GitHub PR creation workflow to Figma plugin - Personal Access Token authentication with secure storage - Automatic schema conversion using converter library - Changeset generation for version management - Support for creating new and updating existing schemas - Add comprehensive test suite and documentation
|
Run report for 6009cffeTotal time: 39.5s | Comparison time: 1m 8s | Estimated savings: 28.7s (42.1% faster)
Touched files |
- Format all test and source files with Prettier - Apply Remark markdown formatting to documentation - Consistent code style across converter library and plugin - No functional changes
Overview
This PR adds two major features:
1. Schema Converter Library (
@adobe/component-schema-converter)A new library for bidirectional conversion between the Figma plugin's simplified JSON format and the official Spectrum JSON Schema format.
Features:
Test Results:
2. GitHub PR Workflow (
@adobe/component-options-editor)Adds the ability to create pull requests directly from the Figma plugin.
Features:
figma.clientStorage)Documentation:
docs/CREATE_PR.mdwith complete user guideTesting
Breaking Changes
None - this is a new feature addition.