Releases: sergiocarracedo/sc-custom-cards
Releases · sergiocarracedo/sc-custom-cards
v1.6.0 - Area Card Variants
What's New
Area Card Variants
- Added three size variants for the Area Card: default, compact, and mini
- Each variant has proportional sizing for fonts, icons, gaps, padding, and border radius
- Variants maintain readability with minimum 11px font sizes
Features
- New ,variant property - Choose from ,default, ,compact, or ,mini
- Proportional scaling - All elements scale appropriately with the variant
- Visual editor support - Style and variant selectors in the card editor
- Card editor preview - Preview heights match actual card dimensions
Improvements
- Humidity chart Y-axis fixed to 0-100 scale
- Chart heights adjusted per variant to prevent overflow
- Entity summary gaps scale proportionally
- Border radius and padding scale with variant size
Bug Fixes
- Fixed chart overflow in compact and mini modes
- Fixed entity summary alignment in all variants
Assets
dist/sc-custom-cards.js
v1.5.0 - Visual Configuration Editors
🎉 Major Release: Visual Configuration Editors
This release introduces comprehensive visual configuration editors for all custom cards, making it easier than ever to configure your Home Assistant dashboards through the UI.
✨ New Features
Visual Configuration Editors
- Drag-and-drop interface for reordering summary items in Area Card
- Quick-add buttons for common entity types (Presence, Lights, Doors, Alarms)
- Inline editing with expandable sections for all configuration options
- Confirmation dialogs before deleting items to prevent accidental data loss
Internationalization (i18n)
- Custom localization system with support for 7 languages:
- English (en)
- Spanish (es)
- Galician (gl)
- French (fr)
- German (de)
- Catalan (ca)
- Basque (eu)
- All UI labels and help text are now translatable
Area Card Improvements
- Simplified architecture by deprecating preset fields in favor of flexible summary system
- Automatic migration of old preset configurations to new summary format
- Better organization with clear entity grouping
Testing & Quality
- Comprehensive unit test suite with >89% coverage (106/118 tests passing)
- Vitest integration for fast, modern testing
- Mock data factories for consistent test scenarios
- Full test documentation in TESTING.md
🐛 Bug Fixes
- Removed invalid entity selector area filter (not supported by Home Assistant API)
- Fixed action field labels to use proper
computeLabelcallbacks - Corrected button appearance attribute typo
- Various UI improvements and accessibility fixes
📚 Documentation
- Added
TESTING.mdwith comprehensive test suite documentation - Added Allium specification for complete domain modeling
- Updated README with new editor features
🔧 Technical Improvements
- TypeScript configuration updated to include test files for better IDE support
- ESLint configuration cleaned up for consistent code style
- Removed unused code and imports
📦 Migration Notes
Area Card users: Your existing configurations will be automatically migrated to the new summary system. The deprecated preset fields (presence, alarm, door, light) will be converted to summaries on first load.
Full Changelog
See CHANGELOG.md for detailed commit history.