Skip to content

feat: prevent navigation when editing SQL statements in plan editor #17115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2025

Conversation

boojack
Copy link
Contributor

@boojack boojack commented Aug 8, 2025

Close BYT-7812

image

- Add editor state management to track editing mode
- Block all navigation actions when in edit mode
- Show confirmation dialog for route changes during editing
- Add browser navigation guard (back/forward/refresh)
- Disable action buttons with helpful tooltips when editing
- Simplify state to just track isEditing status

Users must now explicitly save or cancel changes before navigating away,
preventing accidental data loss when editing SQL statements.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@boojack boojack requested a review from a team as a code owner August 8, 2025 08:00
@cla-bot cla-bot bot added the cla-signed label Aug 8, 2025
@boojack boojack merged commit 1b04c0e into bytebase:main Aug 8, 2025
11 checks passed
@boojack boojack deleted the feat-prevent-navigation branch August 8, 2025 08:07
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.

2 participants