mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-02 00:27:49 +01:00
3260c48130ba13599b1f936966be409ea554e9ae
* Initial plan * Extract shared automation rows logic into AutomationRowsMixin Create ha-automation-rows-mixin.ts with common list manipulation methods (moveUp, moveDown, move, itemMoved, itemAdded, itemRemoved, itemChanged, duplicateItem, insertAfter, handleDragKeydown, stopSortSelection, getKey) and shared properties (hass, disabled, narrow, optionsInSidebar, _rowSortSelected, _clipboard). Refactor ha-automation-trigger, ha-automation-condition, ha-automation-action, and ha-automation-option to use the mixin, eliminating significant code duplication. Co-authored-by: wendevlin <12148533+wendevlin@users.noreply.github.com> * Address review feedback: rename to AutomationSortableListMixin, remove _ prefix from protected members, throw in setHighlightedItems - Rename AutomationRowsMixin to AutomationSortableListMixin - Rename file to ha-automation-sortable-list-mixin.ts - Remove _ prefix from all protected methods/properties - Make setHighlightedItems throw Not implemented error - Update all 4 component files with new references Co-authored-by: wendevlin <12148533+wendevlin@users.noreply.github.com> * Add missing this.items = items in itemChanged to avoid UI jump The original _conditionChanged had this.conditions = conditions before fireEvent to update local state and avoid UI jumps. This was lost during the mixin extraction. Co-authored-by: MindFreeze <5219205+MindFreeze@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wendevlin <12148533+wendevlin@users.noreply.github.com> Co-authored-by: MindFreeze <5219205+MindFreeze@users.noreply.github.com>
…
…
Home Assistant Frontend
This is the repository for the official Home Assistant frontend.
Development
- Initial setup:
script/setup - Development: Instructions
- Production build:
script/build_frontend - Gallery:
cd gallery && script/develop_gallery
Frontend development
Classic environment
A complete guide can be found at the following link. It describes a short guide for the build of project.
License
Home Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.
We use BrowserStack to test Home Assistant on a large variety of devices.
Description
Languages
TypeScript
98.8%
JavaScript
1.1%

