[PR #3216] [MERGED] feat: support incremental to update textblock's delta #5624

Closed
opened 2026-03-23 22:19:34 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3216
Author: @qinluhe
Created: 8/16/2023
Status: Merged
Merged: 9/12/2023
Merged by: @qinluhe

Base: mainHead: feat/support-incremental-update-text


📝 Commits (10+)

  • 7cf8508 feat: support incremental to update textblock's delta
  • d5e8f87 fix: update test code
  • 4a09ff8 fix: remove console
  • cd53f5d fix: update test
  • 894cc2a feat: integrate increamental delta in Flutter
  • 99896f8 fix: delete quill editor
  • 43d0f47 fix: delete quill editor
  • e61d4ff feat: add csharp in codeblock (#3371)
  • 71b8fef chore: pt-PT & pt-BR translation updated (#3353)
  • defaf4a chore: Ensure Cargo.lock Is Updated Alongside Changes to Cargo.toml (#3361)

📊 Changes

81 files changed (+3342 additions, -1874 deletions)

View changed files

📝 .github/workflows/tauri_ci.yaml (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/application/doc_bloc.dart (+19 -9)
📝 frontend/appflowy_flutter/lib/plugins/document/application/doc_service.dart (+41 -4)
📝 frontend/appflowy_flutter/lib/plugins/document/application/document_data_pb_extension.dart (+49 -5)
📝 frontend/appflowy_flutter/lib/plugins/document/application/editor_transaction_adapter.dart (+175 -24)
📝 frontend/appflowy_flutter/lib/util/json_print.dart (+6 -4)
📝 frontend/appflowy_flutter/pubspec.yaml (+0 -1)
📝 frontend/appflowy_flutter/test/unit_test/editor/transaction_adapter_test.dart (+33 -33)
📝 frontend/appflowy_tauri/.gitignore (+3 -1)
frontend/appflowy_tauri/jest.config.cjs (+18 -0)
📝 frontend/appflowy_tauri/package.json (+9 -2)
📝 frontend/appflowy_tauri/pnpm-lock.yaml (+753 -178)
📝 frontend/appflowy_tauri/src-tauri/Cargo.lock (+17 -23)
📝 frontend/appflowy_tauri/src-tauri/Cargo.toml (+9 -9)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSelection/RangeKeyDown.hooks.ts (+8 -2)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSlash/BlockSlashMenu.tsx (+4 -6)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSlash/index.hooks.ts (+4 -22)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/Mention/Mention.hooks.ts (+5 -33)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/Mention/MentionPopover.tsx (+6 -11)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/TextActionMenu/menu/FormatButton.tsx (+4 -1)

...and 61 more files

📄 Description

Feature Preview

  • Implement incremental text editing support for Tauri and Flutter desktop applications.

  • This includes allowing users to make incremental changes to the text within the application.

  • Consolidate all operations related to deltas into the BlockDeltaOperator module.

  • This step involves organizing and centralizing all code related to delta operations within the BlockDeltaOperator module for better code organization and maintainability.

  • Enhance Tauri support for Jest unit testing and add interface tests for the BlockDeltaOperator.

  • This task involves improving the compatibility of Tauri with Jest for unit testing purposes. Additionally, it includes adding interface tests to ensure the proper functioning of the BlockDeltaOperator.


PR Checklist

  • My code adheres to the AppFlowy Style Guide
  • 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/3216 **Author:** [@qinluhe](https://github.com/qinluhe) **Created:** 8/16/2023 **Status:** ✅ Merged **Merged:** 9/12/2023 **Merged by:** [@qinluhe](https://github.com/qinluhe) **Base:** `main` ← **Head:** `feat/support-incremental-update-text` --- ### 📝 Commits (10+) - [`7cf8508`](https://github.com/AppFlowy-IO/AppFlowy/commit/7cf85085e94ff73804667dac1187238d3806eba7) feat: support incremental to update textblock's delta - [`d5e8f87`](https://github.com/AppFlowy-IO/AppFlowy/commit/d5e8f870f26b300b7e71ead839307eb5aba44ef4) fix: update test code - [`4a09ff8`](https://github.com/AppFlowy-IO/AppFlowy/commit/4a09ff8858028f9b7c17524c7b78dfa4fe52b9b6) fix: remove console - [`cd53f5d`](https://github.com/AppFlowy-IO/AppFlowy/commit/cd53f5d271c1f906526c067c60bf36814a56ff38) fix: update test - [`894cc2a`](https://github.com/AppFlowy-IO/AppFlowy/commit/894cc2ae0c844845aa6e9e37798386d93d762469) feat: integrate increamental delta in Flutter - [`99896f8`](https://github.com/AppFlowy-IO/AppFlowy/commit/99896f88ab240dfb3dad5630bb7419deecf1ef1f) fix: delete quill editor - [`43d0f47`](https://github.com/AppFlowy-IO/AppFlowy/commit/43d0f4757811a615c88854aadd0354d12e539b83) fix: delete quill editor - [`e61d4ff`](https://github.com/AppFlowy-IO/AppFlowy/commit/e61d4ff070d64b6060ec1730357f60854679d38f) feat: add csharp in codeblock (#3371) - [`71b8fef`](https://github.com/AppFlowy-IO/AppFlowy/commit/71b8fef181a1976efe652c531165957545b2a252) chore: pt-PT & pt-BR translation updated (#3353) - [`defaf4a`](https://github.com/AppFlowy-IO/AppFlowy/commit/defaf4a651fdd57d3faaecbc6f3eb09bc433487c) chore: Ensure Cargo.lock Is Updated Alongside Changes to Cargo.toml (#3361) ### 📊 Changes **81 files changed** (+3342 additions, -1874 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/tauri_ci.yaml` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/doc_bloc.dart` (+19 -9) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/doc_service.dart` (+41 -4) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/document_data_pb_extension.dart` (+49 -5) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/editor_transaction_adapter.dart` (+175 -24) 📝 `frontend/appflowy_flutter/lib/util/json_print.dart` (+6 -4) 📝 `frontend/appflowy_flutter/pubspec.yaml` (+0 -1) 📝 `frontend/appflowy_flutter/test/unit_test/editor/transaction_adapter_test.dart` (+33 -33) 📝 `frontend/appflowy_tauri/.gitignore` (+3 -1) ➕ `frontend/appflowy_tauri/jest.config.cjs` (+18 -0) 📝 `frontend/appflowy_tauri/package.json` (+9 -2) 📝 `frontend/appflowy_tauri/pnpm-lock.yaml` (+753 -178) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.lock` (+17 -23) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.toml` (+9 -9) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSelection/RangeKeyDown.hooks.ts` (+8 -2) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSlash/BlockSlashMenu.tsx` (+4 -6) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSlash/index.hooks.ts` (+4 -22) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/Mention/Mention.hooks.ts` (+5 -33) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/Mention/MentionPopover.tsx` (+6 -11) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/TextActionMenu/menu/FormatButton.tsx` (+4 -1) _...and 61 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] Implement incremental text editing support for Tauri and Flutter desktop applications. - This includes allowing users to make incremental changes to the text within the application. - [x] Consolidate all operations related to deltas into the BlockDeltaOperator module. - This step involves organizing and centralizing all code related to delta operations within the BlockDeltaOperator module for better code organization and maintainability. - [x] Enhance Tauri support for Jest unit testing and add interface tests for the BlockDeltaOperator. - This task involves improving the compatibility of Tauri with Jest for unit testing purposes. Additionally, it includes adding interface tests to ensure the proper functioning of the BlockDeltaOperator. <!--- 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 - [ ] My code adheres to the [AppFlowy Style Guide](https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/submitting-code/style-guides) - [ ] 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:19:34 +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#5624
No description provided.