[PR #5067] [MERGED] feat: add a loading indicator when creating, deleting, or switching workspaces. #6619

Closed
opened 2026-03-23 23:15:50 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/5067
Author: @LucasXu0
Created: 4/5/2024
Status: Merged
Merged: 4/7/2024
Merged by: @LucasXu0

Base: mainHead: fix_team_workspace_issues


📝 Commits (10+)

  • 03ca6a4 fix: translations
  • 5851370 feat: add tooltip for workspace name
  • 46d8ff1 feat: add loading for creating, opening, deleting workspace
  • baca743 feat: show tooltip when hovering on plus avatar
  • df6d7e5 fix: disable member page in local mode
  • f4227e7 chore: only enable team workspaces in appflowy cloud mode
  • 7874828 fix: collab workspace test
  • 68c4336 fix: filter private or trash id when fetching view
  • 75117a1 fix: add tooltip for change workspace icon button
  • 212b8a8 fix: remove leave workspace hint text

📊 Changes

25 files changed (+241 additions, -108 deletions)

View changed files

📝 .github/workflows/ios_ci.yaml (+4 -3)
📝 frontend/appflowy_flutter/integration_test/cloud/workspace/collaborative_workspace_test.dart (+9 -27)
📝 frontend/appflowy_flutter/integration_test/shared/base.dart (+5 -1)
📝 frontend/appflowy_flutter/integration_test/shared/common_operations.dart (+1 -2)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_folders.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_menu_bottom_sheet.dart (+2 -0)
📝 frontend/appflowy_flutter/lib/plugins/database/application/sync/database_sync_bloc.dart (+3 -3)
📝 frontend/appflowy_flutter/lib/plugins/document/application/doc_collaborators_bloc.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/application/doc_sync_bloc.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/document.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/collaborator_avater_stack.dart (+6 -17)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/document_collaborators.dart (+25 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/loading.dart (+7 -2)
📝 frontend/appflowy_flutter/lib/workspace/application/menu/sidebar_sections_bloc.dart (+39 -0)
📝 frontend/appflowy_flutter/lib/workspace/application/user/user_workspace_bloc.dart (+43 -3)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/sidebar.dart (+16 -16)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/sidebar_folder.dart (+3 -3)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/sidebar_workspace.dart (+25 -3)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_actions.dart (+0 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_menu.dart (+14 -7)

...and 5 more files

📄 Description

Feature Preview

  • after creating a new workspace, the UI is not refreshed properly
  • workspace name no hover to display it fully if the name is too long
  • Public → Workspace (temp solution)
  • Click to switch workspace (haven’t chosen), the toast “open workspace successfully” popped up
  • The “+2” circle has too low contrast
  • don’t know who are the +2
  • Local mode shows member settings in the settings page
  • only enable team workspaces feature in appflowy cloud mode
  • don’t allow users to mention other people’s private pages
  • Hover on workspace in list is lost when hovering on workspace icon, also no tooltip or indication that it is clickable
  • don’t need the title “LEAVE WORKSPACE”, a bit redundant
  • Order of workspaces changing after opening the menu

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/5067 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 4/5/2024 **Status:** ✅ Merged **Merged:** 4/7/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `fix_team_workspace_issues` --- ### 📝 Commits (10+) - [`03ca6a4`](https://github.com/AppFlowy-IO/AppFlowy/commit/03ca6a4d64643381e75fbebbbdb70b13622ad057) fix: translations - [`5851370`](https://github.com/AppFlowy-IO/AppFlowy/commit/5851370d18aed82de56feddfc12466c881908798) feat: add tooltip for workspace name - [`46d8ff1`](https://github.com/AppFlowy-IO/AppFlowy/commit/46d8ff1350cdf8012fe7ec73aca46cbcfdcae276) feat: add loading for creating, opening, deleting workspace - [`baca743`](https://github.com/AppFlowy-IO/AppFlowy/commit/baca74353f3479cd086567c319355b55fbe60d13) feat: show tooltip when hovering on plus avatar - [`df6d7e5`](https://github.com/AppFlowy-IO/AppFlowy/commit/df6d7e538a9cc8d12d5981b40f5bd175210db71c) fix: disable member page in local mode - [`f4227e7`](https://github.com/AppFlowy-IO/AppFlowy/commit/f4227e7047cca7c6679b821f6290f894c0687cf4) chore: only enable team workspaces in appflowy cloud mode - [`7874828`](https://github.com/AppFlowy-IO/AppFlowy/commit/7874828861b12728d860db9540857191c3877ca2) fix: collab workspace test - [`68c4336`](https://github.com/AppFlowy-IO/AppFlowy/commit/68c433643e0d40d63d7fb962f17c566d448e0f0a) fix: filter private or trash id when fetching view - [`75117a1`](https://github.com/AppFlowy-IO/AppFlowy/commit/75117a1fba26b43ac666ec74442788c3489489de) fix: add tooltip for change workspace icon button - [`212b8a8`](https://github.com/AppFlowy-IO/AppFlowy/commit/212b8a87fb0ffdba62c6941e26bdd2b40726e7dd) fix: remove leave workspace hint text ### 📊 Changes **25 files changed** (+241 additions, -108 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ios_ci.yaml` (+4 -3) 📝 `frontend/appflowy_flutter/integration_test/cloud/workspace/collaborative_workspace_test.dart` (+9 -27) 📝 `frontend/appflowy_flutter/integration_test/shared/base.dart` (+5 -1) 📝 `frontend/appflowy_flutter/integration_test/shared/common_operations.dart` (+1 -2) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_folders.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_menu_bottom_sheet.dart` (+2 -0) 📝 `frontend/appflowy_flutter/lib/plugins/database/application/sync/database_sync_bloc.dart` (+3 -3) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/doc_collaborators_bloc.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/doc_sync_bloc.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/document.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/collaborator_avater_stack.dart` (+6 -17) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/document_collaborators.dart` (+25 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/loading.dart` (+7 -2) 📝 `frontend/appflowy_flutter/lib/workspace/application/menu/sidebar_sections_bloc.dart` (+39 -0) 📝 `frontend/appflowy_flutter/lib/workspace/application/user/user_workspace_bloc.dart` (+43 -3) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/sidebar.dart` (+16 -16) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/sidebar_folder.dart` (+3 -3) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/sidebar_workspace.dart` (+25 -3) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_actions.dart` (+0 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_menu.dart` (+14 -7) _...and 5 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] after creating a new workspace, the UI is not refreshed properly - [x] workspace name no hover to display it fully if the name is too long - [x] Public → Workspace (temp solution) - [x] Click to switch workspace (haven’t chosen), the toast “open workspace successfully” popped up - [x] The “+2” circle has too low contrast - [x] don’t know who are the +2 - [x] Local mode shows member settings in the settings page - [x] only enable team workspaces feature in appflowy cloud mode - [x] don’t allow users to mention other people’s private pages - [x] Hover on workspace in list is lost when hovering on workspace icon, also no tooltip or indication that it is clickable - [x] don’t need the title “LEAVE WORKSPACE”, a bit redundant - [x] Order of workspaces changing after opening the menu <!--- 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 23:15:50 +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#6619
No description provided.