You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this commit, the GUIAdapter now correctly binds UI controls to commands using the newly introduced GUICommandRegistry. This improves the modularity and extensibility of the system by replacing the old CommandFactory with a more centralized approach to command registration.
Key changes:
- Introduced `GUICommandRegistry` in `settings.js` to globally register commands before GUI initialization.
- Updated `GUIAdapter` to receive `GUICommandRegistry` as a dependency instead of instantiating its own factory.
- `bindUIControls()` now logs available commands and correctly binds them to UI elements.
- Removed outdated `Command.js` and `CommandFactory.js`, which are now replaced by `GUICommandRegistry`.
- Updated `GUIAdapter.test.js` to inject `GUICommandRegistry` for better test isolation.
This refactor ensures that commands are managed in a consistent manner across the application, allowing new commands to be added globally without modifying `GUIAdapter` directly.
0 commit comments