ICRAR / EAGLE

Editor for the Astronomical Graph Language Environment
GNU Lesser General Public License v3.0
0 stars 1 forks source link

Eagle 1285 #733

Closed M-Wicenec closed 3 months ago

M-Wicenec commented 3 months ago

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:

sourcery-ai[bot] commented 3 months ago

Reviewer's Guide by Sourcery

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.

File-Level Changes

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

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.