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
Describe the current limitation
Currently, menu labels, IDs, and accelerator keys in the menu.js file are hardcoded across multiple functions, which makes the code harder to maintain and increases the chance of inconsistencies. Updating a menu label or shortcut requires finding each occurrence, making changes more time-consuming and prone to error.
Describe the proposed feature or enhancement
Introduce a set of centralized constants for menu labels, IDs, and accelerators. These constants could be defined at the top of the file or in a separate constants.js file. By using constants, menu items can be updated in one place, improving maintainability, readability, and reducing redundancy across the codebase.
Additional context
Centralizing these values reduces the likelihood of typos or inconsistencies, makes future localization easier, and enhances the overall structure of the code by separating data definitions from function logic. This approach also improves clarity for new contributors.
The text was updated successfully, but these errors were encountered:
Describe the current limitation
Currently, menu labels, IDs, and accelerator keys in the menu.js file are hardcoded across multiple functions, which makes the code harder to maintain and increases the chance of inconsistencies. Updating a menu label or shortcut requires finding each occurrence, making changes more time-consuming and prone to error.
Describe the proposed feature or enhancement
Introduce a set of centralized constants for menu labels, IDs, and accelerators. These constants could be defined at the top of the file or in a separate constants.js file. By using constants, menu items can be updated in one place, improving maintainability, readability, and reducing redundancy across the codebase.
Additional context
Centralizing these values reduces the likelihood of typos or inconsistencies, makes future localization easier, and enhances the overall structure of the code by separating data definitions from function logic. This approach also improves clarity for new contributors.
The text was updated successfully, but these errors were encountered: