mirror of
https://github.com/Matysh/houseplan-card
synced 2026-07-31 08:28:31 +00:00
v1.52.2: the v1.52.1 review (HP-1521-01, HP-1521-02)
- HP-1521-01: the plan-mode assertion looked for ANY .dev.on and the lit kettle satisfied it — a false positive hiding the very regression it guards. It targets d_lamp now (kettle asserted separately), and the mutation check proves it: reverting the v1.52.1 gate fails the smoke. - HP-1521-02: the checklist entry and the _stateClass comment still said 'yellow in every fill mode'. Both now state the two-part contract: the state predicate is the glow-pool condition; the renderer keeps the badge only where the spot is not drawn.
This commit is contained in:
@@ -56,8 +56,11 @@ const out = await page.evaluate(async () => {
|
||||
o.devicesEditorLampDark = !!le && !le.classList.contains('on');
|
||||
o.devicesEditorHasGlow = !!sr().querySelector('.stage svg radialGradient, .stage svg [id*=glow]');
|
||||
c._setMode('plan'); c.requestUpdate(); await c.updateComplete;
|
||||
const planLamp = [...sr().querySelectorAll('.dev')].find((e) => e.classList.contains('on'));
|
||||
o.planEditorLampYellow = !!planLamp; // слой скрыт — жёлтый вернулся
|
||||
// ИМЕННО лампа (mutation-проверка аудита HP-1521-01: розетка тоже on и
|
||||
// удовлетворяла бы поиску «любой .dev.on», пряча регресс самой лампы)
|
||||
le = devEl('d_lamp');
|
||||
o.planEditorLampYellow = !!le && le.classList.contains('on'); // слой скрыт — жёлтый вернулся
|
||||
o.planEditorKettleStillOn = !!devEl('d_kettle')?.classList.contains('on');
|
||||
o.planEditorNoGlow = !sr().querySelector('.stage svg radialGradient, .stage svg [id*=glow]');
|
||||
c._setMode('view'); c.requestUpdate(); await c.updateComplete;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user