Problem/Motivation

On last WebWash video, at 23:20 mark, Ivan clicked on highlight button when on PreviewPanel, it did nothing (which is normal) and then moved to LayersPanel, it did nothing again (which is normal too). Highlight button, from ControlButtons island, works only for BuilderPanel and it is confusing because it is still active when other panels or activated.

Proposed resolution

Can we add a mechanism allowing Islands or part of islands (like a single button) to be disabled or enabled according to the current tabs?

This mechanism is not related to HTMX because there is no HTTP requests when we switch tabs.

This mechanism must not be a hack around Highlight button but a clean, reusable, generic solution. It must fit with #3554417: Isolate islands logic to its own module.

It will also allow us to disable ViewportSwitcher select list when not in BuilderPanel or
PreviewPanel.

Comments

pdureau created an issue. See original summary.

pdureau’s picture