fix(sidebar): drop panel host below DSH cordis dynamic-plugin layer (z 40→25)

The ui-cordis CordisPanel is position:fixed at z-index 30; the unified
panel host at 40 made the bottom workbench cover the cordis inventory
and approval surfaces. Host now sits at 25 (above AppFrame overlay 20,
below cordis 30 and the 100+ float stack). Update skin contract docs
and add a mount e2e assertion for the layering band.
This commit is contained in:
ZgblKylin committed 2026-08-22 19:10:02 +08:00
1 parent f0965e1d61
commit e24d9bf879
5 files changed
+41 -19

No files matched your search

+9
View File
@@ -143,6 +143,15 @@ test('plugin mounts into the DSH shell and survives a built-in tab sweep', async
// The unified panel host: the fixed containing block every panel lives in
// (data-dsh-panel-host). Its presence is part of the injection contract.
await expect(page.locator('[data-dsh-panel-host]')).toBeAttached({ timeout: 90_000 })
// The host's global z-index is part of the layering contract: it must
// sit above the AppFrame overlay layer (20) and below DSH's ui-cordis
// dynamic-plugin panel (fixed, 30) so that surface is never hidden behind
// the workbench, and below the DSH float stack (100+).
const hostZ = await page.locator('[data-dsh-panel-host]').evaluate(
(el) => Number.parseFloat(getComputedStyle(el).zIndex),
)
expect(hostZ).toBeGreaterThan(20)
expect(hostZ).toBeLessThan(30)
// A keyless boot stacks onboarding takeovers that mask the whole shell: a
// versioned welcome notice ("Continue", persists its acknowledgement to