This provides one-click access to commonly-needed developer tools. So far, we have:
Plugin Outlet Debug
This shows all plugin outlets, with tooltips showing realtime values of all of the available @outletArgs.
This was inspired by the popular plugin outlet locations theme component, and the plugin before it. But unlike those, the tight integration with core means it can always be 100% up-to-date with the latest outlets & arguments.
In development, this is enabled by default, and can be disabled using the ‘X’ button.
In production, it can be enabled by running enableDevTools() in the browser console. You can even try it here on Meta! If enableDevTools() is not available, it’s probably because you’re on an error page which doesn’t load the full Ember app.
We hope to add more tools over the coming weeks/months, so watch this space! If you have any feedback, or ideas for tools, let us know below!
Clicking the icon to show outlets makes Chrome crash, making the page/tab unresponsive. I disabled my Chrome extensions, but it still crashes.
More specifically, it crashes when clicking the icon while on a topic (not only on meta).
On Firefox/Edge, it works but there’s an error in the console:
Multiple connectors were registered for the discovery-list-area outlet. Using the first.
Array [ undefined, "discovery-list-area/kanban-board (discourse/theme-351/discourse/connectors/discovery-list-area/kanban-board)" ]
When viewing a development environment on mobile, the toolbar will appear on the left of the screen so you can use it as normal.
In production environments, you’ll need to call enableDevTools() from the console (or from theme/theme-component javascript) to turn on the toolbar. Note that this has a performance cost, so you shouldn’t do it for all users on a real production site.
You don’t have the mobile toggle in desktop mode. I believe it appears only on mobile or tablet.
Also, this is about the convenience of having all the buttons in the same place.
Right now the 404 pages don’t load any of the ember app JS. There is a hidden site setting bootstrap_error_pages which you can enable to make them full ember app pages.
Perhaps we’ll make that the default in future, but it’s not at the top of our priority list right now.