feat: Add schema converter library and GitHub PR workflow#691
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
|
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.
|
Maintainer triage (Mar 2026)
Suggested next steps
|
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.