[WIKI-543] fix: unable to delete last cell of a table#7394
[WIKI-543] fix: unable to delete last cell of a table#7394sriramveeraghanta merged 3 commits intopreviewfrom
Conversation
WalkthroughThe changes update utility function signatures and usage for finding parent nodes by type, refactor import paths for cell selection helpers, and add a keyboard shortcut to select a single table cell with Backspace. Type annotations and argument expectations are standardized for improved consistency across table-related editor utilities. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Editor
participant TableCellExtension
participant TableMap
User->>Editor: Presses Backspace in a table cell
Editor->>TableCellExtension: Triggers Backspace shortcut handler
TableCellExtension->>TableMap: Checks if table has only one cell
TableMap-->>TableCellExtension: Returns cell count
alt Table has one cell
TableCellExtension->>Editor: Sets selection to entire cell
else Table has more than one cell
TableCellExtension->>Editor: Allows default Backspace behavior
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used🧬 Code Graph Analysis (2)packages/editor/src/core/extensions/table/table/utilities/insert-line-below-table-action.ts (1)
packages/editor/src/core/extensions/table/table/utilities/insert-line-above-table-action.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (5)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Pull Request Linked with Plane Work Items Comment Automatically Generated by Plane |
* fix: delete last cell of a table * refactor: last cell selection logic
Description
This PR fixes the bug where users were unable to delete the last cell of a table on pressing
Backspace.New flow-
Type of Change
Media
Screen.Recording.2025-07-17.at.17.38.40.mov
Summary by CodeRabbit
New Features
Refactor
Style