-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Project Overview
Build a web-based authoring tool for component schemas that addresses the critical gap between component schema enum values and token option names.
Problem Statement
- Component schemas use abbreviated values:
s,m,l,xl - Token names use full words:
small,medium,large,extra-large - No explicit mapping exists between these values
- 26 components duplicate identical size patterns
- Manual JSON editing is error-prone and inconsistent
Solution
A web-based authoring tool that:
- Establishes explicit schema-to-token mappings
- Creates reusable size profiles for consistency
- Provides validation and consolidation features
- Enables automated GitHub PR workflow
- Runs entirely in browser (zero infrastructure cost)
Architecture
- Frontend: React + TypeScript + Vite
- UI: Spectrum Web Components
- Git: isomorphic-git (browser-based)
- API: @octokit/rest (GitHub API)
- Deployment: Static GitHub Pages
- Authentication: GitHub OAuth Device Flow
Implementation Plan
Planning & Discussion
v1 MVP (Must Have) - 4-6 weeks
- [Epic] v1 MVP: Schema Foundation for Token Mapping #647
- [Epic] v1 MVP: Basic Mapping Editor Tool #648
- [v1] Deployment to GitHub Pages & Documentation #656
v2 (Should Have) - 10-14 weeks
- [v2] Full Validation Dashboard #649
- [v2] Consolidation Features #650
- [v2] Anatomy Editor #651
- [v2] Automated GitHub PR Creation Workflow #652
v3+ (Nice to Have) - Future
- [v3] Figma Plugin Companion Tool #653
- [v3] Platform-Specific Size Profiles #654
- [v3] Advanced Batch Operations & Analytics #655
Success Metrics
- Completeness: 100% of components have explicit schema-to-token mappings
- Consolidation: 26+ components use shared size profiles (reduce duplication)
- Adoption: 80%+ of schema changes made via tool (vs manual editing)
- Quality: 95%+ validation pass rate for all components
- Efficiency: 80%+ time saved vs manual JSON editing
- Cost: Zero infrastructure costs (static hosting)
Strategic Alignment
- RFC [DRAFT RFC] Token Schema Structure and Validation System #646: Fills the schema-to-token mapping gap
- RFC [DRAFT RFC] Token Authoring Workflow and Process #625: Enables structured authoring workflow
- RFC [DRAFT RFC] Component Schema Feedback Automation Pipeline #642: Provides maintenance process for component schemas
- RFC [DRAFT RFC] Token Structure Changes for Multi-Platform Support #624: Prepares for multi-platform support
User Personas
- Designers: Need simple UI to author component options (Figma plugin in v3)
- Developers: Need full control, validation, GitHub integration (web tool)
- Token Maintainers: Need schema-token consistency (validation features)
Dependencies
- React, Vite, TypeScript
- Spectrum Web Components
- isomorphic-git + Lightning FS
- @octokit/rest
- Ajv (JSON Schema validation)
- diff2html
Risks & Mitigations
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Browser storage limits | Medium | Medium | Monitor usage, clear old clones, repo is only ~10MB |
| Git operations fail | High | High | Comprehensive error handling, fallback export |
| User adoption low | Medium | High | User testing, clear docs, designer outreach |
| Merge conflicts | Medium | Medium | Auto-sync, clear error messages |
| OAuth complexity | Low | Medium | Clear UI, good error messages |
Related Documents
- Main Plan:
.cursor/plans/figma_plugin_poc_for_token_spec_authoring_067bdbb4.plan.md - Component Schema Analysis:
.cursor/plans/component-schema-analysis.md - GitHub PR Workflow:
.cursor/plans/github-pr-workflow-design.md - Deployment Architecture:
.cursor/plans/deployment-architecture-analysis.md - RFC Context:
.cursor/plans/rfc-context-summary.md - POC Analysis:
.cursor/plans/figma-plugin-poc-analysis.md
Status
🟡 Planning Complete - Ready to begin implementation with #647
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request