diff --git a/debian/changelog b/debian/changelog index 915513526..1bd616fe6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +wb-mqtt-homeui (2.250.4) stable; urgency=medium + + * DALI: live device controls on device, group and bus pages — a featured strip + of the controls one reaches for (level, colour, temperature, on/off) with + the rest behind "All controls"; the page toolbar names what is open, which + the hidden tree no longer does on mobile, and its buttons wrap on phones + + -- Wiren Board Robot Mon, 31 Aug 2026 20:40:00 +0300 + wb-mqtt-homeui (2.250.0) stable; urgency=medium * DALI: host capabilities for embedding hosts — the syslog toggle and the MQTT id diff --git a/frontend/src/components/collapsible-panel/collapsible-panel-toggle.test.tsx b/frontend/src/components/collapsible-panel/collapsible-panel-toggle.test.tsx new file mode 100644 index 000000000..c16bef26e --- /dev/null +++ b/frontend/src/components/collapsible-panel/collapsible-panel-toggle.test.tsx @@ -0,0 +1,20 @@ +// @vitest-environment happy-dom +import { fireEvent, render, screen } from '@testing-library/react'; +import { CollapsiblePanel } from './collapsible-panel'; + +describe('CollapsiblePanel: the whole title row toggles, exactly once per click', () => { + it('clicking the title text collapses and expands the body', () => { + render(
body
); + expect(screen.getByText('body')).toBeTruthy(); + fireEvent.click(screen.getByText('Broadcast settings')); + expect(screen.queryByText('body')).toBeNull(); + fireEvent.click(screen.getByText('Broadcast settings')); + expect(screen.getByText('body')).toBeTruthy(); + }); + + it('the toggle row is not a