Skip to content

v2.9.1 - ProfileHeaderGlass Refactoring

Choose a tag to compare

@artyhoo artyhoo released this 25 Dec 02:54

What's Changed

Refactoring

  • ProfileHeaderGlass simplified as composite component
    • Now delegates to ProfileHeaderExtendedGlass (transparent mode) + AICardGlass
    • Removed ~90 lines of duplicate code
    • Improved maintainability - single source of truth for profile display logic
    • ProfileHeaderExtendedGlass handles all user information rendering
    • AICardGlass positioned alongside as separate glass card

Breaking Changes

  • Removed transparent prop from ProfileHeaderGlass (no longer needed)
    • ProfileHeaderExtendedGlass is now always rendered in transparent mode within ProfileHeaderGlass
    • If you need transparent mode, use ProfileHeaderExtendedGlass directly

Improvements

  • Better code organization and reusability
  • Reduced bundle size
  • Easier to maintain and extend
  • Updated tests to reflect composite architecture

Full Changelog: v2.9.0...v2.9.1