feat: Add schema converter library and GitHub PR workflow#691
Draft
feat: Add schema converter library and GitHub PR workflow#691
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
|
Member
Author
Run report for 4103a1f4Total time: 43.7s | Comparison time: 1m 25s | Estimated savings: 42.3s (49.2% 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
Replace all `any` types with `unknown` for proper type safety: - errors.ts: Use `unknown` for error parameters with proper type guards - githubService.ts: Replace `any` error types with `unknown` and type assertions - litAppElement.ts: Fix unused import and `any` type in error handling - githubAuth.ts: Remove unused `nothing` import from lit Add proper type narrowing using instanceof checks and type assertions to satisfy TypeScript strict mode while maintaining ESLint compliance. All tests passing, linter clean.
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.
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.