Keep the job list mounted across sidebar collapse so it does not flash.

Expanding used to replay a fade-in and sometimes remount CronApp onto an
empty state before /jobs returned. Reattach the existing root and skip
setState when the snapshot has not changed.
This commit is contained in:
Whale-Zhang 2026-08-24 21:06:37 +08:00
parent 30e37b5e89
commit 4447404361
2 changed files with 43 additions and 22 deletions

View file

@ -61,6 +61,9 @@ test('installable bundle declares host apply, client half, unique id, and no @de
assert.match(client, /centerCol/)
assert.match(client, /data-dsh-ct-host/)
assert.match(client, /_collapsed"\]\[data-dsh-ct-mode=on\] \.dsh-ct-region/)
assert.match(client, /listRoot\.parentElement !== region\) region\.appendChild\(listRoot\)/)
assert.match(client, /jobStamp/)
assert.doesNotMatch(client, /\[data-dsh-ct-mode=on\] \.dsh-ct-region\{display:flex !important;animation:/)
assert.match(client, /visibility:hidden/)
assert.match(client, /createPortal\(editor, paneHost\)/)
assert.match(client, /sidebarCollapsed/)