mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
## Context Related to this PR [here](https://github.com/supabase/supabase/pull/42265) If you were to update a cell twice, then save, the value that get's saved is the first edited value. There's a number of changes in this PR but the main thing is just `useOperationQueueActions` to declare `operations` outside of `handleSave` since `snap` wouldn't trigger the re-render of that function in the dependency array. ## Other changes - Refactored `useOperationQueueShortcuts.ts` - Reuse an existing `useHotKey` method to handle the event listeners - Remove unnecessary prop drilling, call the necessary hooks within it instead - Simplify its calling by only calling this hook within `SaveQueueActionBar` (removed calling from `OperationQueueSidePanel` - Add tooltip for OperatioItem "Remove operation" - (Unrelated) Fix Table Editor sort "Apply sort" CTA not working for large tables when applying sort on an indexed column (e.g primary key) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Operation queue view now toggles open and closed with a single action * Simplified keyboard shortcuts: press **S** to save operations, **.** to toggle the queue view * **Bug Fixes** * Sort operations on large tables with non-primary-key sorting now show a confirmation warning and require explicit user approval before applying * **Improvements** * Operation queue panel automatically closes after successfully saving operations * Enhanced UI with improved delete action feedback and refined visual separators <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->