Closed M-Wicenec closed 3 months ago
This pull request implements a new status bar feature at the bottom of the Eagle application. The status bar displays relevant actions and shortcuts to help users learn and navigate the application. The implementation includes changes to multiple files to add the status bar UI, handle its visibility, and populate it with dynamic content.
Files | Changes |
---|---|
src/StatusEntry.ts |
Added a new StatusEntry class to manage status bar entries |
src/Utils.ts |
Modified Utils class to handle window width calculations based on visibility |
src/Utils.ts |
Updated getKeyboardShortcutTextByKey function to simplify shortcut text generation |
static/base.css |
Added CSS styles for the new status bar |
templates/base.html |
Updated base HTML template to include the status bar |
src/SideWindow.ts |
Modified SideWindow class to handle status bar transitions when toggling window visibility |
src/KeyboardShortcut.ts |
Updated KeyboardShortcut class to modify the order of delete keys |
src/main.ts |
Added StatusEntry to the main window object |
src/require-config.ts |
Updated require configuration to include StatusEntry |
The status bar is a new section at the bottom of eagle, allowing us to display relevant actions and shortcuts. This helps with learning eagle and will aid us in removing the inspector from the right window.
New file has been added with an array and system to allow for entries into the "status bar". each entry consists of an action/shortcut, a description and a visibility. The visibility will likely be a function to check for a certain scenario like, is a node selected. in which case we could show the action of deleting the node by pressing backspace.
Summary by Sourcery
Add a new status bar feature to the Eagle interface for displaying actions and shortcuts, and enhance the user interface with transition effects for side windows. Simplify the keyboard shortcut processing logic.
New Features:
Enhancements:
getKeyboardShortcutTextByKey
function to return only the first shortcut option for a given key, simplifying the logic and output.