[PR #4882] [MERGED] feat: support private section #6510

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/4882
Author: @LucasXu0
Created: 3/12/2024
Status: Merged
Merged: 3/21/2024
Merged by: @LucasXu0

Base: mainHead: private_section


📝 Commits (10+)

  • 4bcdfe1 fix: unable to switch workspace
  • af21992 chore: optimize doc_bloc
  • fc9ce35 chore: refactor code
  • 5f5054b Merge branch 'main' into public_section
  • 18d54be feat: add private section
  • 1ed4bb3 Merge branch 'main' into private_section
  • 2e77649 feat: support private sections
  • ac01689 feat: support private sections
  • 9d9fa62 chore: update collab version
  • c1d0d40 Merge branch 'main' into private_section

📊 Changes

75 files changed (+1724 additions, -742 deletions)

View changed files

📝 frontend/.vscode/launch.json (+4 -1)
📝 frontend/appflowy_flutter/integration_test/cloud/anon_user_continue_test.dart (+3 -1)
📝 frontend/appflowy_flutter/integration_test/cloud/workspace/change_name_and_icon_test.dart (+10 -8)
📝 frontend/appflowy_flutter/integration_test/cloud/workspace/collaborative_workspace_test.dart (+5 -5)
📝 frontend/appflowy_flutter/integration_test/desktop/sidebar/sidebar_expand_test.dart (+8 -8)
📝 frontend/appflowy_flutter/integration_test/desktop/sidebar/sidebar_favorites_test.dart (+1 -1)
📝 frontend/appflowy_flutter/integration_test/desktop/sidebar/sidebar_test_runner.dart (+1 -2)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_folders.dart (+48 -29)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page.dart (+57 -42)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page_header.dart (+92 -20)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/section_folder/mobile_home_section_folder.dart (+10 -7)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/section_folder/mobile_home_section_folder_header.dart (+10 -7)
📝 frontend/appflowy_flutter/lib/mobile/presentation/notifications/mobile_notifications_page.dart (+7 -7)
📝 frontend/appflowy_flutter/lib/mobile/presentation/page_item/mobile_view_item.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/application/doc_bloc.dart (+28 -34)
📝 frontend/appflowy_flutter/lib/shared/feature_flags.dart (+16 -6)
📝 frontend/appflowy_flutter/lib/user/application/user_service.dart (+40 -0)
📝 frontend/appflowy_flutter/lib/workspace/application/menu/sidebar_root_views_bloc.dart (+55 -40)
frontend/appflowy_flutter/lib/workspace/application/menu/sidebar_sections_bloc.dart (+261 -0)
📝 frontend/appflowy_flutter/lib/workspace/application/sidebar/folder/folder_bloc.dart (+14 -1)

...and 55 more files

📄 Description

Feature Preview

  • Workspace members and the workspace owner can create, delete, and update their own private pages.
  • Pages in the private, favorite, and recent sections are only synced within the same account.
  • Pages in the public section are synced across users in the same workspace.
  • Implement permission control for the public pages.
  • Adjust the UI for local mode and non-collaborative workspaces.

owner

Screenshot 2024-03-12 at 14 35 32

member

Screenshot 2024-03-12 at 14 35 47

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/4882 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 3/12/2024 **Status:** ✅ Merged **Merged:** 3/21/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `private_section` --- ### 📝 Commits (10+) - [`4bcdfe1`](https://github.com/AppFlowy-IO/AppFlowy/commit/4bcdfe168a29391d6081bc5c467b8f541018b535) fix: unable to switch workspace - [`af21992`](https://github.com/AppFlowy-IO/AppFlowy/commit/af21992914142d4d84921cc3c1df7534117f8119) chore: optimize doc_bloc - [`fc9ce35`](https://github.com/AppFlowy-IO/AppFlowy/commit/fc9ce35ce3b4b2b507ff417271fbede11c8a7385) chore: refactor code - [`5f5054b`](https://github.com/AppFlowy-IO/AppFlowy/commit/5f5054b3f29f44f8c5f517621398dcf97a27d198) Merge branch 'main' into public_section - [`18d54be`](https://github.com/AppFlowy-IO/AppFlowy/commit/18d54bedc5107b0eac787639c85f006ada4d6d50) feat: add private section - [`1ed4bb3`](https://github.com/AppFlowy-IO/AppFlowy/commit/1ed4bb3ba554850b551704b2ce87b67c1df7c4fd) Merge branch 'main' into private_section - [`2e77649`](https://github.com/AppFlowy-IO/AppFlowy/commit/2e77649a57daccea85f97b559b64da8050090b54) feat: support private sections - [`ac01689`](https://github.com/AppFlowy-IO/AppFlowy/commit/ac01689be5d0c8551d6471e35fbfbe246b3434b4) feat: support private sections - [`9d9fa62`](https://github.com/AppFlowy-IO/AppFlowy/commit/9d9fa62ed807755a69eec4d977510ea1ae715a75) chore: update collab version - [`c1d0d40`](https://github.com/AppFlowy-IO/AppFlowy/commit/c1d0d40ec06680ce6aee946f0dffa70b4e55d4ac) Merge branch 'main' into private_section ### 📊 Changes **75 files changed** (+1724 additions, -742 deletions) <details> <summary>View changed files</summary> 📝 `frontend/.vscode/launch.json` (+4 -1) 📝 `frontend/appflowy_flutter/integration_test/cloud/anon_user_continue_test.dart` (+3 -1) 📝 `frontend/appflowy_flutter/integration_test/cloud/workspace/change_name_and_icon_test.dart` (+10 -8) 📝 `frontend/appflowy_flutter/integration_test/cloud/workspace/collaborative_workspace_test.dart` (+5 -5) 📝 `frontend/appflowy_flutter/integration_test/desktop/sidebar/sidebar_expand_test.dart` (+8 -8) 📝 `frontend/appflowy_flutter/integration_test/desktop/sidebar/sidebar_favorites_test.dart` (+1 -1) 📝 `frontend/appflowy_flutter/integration_test/desktop/sidebar/sidebar_test_runner.dart` (+1 -2) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_folders.dart` (+48 -29) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page.dart` (+57 -42) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page_header.dart` (+92 -20) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/section_folder/mobile_home_section_folder.dart` (+10 -7) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/section_folder/mobile_home_section_folder_header.dart` (+10 -7) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/notifications/mobile_notifications_page.dart` (+7 -7) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/page_item/mobile_view_item.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/doc_bloc.dart` (+28 -34) 📝 `frontend/appflowy_flutter/lib/shared/feature_flags.dart` (+16 -6) 📝 `frontend/appflowy_flutter/lib/user/application/user_service.dart` (+40 -0) 📝 `frontend/appflowy_flutter/lib/workspace/application/menu/sidebar_root_views_bloc.dart` (+55 -40) ➕ `frontend/appflowy_flutter/lib/workspace/application/menu/sidebar_sections_bloc.dart` (+261 -0) 📝 `frontend/appflowy_flutter/lib/workspace/application/sidebar/folder/folder_bloc.dart` (+14 -1) _...and 55 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] Workspace members and the workspace owner can create, delete, and update their own private pages. - [x] Pages in the private, favorite, and recent sections are only synced within the same account. - [x] Pages in the public section are synced across users in the same workspace. - [ ] Implement permission control for the public pages. - [x] Adjust the UI for local mode and non-collaborative workspaces. ### owner <img width="1328" alt="Screenshot 2024-03-12 at 14 35 32" src="https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/20dc9d8e-0562-4914-b9c1-885e13693b22"> ### member <img width="1328" alt="Screenshot 2024-03-12 at 14 35 47" src="https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/262dc4b4-bd13-4fbf-8161-c885d5046ac2"> <!--- 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) - [ ] 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:23:33 +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#6510
No description provided.