Skip to content

[v2] Consolidation Features #650

@GarthDB

Description

@GarthDB

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

  1. Detect duplicate patterns
  2. Group similar components
  3. Enable bulk operations
  4. 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

Estimated Effort

3-4 weeks

Related

  • Component Schema Analysis: 26 components with ["s", "m", "l", "xl"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions