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
refactor(filepanel): replace filePanelFocusType with isFocused boolean (#1040)
The filePanelFocusType typed constant with multiple states (noneFocus,
secondFocus, focus) added unnecessary complexity for managing panel
focus. It also made the code harder to read and maintain.
Solution
Replaced filePanelFocusType with a simple isFocused boolean field in
filePanel.
isFocused = true → panel is focused
isFocused = false → panel is not focused
This change removes unused constants and simplifies focus handling.
Refs #1033
Refs #1030
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- Refactor
- Simplified panel focus handling to a single, consistent indicator
across navigation, rendering, and key interactions, improving
reliability and consistency in focus behavior.
- Style
- Minor formatting cleanups for readability without changing behavior.
- Chores
- Consolidated internal variable declarations and adjusted logging to
reflect the updated focus indicator.
No user-facing features changed; interactions should feel more
consistent and stable, especially when switching panels and using the
sidebar or process bar.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: lazysegtree <59679977+lazysegtree@users.noreply.github.com>
0 commit comments