Skip to content

Conversation

@abdulrahmancodes
Copy link
Contributor

@abdulrahmancodes abdulrahmancodes commented Jan 13, 2026

Closes #17089

- Introduced a check for the command menu's open state before processing navigation stack.
- Updated logic to ensure that the current record ID is only retrieved when the command menu is open and reset navigation stack is not triggered.
- Improved readability and maintainability of the code by restructuring conditional checks.
- Enhanced the handling of side panel closing events by introducing a check for the command menu's open and closing states.
- Utilized Recoil's snapshot to conditionally deactivate the record table row only when the command menu is not active, improving the overall user experience and preventing unintended deactivations.
- Refactored the side panel closing listener to use a callback for better state management.
- Renamed the deactivation handler for clarity and improved the logic to ensure record deactivation only occurs when the command menu is not open.
- Introduced a microtask queue to check the command menu state after the current execution, enhancing the responsiveness of the side panel closing event.
- Refactored the side panel closing listener to utilize the updated deactivation logic for better state management.
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:40449

This environment will automatically shut down when the PR is closed or after 5 hours.

- Renamed the deactivation handler to improve clarity and better reflect its purpose.
- Updated the logic to ensure that record deactivation occurs only when the command menu is closed, enhancing the user experience.
- Adjusted the side panel closing listener to utilize the renamed handler for improved readability and maintainability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't reopen record after having navigated to its show page

2 participants