[PR #2566] [MERGED] Support block toolbar #5305

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/2566
Author: @qinluhe
Created: 5/19/2023
Status: Merged
Merged: 5/22/2023
Merged by: @qinluhe

Base: developHead: feat/block-side-toolbar


📝 Commits (3)

  • fe23ac5 feat: support block toolbar in left side
  • e8f887b fix: export delete and duplicate
  • 19ff912 feat: slash menu

📊 Changes

26 files changed (+745 additions, -181 deletions)

View changed files

frontend/appflowy_tauri/src/appflowy_app/components/document/BlockMenu/BlockMenu.hooks.ts (+0 -30)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockMenu/MenuItem.hooks.ts (+0 -31)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockMenu/MenuItem.tsx (+0 -32)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockMenu/index.tsx (+0 -42)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/BlockMenu.hooks.ts (+35 -0)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/BlockMenu.tsx (+60 -0)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/BlockMenuTurnInto.tsx (+62 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/BlockSideToolbar.hooks.tsx (+45 -18)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/MenuItem.tsx (+36 -0)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/ToolbarButton.tsx (+24 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/index.tsx (+52 -17)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSlash/BlockSlashMenu.tsx (+142 -0)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSlash/index.hooks.ts (+72 -0)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSlash/index.tsx (+30 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/Overlay/index.tsx (+2 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/TextBlock/events/Events.hooks.ts (+27 -2)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/VirtualizedList/index.tsx (+1 -6)
📝 frontend/appflowy_tauri/src/appflowy_app/constants/document/text_block.ts (+1 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/interfaces/document.ts (+4 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/stores/reducers/document/async-actions/blocks/delete.ts (+0 -0)

...and 6 more files

📄 Description

Feature Preview

  • Support Add block below
    image
    image

  • Support Block Menu
    image
    image

  • Support slash menu
    image


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/2566 **Author:** [@qinluhe](https://github.com/qinluhe) **Created:** 5/19/2023 **Status:** ✅ Merged **Merged:** 5/22/2023 **Merged by:** [@qinluhe](https://github.com/qinluhe) **Base:** `develop` ← **Head:** `feat/block-side-toolbar` --- ### 📝 Commits (3) - [`fe23ac5`](https://github.com/AppFlowy-IO/AppFlowy/commit/fe23ac55c17445862646548f73320c84f170380c) feat: support block toolbar in left side - [`e8f887b`](https://github.com/AppFlowy-IO/AppFlowy/commit/e8f887b96c180cff0d69bc12d5eb2767c4ad8440) fix: export delete and duplicate - [`19ff912`](https://github.com/AppFlowy-IO/AppFlowy/commit/19ff9126502c20fc06a0d3488b60d1edfcd63ef8) feat: slash menu ### 📊 Changes **26 files changed** (+745 additions, -181 deletions) <details> <summary>View changed files</summary> ➖ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockMenu/BlockMenu.hooks.ts` (+0 -30) ➖ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockMenu/MenuItem.hooks.ts` (+0 -31) ➖ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockMenu/MenuItem.tsx` (+0 -32) ➖ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockMenu/index.tsx` (+0 -42) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/BlockMenu.hooks.ts` (+35 -0) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/BlockMenu.tsx` (+60 -0) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/BlockMenuTurnInto.tsx` (+62 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/BlockSideToolbar.hooks.tsx` (+45 -18) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/MenuItem.tsx` (+36 -0) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/ToolbarButton.tsx` (+24 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/index.tsx` (+52 -17) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSlash/BlockSlashMenu.tsx` (+142 -0) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSlash/index.hooks.ts` (+72 -0) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSlash/index.tsx` (+30 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/Overlay/index.tsx` (+2 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/TextBlock/events/Events.hooks.ts` (+27 -2) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/VirtualizedList/index.tsx` (+1 -6) 📝 `frontend/appflowy_tauri/src/appflowy_app/constants/document/text_block.ts` (+1 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/interfaces/document.ts` (+4 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/stores/reducers/document/async-actions/blocks/delete.ts` (+0 -0) _...and 6 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] Support `Add block below` <img width="280" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/d3c54817-2d56-4e2b-9fae-7b5bd4afd4b2"> <img width="507" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/2119c8f5-6de5-473b-9774-487bc2e4b3ce"> - [x] Support `Block Menu` <img width="325" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/9664c59a-0e69-4f98-bba6-a1ebde682578"> <img width="562" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/9bb7282b-da1e-4645-b89a-15e3a5f160e7"> - [x] Support slash menu <img width="508" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/8c4cad65-20c0-4d01-86c5-770c32d13665"> <!--- 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:18:09 +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#5305
No description provided.