[PR #6985] [MERGED] fix: simple table issues #7672

Closed
opened 2026-03-23 23:20:41 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/6985
Author: @LucasXu0
Created: 12/13/2024
Status: Merged
Merged: 12/16/2024
Merged by: @LucasXu0

Base: mainHead: fix_simple_table_issues


📝 Commits (10+)

  • 77548a9 fix: list padding in table cell is too wide
  • 5f5d9ad feat: improve tab in table cell
  • 1164ab2 feat: improve shift+tab in table cell
  • 63fa9cc fix: unable to edit cell after deleting an image
  • a40f7e6 fix: inline attribute issue
  • 18ed53d fix: disable dragging a block into table
  • 1907c71 feat: add distribute column evenly in column action menu
  • 1bbad8d fix: numbered list icon align in table cell
  • f428d74 feat: add setToPageWidth and distributeColumnEvenly in table menu
  • df88817 feat: support highlight color

📊 Changes

25 files changed (+407 additions, -40 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/document/document_with_image_block_test.dart (+0 -7)
📝 frontend/appflowy_flutter/integration_test/desktop/document/document_with_inline_math_equation_test.dart (+36 -0)
📝 frontend/appflowy_flutter/integration_test/desktop/document/document_with_inline_page_test.dart (+14 -0)
📝 frontend/appflowy_flutter/integration_test/desktop/document/document_with_simple_table_test.dart (+154 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart (+10 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart (+5 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_cubit.dart (+22 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/drag_to_reorder/draggable_option_button.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/drag_to_reorder/util.dart (+26 -5)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/drag_to_reorder/visual_drag_area.dart (+7 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/option_actions.dart (+19 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/numbered_list/numbered_list_icon.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/shortcuts/command_shortcuts.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_block_component.dart (+7 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_cell_block_component.dart (+38 -12)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_more_action.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_map_operation.dart (+10 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_node_extension.dart (+5 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_style_operation.dart (+4 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_row_block_component.dart (+5 -1)

...and 5 more files

📄 Description

Feature Preview

  • list padding in table cell is too wide (no test required)
  • improve tab shortcut in table cell (test)
  • improve shift+tab shortcut in table cell (test)
  • improve enter shortcut in table cell (test)
  • import select all shortcut in table (test)
  • unable to edit cell after deleting an image (test)
  • inline attribute issue (test)
  • add distribute column evenly in column action menu (test)
  • numbered list icon align in table cell (no test required)
  • add setToPageWidth and distributeColumnEvenly in table menu (test)
  • support highlight color in table (no test required)
  • keep the same column width after setting "distribute columns evenly" (test)

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/6985 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 12/13/2024 **Status:** ✅ Merged **Merged:** 12/16/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `fix_simple_table_issues` --- ### 📝 Commits (10+) - [`77548a9`](https://github.com/AppFlowy-IO/AppFlowy/commit/77548a9ed77e7072f60a7aa660f605b4ce513147) fix: list padding in table cell is too wide - [`5f5d9ad`](https://github.com/AppFlowy-IO/AppFlowy/commit/5f5d9ad396ddac936fbe319877001eaa8ee0e6b5) feat: improve tab in table cell - [`1164ab2`](https://github.com/AppFlowy-IO/AppFlowy/commit/1164ab2a8197fa77f1d1ed684a8f7a6f69e0b8f9) feat: improve shift+tab in table cell - [`63fa9cc`](https://github.com/AppFlowy-IO/AppFlowy/commit/63fa9cc6d8089ceab18669a92f8af2043723d3d8) fix: unable to edit cell after deleting an image - [`a40f7e6`](https://github.com/AppFlowy-IO/AppFlowy/commit/a40f7e6d658f128dbab3271b2ca659a2eb58a327) fix: inline attribute issue - [`18ed53d`](https://github.com/AppFlowy-IO/AppFlowy/commit/18ed53d2417ea27be44a008335bb19b971b27438) fix: disable dragging a block into table - [`1907c71`](https://github.com/AppFlowy-IO/AppFlowy/commit/1907c7126b8165ad8227aa2012dc34d422dccdec) feat: add distribute column evenly in column action menu - [`1bbad8d`](https://github.com/AppFlowy-IO/AppFlowy/commit/1bbad8d2122c9d66bea410e88416526c1e56632a) fix: numbered list icon align in table cell - [`f428d74`](https://github.com/AppFlowy-IO/AppFlowy/commit/f428d74d1e626d953ca6e21a324f83b84ee1e3c8) feat: add setToPageWidth and distributeColumnEvenly in table menu - [`df88817`](https://github.com/AppFlowy-IO/AppFlowy/commit/df88817eef6f10e64ac85a8716245e3c7ef600eb) feat: support highlight color ### 📊 Changes **25 files changed** (+407 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_with_image_block_test.dart` (+0 -7) 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_with_inline_math_equation_test.dart` (+36 -0) 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_with_inline_page_test.dart` (+14 -0) 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_with_simple_table_test.dart` (+154 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart` (+10 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart` (+5 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_cubit.dart` (+22 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/drag_to_reorder/draggable_option_button.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/drag_to_reorder/util.dart` (+26 -5) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/drag_to_reorder/visual_drag_area.dart` (+7 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/option_actions.dart` (+19 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/numbered_list/numbered_list_icon.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/shortcuts/command_shortcuts.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_block_component.dart` (+7 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_cell_block_component.dart` (+38 -12) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_more_action.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_map_operation.dart` (+10 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_node_extension.dart` (+5 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_style_operation.dart` (+4 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_row_block_component.dart` (+5 -1) _...and 5 more files_ </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview - [x] list padding in table cell is too wide (no test required) - [x] improve tab shortcut in table cell (test) - [x] improve shift+tab shortcut in table cell (test) - [x] improve enter shortcut in table cell (test) - [x] import select all shortcut in table (test) - [x] unable to edit cell after deleting an image (test) - [x] inline attribute issue (test) - [x] add distribute column evenly in column action menu (test) - [x] numbered list icon align in table cell (no test required) - [x] add setToPageWidth and distributeColumnEvenly in table menu (test) - [x] support highlight color in table (no test required) - [x] keep the same column width after setting "distribute columns evenly" (test) <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [x] I've listed at least one issue that this PR fixes in the description above. - [x] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [x] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:20:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#7672
No description provided.