feat(devtools): add DevTool module for module management#33
Merged
Conversation
…and debugging and others modules in future
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new "DevTool" developer utility panel for Aurora Shell, gated by the
AURORA_DEVTOOLSenvironment variable. The DevTool provides a user interface for developers to interactively test and manage tray icons, replacing the previous hardcoded debug logic. It includes a new tray icon testing tool, associated UI styles, and a comprehensive integration test. The changes also clean up legacy debug code and ensure the DevTool is only available in development environments.DevTool integration and tray icon testing:
DevToolclass (src/modules/devTool/devTool.ts) that provides a developer panel in the GNOME Shell status area whenAURORA_DEVTOOLS=1is set. This panel includes tabs for developer utilities, currently featuring tray icon testing tools.TrayIconsDevToolclass (src/modules/devTool/trayIconsDevTool.ts), allowing developers to add, remove, and trigger attention states on fake tray icons for testing purposes.src/extension.ts) to enable or disable the DevTool based on theAURORA_DEVTOOLSenvironment variable, and to expose the DevTool instance for testing. [1] [2] [3] [4] [5] [6]Testing and development environment:
tests/shell/auroraDevTool.js) to verify that the DevTool only appears when gated, and that tray icon actions work as expected.scripts/run-gnome-shell.sh) to setAURORA_DEVTOOLS=1for developer sessions, and removed legacyAURORA_TRAY_DEBUGlogic. [1] [2]UI and styling:
src/styles/_devtool.scss), and included them in both light and dark themes. [1] [2] [3]Codebase cleanup:
TrayIconsmodule, consolidating all such logic into the new DevTool.