[PR #7558] [CLOSED] refactor: folder strcuture #7964

Closed
opened 2026-03-23 23:21:58 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7558
Author: @LucasXu0
Created: 3/17/2025
Status: Closed

Base: mainHead: refactor_folder_strucuture


📝 Commits (10+)

  • 5bb8449 refactor: folder strcuture
  • 79bf6f7 refactor: folder view item
  • 0598efb refactor: folder views
  • 5aba19c feat: support depth and root_view_id
  • 0736478 feat: support switch space
  • 708893c feat: update folder views after switching to another workspace
  • 07255c1 feat: expose add view, update view, add space and update space api
  • bd08309 Merge branch 'main' into refactor_folder_strucuture
  • 300bdf2 feat: expose more folder apis
  • c878c24 feat: integrate folder api in folder blok event

📊 Changes

115 files changed (+8830 additions, -1243 deletions)

View changed files

📝 frontend/.vscode/launch.json (+108 -108)
📝 frontend/appflowy_flutter/integration_test/mobile/cloud/space/space_test.dart (+5 -5)
📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/mention_page_menu.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_sources_bottom_sheet.dart (+6 -4)
📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_sources_menu.dart (+10 -7)
📝 frontend/appflowy_flutter/lib/core/notification/folder_notification.dart (+48 -9)
frontend/appflowy_flutter/lib/core/notification/workspace_notification.dart (+51 -0)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_folders.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/space/manage_space_widget.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/space/mobile_space.dart (+7 -6)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/space/mobile_space_header.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/space/mobile_space_menu.dart (+11 -11)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/space/space_permission_bottom_sheet.dart (+3 -3)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/space/widgets.dart (+3 -3)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/tab/mobile_space_tab.dart (+4 -3)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_message_selector_banner.dart (+3 -2)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_action_bar.dart (+3 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_menu.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_node_extension.dart (+11 -7)

...and 80 more files

📄 Description

Feature Preview

  • integrate apis
    • get folder list {{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/folder
    • create space {{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/space
    • update space {{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/space
    • update view {{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/page-view/{{page_id}}
    • move view {{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/page-view/{{page_id}}/move
    • create view {{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/page-view
    • duplicate view {{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/page-view/{{CURRENT_PAGE_ID}}/duplicate
    • move page to trash
    • restore the page from trash
    • favorite
    • unfavorite
  • integrate the new apis in workspace service
    • remove the collab calls
    • switch the space
    • expand or collapse the space
    • update folder views after switching to another workspace
    • update view
    • update space
    • create view
    • create space
    • duplicate view
    • move page to trash
    • restore the page from trash
    • favorite
    • unfavorite
    • ...
  • Space bloc
    • create space
    • duplicate space
    • change space icon
    • delete space
    • reanme space
    • switch space
    • manage space
  • Folder view bloc
    • create page
    • duplicate page
    • change page icon
    • delete page
    • reanme page
    • add / remove from favorite
    • move to trash
    • restore from trash
  • Favorite Bloc
    • add to favorite
    • remove from favorite
    • pin
    • unpin
  • online: presist the request data
  • offline: presist the operations

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/7558 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 3/17/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `refactor_folder_strucuture` --- ### 📝 Commits (10+) - [`5bb8449`](https://github.com/AppFlowy-IO/AppFlowy/commit/5bb844955ac96487ad207e0434470167eef33caf) refactor: folder strcuture - [`79bf6f7`](https://github.com/AppFlowy-IO/AppFlowy/commit/79bf6f79eef62cb058ba2a0df0253f8482bccbfc) refactor: folder view item - [`0598efb`](https://github.com/AppFlowy-IO/AppFlowy/commit/0598efb498a88f1e26cc54b2b5e3dc23ba9cef8d) refactor: folder views - [`5aba19c`](https://github.com/AppFlowy-IO/AppFlowy/commit/5aba19caddf43153c9d5301372c5683176ba2d05) feat: support depth and root_view_id - [`0736478`](https://github.com/AppFlowy-IO/AppFlowy/commit/0736478e333cb7a7ac7a8b843ded6fe8f6e1dc76) feat: support switch space - [`708893c`](https://github.com/AppFlowy-IO/AppFlowy/commit/708893cb43930a2b97c8220c7f1817a2ef63aaaa) feat: update folder views after switching to another workspace - [`07255c1`](https://github.com/AppFlowy-IO/AppFlowy/commit/07255c173f75ee638f8b7d58e0b7e05e8ac293e4) feat: expose add view, update view, add space and update space api - [`bd08309`](https://github.com/AppFlowy-IO/AppFlowy/commit/bd0830989419ddc0fa0a85beac9d2a087953639b) Merge branch 'main' into refactor_folder_strucuture - [`300bdf2`](https://github.com/AppFlowy-IO/AppFlowy/commit/300bdf2a006d065afd585d14a5694ea1b7a74d1f) feat: expose more folder apis - [`c878c24`](https://github.com/AppFlowy-IO/AppFlowy/commit/c878c241c49163f3165089eb9ff71e06f3f12388) feat: integrate folder api in folder blok event ### 📊 Changes **115 files changed** (+8830 additions, -1243 deletions) <details> <summary>View changed files</summary> 📝 `frontend/.vscode/launch.json` (+108 -108) 📝 `frontend/appflowy_flutter/integration_test/mobile/cloud/space/space_test.dart` (+5 -5) 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/mention_page_menu.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_sources_bottom_sheet.dart` (+6 -4) 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_sources_menu.dart` (+10 -7) 📝 `frontend/appflowy_flutter/lib/core/notification/folder_notification.dart` (+48 -9) ➕ `frontend/appflowy_flutter/lib/core/notification/workspace_notification.dart` (+51 -0) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_folders.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/space/manage_space_widget.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/space/mobile_space.dart` (+7 -6) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/space/mobile_space_header.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/space/mobile_space_menu.dart` (+11 -11) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/space/space_permission_bottom_sheet.dart` (+3 -3) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/space/widgets.dart` (+3 -3) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/tab/mobile_space_tab.dart` (+4 -3) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_message_selector_banner.dart` (+3 -2) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_action_bar.dart` (+3 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_menu.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_operations/simple_table_node_extension.dart` (+11 -7) _...and 80 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] integrate apis - [x] get folder list `{{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/folder` - [x] create space `{{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/space` - [x] update space `{{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/space` - [x] update view `{{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/page-view/{{page_id}}` - [x] move view `{{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/page-view/{{page_id}}/move` - [x] create view `{{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/page-view` - [x] duplicate view `{{APPFLOWY_BASE_URL}}/api/workspace/{{CURRENT_WORKSPACE_ID}}/page-view/{{CURRENT_PAGE_ID}}/duplicate` - [x] move page to trash - [x] restore the page from trash - [x] favorite - [x] unfavorite - [x] integrate the new apis in workspace service - [ ] remove the collab calls - [x] switch the space - [x] expand or collapse the space - [x] update folder views after switching to another workspace - [x] update view - [x] update space - [x] create view - [x] create space - [x] duplicate view - [x] move page to trash - [x] restore the page from trash - [x] favorite - [x] unfavorite - [ ] ... - [x] Space bloc - [x] create space - [x] duplicate space - [x] change space icon - [x] delete space - [x] reanme space - [x] switch space - [x] manage space - [x] Folder view bloc - [x] create page - [x] duplicate page - [x] change page icon - [x] delete page - [x] reanme page - [ ] add / remove from favorite - [x] move to trash - [ ] restore from trash - [x] Favorite Bloc - [x] add to favorite - [x] remove from favorite - [x] pin - [x] unpin - [ ] online: presist the request data - [ ] offline: presist the operations <!--- 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. - [ ] 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:21:58 +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#7964
No description provided.