feat: Enhance performance guidelines with multi-threading and code refactoring allowances

This commit is contained in:
William Valentin
2025-08-08 21:42:09 -07:00
parent ae4503145a
commit ed34d5bfac

View File

@@ -66,12 +66,14 @@ applyTo: '**'
### 8. Performance
- Use efficient methods for updating UI elements (e.g., batch delete/insert for Treeview).
- Avoid unnecessary data reloads or UI refreshes.
- Use multi-threading when appropriate.
## When Generating or Reviewing Code
- Respect the modular structure—add new logic to the appropriate manager or window class.
- Do not hardcode medicine/pathology names—always use dynamic keys from the managers.
- Preserve user feedback (status bar, dialogs) for all actions.
- Maintain keyboard shortcut support for new features.
- Code Refactoring is allowed as long as it does not change the external behavior of the code.
- Ensure compatibility with the existing UI and data model.
- Write clear, concise, and maintainable code with proper type hints and docstrings.