-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Overview
Build features to identify and consolidate duplicate patterns across components.
Context
Analysis found 26 components with identical size enums, 21 with similar state enums, and many shared property patterns. Consolidation reduces maintenance burden and improves consistency.
Goals
- Detect duplicate patterns
- Group similar components
- Enable bulk operations
- Track consolidation progress
Tasks
-
Build consolidation scanner
- Scan all components for duplicate enums
- Group by exact match
- Find similar (but not identical) patterns
- Calculate consolidation opportunities
- Score consolidation benefits
-
Build consolidation UI
- Display duplicate groups
- Show components in each group
- Preview changes before applying
- Show impact analysis (how many files affected)
-
Enable bulk operations
- Bulk assign size profiles to multiple components
- Bulk update enum values (e.g., "keyboard focus" → "keyboard-focus")
- Bulk add missing properties
- Bulk apply validation fixes
-
Add consolidation recommendations
- Suggest which components should use same profile
- Identify candidates for shared property groups
- Recommend state profile assignments
- Flag outliers (components not following patterns)
-
Track consolidation progress
- Show consolidation score (% of components using profiles)
- Display reduction in duplication
- Track before/after metrics
-
Add preview and rollback
- Preview all changes before applying
- Show detailed diff for each file
- Enable selective application
- Support undo/rollback
Success Criteria
- Tool identifies 26 components ready for standard size profile
- Bulk operations reduce manual work by 80%+
- Consolidation score tracked and improved
- Zero unintended changes (all previewed and approved)
Dependencies
- [Epic] v1 MVP: Basic Mapping Editor Tool #648 (Basic tool)
- [v2] Full Validation Dashboard #649 (Validation for checking changes)
Estimated Effort
3-4 weeks
Related
- Component Schema Analysis: 26 components with
["s", "m", "l", "xl"]
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request