Fabio Manganiello
714f853751
Pass the list of children to the entity component.
2023-03-20 01:27:21 +01:00
Fabio Manganiello
f74fab795d
Added `parent` component value to `Entity`.
2023-03-19 12:50:45 +01:00
Fabio Manganiello
dabbe031ab
Don't show the entity modal unless the user clicks on the name or icon
2023-01-21 23:46:38 +01:00
Fabio Manganiello
241670c9d0
Handle parent/child update events through broadcast bus events
2023-01-21 16:58:28 +01:00
Fabio Manganiello
fb562bb415
Propagate the @update event to the parent entities
2023-01-21 14:55:06 +01:00
Fabio Manganiello
2cc5e3f726
UI tweaks
2023-01-15 15:46:25 +01:00
Fabio Manganiello
9e4fbc6a21
Defined the collapsed data property on EntityMixin level
2023-01-15 15:29:26 +01:00
Fabio Manganiello
e9371ac5d0
Improved entity collapse logic
...
- Toggle collapsed state also if clicked on the gap between the entity
name and the right edge, instead of opening the entity modal. The
entity configuration modal should open only when clicking on the
entity name or icon (and these should be highlighted on hover as links
as well).
- The collapsed state update should be propagated to the wrapped
component as well, if applicable.
2023-01-15 15:03:53 +01:00
Fabio Manganiello
2778357a9e
Wrapped dynamic Vue components in shallowRef.
...
The performance of the page is heavily degraded by components loaded
dynamically via defineAsyncComponent that recursively carry behind the
whole Vue machinery.
By wrapping defineAsyncComponent calls in shallowRef we make sure that
we only wire the root level of the newly created dynamic component.
2023-01-14 22:31:48 +01:00
Fabio Manganiello
22a566a88b
More refactors and fixes for `zigbee.mqtt`
2023-01-13 02:58:47 +01:00
Fabio Manganiello
80c2c77272
Support for entities with children on the frontend
2023-01-01 23:06:40 +01:00
Fabio Manganiello
bba582875a
The `data` attribute on `EntityUpdateEvent` shouldn't be taken into account for flashing updates
2022-11-27 00:56:23 +01:00
Fabio Manganiello
7fac5392b8
Blink entities only if their values have actually changed
2022-11-13 23:52:21 +01:00
Fabio Manganiello
833d908a32
Blink entities body upon update
2022-11-13 01:39:40 +01:00
Fabio Manganiello
78dc8416fb
Snake case -> camel case for backend -> frontend entity types conversion
2022-10-30 11:01:46 +01:00
Fabio Manganiello
f760d44224
Refactored/simplified UI code for entities management
2022-05-01 15:34:15 +02:00
Fabio Manganiello
ef6b57df31
Added entity info modal and (partial) support for renaming entities
2022-04-23 01:01:14 +02:00
Fabio Manganiello
595ebe49ca
Support for entity scan timeout errors and visual error handling
2022-04-12 15:58:19 +02:00
Fabio Manganiello
20530c2b6d
Loading events are now synchronized both ways upon entity action/refresh
2022-04-12 01:10:09 +02:00
Fabio Manganiello
9ddcf5eaeb
Implemented entities refresh on the UI
2022-04-12 00:43:22 +02:00
Fabio Manganiello
58861afb1c
Added entities panel
2022-04-10 13:07:36 +02:00