[PR #6931] [MERGED] feat: support multiple lines in table cell #7646

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/6931
Author: @LucasXu0
Created: 12/6/2024
Status: Merged
Merged: 12/10/2024
Merged by: @LucasXu0

Base: mainHead: multiple_lines_in_table_cell


📝 Commits (9)

  • 98e684d feat: support multiple lines in table cell
  • 040959e feat: add document validator
  • 003d43b Merge branch 'main' into multiple_lines_in_table_cell
  • 2e72f45 fix: unable to delete a code block in table cell
  • 2de4d2e feat: drag to expand the table row
  • 83f24e7 fix: integration test
  • d5e9acb Merge branch 'main' into multiple_lines_in_table_cell
  • c503249 feat: support drag to expand the table
  • 67eec6f fix: integration test

📊 Changes

24 files changed (+887 additions, -399 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/document/document_with_simple_table_test.dart (+0 -1)
frontend/appflowy_flutter/lib/plugins/document/application/document_validator.dart (+77 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart (+39 -7)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart (+1 -4)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/text_robot.dart (+0 -5)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/numbered_list/numbered_list_icon.dart (+10 -5)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/shortcuts/character_shortcuts.dart (+2 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/shortcuts/command_shortcuts.dart (+0 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/_shared_widget.dart (+0 -352)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table.dart (+3 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_constants.dart (+15 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_delete_operation.dart (+20 -5)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_insert_operation.dart (+23 -5)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_node_extension.dart (+114 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_shortcuts/simple_table_backspace_command.dart (+18 -3)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_shortcuts/simple_table_commands.dart (+2 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_shortcuts/simple_table_enter_command.dart (+24 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/simple_table_add_column_and_row_button.dart (+91 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/simple_table_add_column_button.dart (+219 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/simple_table_add_row_button.dart (+221 -0)

...and 4 more files

📄 Description

Feature Preview

  • shortcuts
    • forward the enter key to the default one
    • arrow keys
    • slash command
    • don't remove table cell when deleting the contents
  • renderer
    • lists
    • paragraph
  • tests

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/6931 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 12/6/2024 **Status:** ✅ Merged **Merged:** 12/10/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `multiple_lines_in_table_cell` --- ### 📝 Commits (9) - [`98e684d`](https://github.com/AppFlowy-IO/AppFlowy/commit/98e684d3c4e267864029e8466553ae8a6d6ea98a) feat: support multiple lines in table cell - [`040959e`](https://github.com/AppFlowy-IO/AppFlowy/commit/040959e3c76465f368ba3e5f8f04af4a1433c9f3) feat: add document validator - [`003d43b`](https://github.com/AppFlowy-IO/AppFlowy/commit/003d43b6837950ac1fe49b71969c23dc19bcded1) Merge branch 'main' into multiple_lines_in_table_cell - [`2e72f45`](https://github.com/AppFlowy-IO/AppFlowy/commit/2e72f45dbab4bfd37c2aea7268157ae3aa15de83) fix: unable to delete a code block in table cell - [`2de4d2e`](https://github.com/AppFlowy-IO/AppFlowy/commit/2de4d2ed11a9a4a54da1e7d87a661cfaa145a8e2) feat: drag to expand the table row - [`83f24e7`](https://github.com/AppFlowy-IO/AppFlowy/commit/83f24e76da93ff8a26464af19edee8fcbe80ec86) fix: integration test - [`d5e9acb`](https://github.com/AppFlowy-IO/AppFlowy/commit/d5e9acbb7dbe908a601ee0183698e722237aa602) Merge branch 'main' into multiple_lines_in_table_cell - [`c503249`](https://github.com/AppFlowy-IO/AppFlowy/commit/c50324979dee2640d360aae2bfa210e14c600876) feat: support drag to expand the table - [`67eec6f`](https://github.com/AppFlowy-IO/AppFlowy/commit/67eec6f41b61d0d011bec099694e07f034a6af9e) fix: integration test ### 📊 Changes **24 files changed** (+887 additions, -399 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_with_simple_table_test.dart` (+0 -1) ➕ `frontend/appflowy_flutter/lib/plugins/document/application/document_validator.dart` (+77 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart` (+39 -7) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart` (+1 -4) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/text_robot.dart` (+0 -5) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/numbered_list/numbered_list_icon.dart` (+10 -5) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/shortcuts/character_shortcuts.dart` (+2 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/shortcuts/command_shortcuts.dart` (+0 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/_shared_widget.dart` (+0 -352) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table.dart` (+3 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_constants.dart` (+15 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_delete_operation.dart` (+20 -5) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_insert_operation.dart` (+23 -5) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_node_extension.dart` (+114 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_shortcuts/simple_table_backspace_command.dart` (+18 -3) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_shortcuts/simple_table_commands.dart` (+2 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_shortcuts/simple_table_enter_command.dart` (+24 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/simple_table_add_column_and_row_button.dart` (+91 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/simple_table_add_column_button.dart` (+219 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/simple_table_add_row_button.dart` (+221 -0) _...and 4 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] shortcuts - [x] forward the enter key to the default one - [x] arrow keys - [x] slash command - [x] don't remove table cell when deleting the contents - [x] renderer - [x] lists - [ ] paragraph - [x] tests <!--- 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. - [ ] 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:35 +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#7646
No description provided.