devtools/e2e/apps
Alem Tuzlak 7b5f1eef8b
feat(devtools): add openAsModal to use the panel over app modal dialogs (#550)
* feat(devtools): add openAsModal to use the panel over app modal dialogs

A dialog opened with showModal() makes the rest of the page inert, the
devtools included, and no z-index or popover gets past that.

With `openAsModal: true`, while the panel is open and the app has a modal
dialog open, the devtools root moves into a modal dialog of its own shown on
top. It moves back when the panel or the app dialog closes. Escape closes
only the panel: the hook prevents the browser from passing the same Escape
on to the app dialog.

A non-modal <dialog open> does not block the devtools, so it needs nothing.

Fixes #369

* fix(devtools): keep openAsModal on top of later dialogs and release removed ones

Two cases left the devtools or the page stuck:

- The app opened another modal dialog while the panel was on top. That dialog
  became the topmost modal and the devtools were inert behind it. The host is
  now shown again when an app dialog opens after it.
- The app removed an open dialog without close(), for example on unmount.
  That is a child list change, which the observer did not watch, so the host
  stayed modal and the page stayed inert. The observer now watches child
  list changes too.
History 2026-10-29 16:13:15 +01:00
..
angular test: e2e suite (8 apps + server↔client probe) + unit/component coverage (#472) 2026-06-23 20:37:55 +02:00
preact fix(preact): Unmount panels on Preact 11 and pass app context to plugins (#551) 2026-10-11 12:17:15 -05:00
react-cloudflare test: e2e suite (8 apps + server↔client probe) + unit/component coverage (#472) 2026-06-23 20:37:55 +02:00
react-nitro test: e2e suite (8 apps + server↔client probe) + unit/component coverage (#472) 2026-06-23 20:37:55 +02:00
react-start test: e2e suite (8 apps + server↔client probe) + unit/component coverage (#472) 2026-06-23 20:37:55 +02:00
react-vite feat(devtools): add openAsModal to use the panel over app modal dialogs (#550) 2026-10-29 16:13:15 +01:00
solid test: e2e suite (8 apps + server↔client probe) + unit/component coverage (#472) 2026-06-23 20:37:55 +02:00
vue test: e2e suite (8 apps + server↔client probe) + unit/component coverage (#472) 2026-06-23 20:37:55 +02:00