devtools/docs
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
..
framework fix(devtools-utils): align Svelte factory contracts (#504) 2026-08-20 11:22:18 +02:00
plugins a11y plugin (#326) 2026-03-13 15:18:56 +01:00
reference feat: fix event bus port issues (#297) 2025-12-26 13:23:56 +01:00
superpowers/specs feat: redesign TanStack Devtools workbench (#492) 2026-08-10 14:12:44 +02:00
architecture.md feat(devtools-webmcp): add a development-only WebMCP tool registry (#531) 2026-09-23 13:27:22 +02:00
bidirectional-communication.md docs: comprehensive documentation overhaul (#363) 2026-03-04 13:52:26 +01:00
building-custom-plugins.md feat(event-client): strip the root EventClient export from production by default (#471) 2026-06-24 13:13:14 +02:00
config.json feat(devtools-webmcp): add a development-only WebMCP tool registry (#531) 2026-09-23 13:27:22 +02:00
configuration.md feat(devtools): add openAsModal to use the panel over app modal dialogs (#550) 2026-10-29 16:13:15 +01:00
devtools-utils.md fix(devtools-utils): align Svelte factory contracts (#504) 2026-08-20 11:22:18 +02:00
event-system.md docs: comprehensive documentation overhaul (#363) 2026-03-04 13:52:26 +01:00
installation.md feat: add Svelte 5 adapter and devtools-utils Svelte factories (#366) 2026-06-23 11:12:54 +02:00
overview.md feat: redesign TanStack Devtools workbench (#492) 2026-08-10 14:12:44 +02:00
plugin-configuration.md docs: remove duplicate page headings (#527) 2026-09-15 11:05:56 -05:00
plugin-lifecycle.md fix(devtools-utils): align Svelte factory contracts (#504) 2026-08-20 11:22:18 +02:00
plugin-workspace.md feat(devtools): rainbow trigger, persist strip fold, and pane gutters (#510) 2026-08-19 18:50:38 +02:00
production.md feat(devtools-webmcp): add a development-only WebMCP tool registry (#531) 2026-09-23 13:27:22 +02:00
quick-start.md feat: add Svelte 5 adapter and devtools-utils Svelte factories (#366) 2026-06-23 11:12:54 +02:00
source-inspector.md feat(devtools): let the source inspector's open-source URL be configured (#517) 2026-09-23 10:41:07 +02:00
third-party-plugins.md feat(docs): add third party plugins documentation (#229) 2025-10-22 17:42:57 +02:00
vite-plugin.md refactor(devtools-vite): migrate from Babel to oxc-parser + MagicString (#397) 2026-05-13 16:13:22 +02:00
webmcp-tools.md feat(devtools-webmcp): add a development-only WebMCP tool registry (#531) 2026-09-23 13:27:22 +02:00