mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-05 06:08:59 +00:00
fix: сохранить клавиатурную подсказку (#565)
Issue: #565 User-Visible: yes
This commit is contained in:
committed by
claude[bot]
parent
c23c7927de
commit
dded4fbd5c
@@ -150,6 +150,28 @@ const MUTANT_DEFINITIONS = [
|
||||
replace: ' private _hideDeviceFocusTip(deviceId: string): void { void deviceId; }',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'device-focus-tooltip-room-hover-overwrites',
|
||||
guard: 'node demo/smoke_household_journeys.mjs',
|
||||
because: '#565 AC6/r1 M1: moving a mouse over the room must not erase a keyboard-owned '
|
||||
+ 'device tooltip while focus remains on that device',
|
||||
patches: [{
|
||||
file: 'src/houseplan-card.ts',
|
||||
find: " if (room && this._liveRt?.deviceFocusActive()) return;",
|
||||
replace: ' void this._liveRt; // mutant: room hover overwrites the focus tooltip',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'device-pointer-leave-clears-focus-fallback',
|
||||
guard: 'node demo/smoke_household_journeys.mjs',
|
||||
because: '#565 AC6/r1 M1: pointerleave after a temporary device hover must restore the '
|
||||
+ 'still-focused keyboard tooltip instead of falling through to the destructive fallback',
|
||||
patches: [{
|
||||
file: 'src/houseplan-card.ts',
|
||||
find: ' private _clearPointerHover(): void { this._liveRt ? this._liveRt.pointerLeave() : this._clearTransientHover(); }',
|
||||
replace: ' private _clearPointerHover(): void { this._liveRt?.pointerLeave() ?? this._clearTransientHover(); }',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'invariants-blame-every-stale-position',
|
||||
guard: 'node --test --test-name-pattern="#566" test/model-invariants.test.mjs',
|
||||
|
||||
Reference in New Issue
Block a user