1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-21 03:09:47 +00:00

Add entities filtering and reordering for areas strategy dashboard (#24677)

* Add entities editor

* Save entities per domain and area

* Use hidden and reorder logic in dashboard

* Add overview hidden logic

* Don't use icon for nav

* Remove overview hidden

* Change default text

* Fix icons

* Rename config properties
This commit is contained in:
Paul Bottein
2025-03-19 21:11:46 +01:00
committed by GitHub
parent 0e8be25a60
commit 2c0c48106d
10 changed files with 489 additions and 151 deletions

View File

@@ -33,8 +33,11 @@ export class HaAreasDisplayEditor extends LitElement {
@property({ type: Boolean }) public required = false;
@property({ type: Boolean, attribute: "show-navigation-button" })
public showNavigationButton = false;
protected render(): TemplateResult {
const compare = areaCompare(this.hass.areas, this.value?.order);
const compare = areaCompare(this.hass.areas);
const areas = Object.values(this.hass.areas).sort((areaA, areaB) =>
compare(areaA.area_id, areaB.area_id)
@@ -68,6 +71,7 @@ export class HaAreasDisplayEditor extends LitElement {
.items=${items}
.value=${value}
@value-changed=${this._areaDisplayChanged}
.showNavigationButton=${this.showNavigationButton}
></ha-items-display-editor>
</ha-expansion-panel>
`;