The discussion revolves around the Enable Dev Tools Button theme component, which adds a header button to toggle Discourse Developer Tools. NateDhaliwal introduced the component, with a button that changes from a bug to a bug-slash icon when enabled, using localStorage to persist state. Heliosurge raised concerns about the button appearing to non-admin users and its placement near the profile section, possibly due to the f-nav theme component. NateDhaliwal added an admin_only setting and clarified the button’s position relative to the search icon. Andrew_Rowe reported the button not appearing, which NateDhaliwal attributed to visibility issues due to color matching, later fixed with a component update. RGJ identified a bug in the admin_only logic causing errors when users are not logged in, prompting a fix. The component has been updated to improve functionality and code quality, with plans to transition to a .gjs file.
This Theme Component adds a button to the site header to enable the Developer Tools. When Dev Tools are not enabled, the button is the normal bug icon. When it is enabled, it is at the bug-slash icon.
Before enabling:
After enabling:
The button should remain at its respective state even when the page is closed, as it uses localStorage.
It moves the search and chat a a few other goodies to a bottom bar. Not a big deal. As the Dev bar when active is a bit busy compared to the old TC plugin outlets in mobile.