[PR #7797] [MERGED] Integrate workspace template #8119

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7797
Author: @appflowy
Created: 4/21/2025
Status: Merged
Merged: 4/22/2025
Merged by: @appflowy

Base: mainHead: integrate_workspace_template


📝 Commits (10+)

  • 10a536b fix: loading exception when switching workspace
  • 8cd0442 fix: left side bar does not reflect right workspace content
  • 4634b51 chore: open workspace with workspace auth type
  • 343f7e4 Revert "fix: loading exception when switching workspace"
  • 1bcf4e6 Revert "fix: left side bar does not reflect right workspace content"
  • 9cd49c2 chore: create workspace member
  • 4e2990e chore: remove local model
  • b0c2b04 fix: empty view id
  • 1be51d6 chore: clippy
  • 530e076 chore: update test

📊 Changes

81 files changed (+523 additions, -2495 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_member_bloc.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/blank/blank.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/user/application/user_service.dart (+1 -8)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/ai/local_ai_bloc.dart (+16 -4)
📝 frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart (+1 -13)
📝 frontend/appflowy_flutter/lib/workspace/application/view/view_bloc.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/application/view/view_service.dart (+9 -0)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/local_ai_setting.dart (+9 -16)
📝 frontend/rust-lib/event-integration-test/src/user_event.rs (+1 -1)
frontend/rust-lib/event-integration-test/tests/database/supabase_test/helper.rs (+0 -106)
frontend/rust-lib/event-integration-test/tests/database/supabase_test/mod.rs (+0 -2)
frontend/rust-lib/event-integration-test/tests/database/supabase_test/test.rs (+0 -108)
frontend/rust-lib/event-integration-test/tests/document/supabase_test/edit_test.rs (+0 -65)
frontend/rust-lib/event-integration-test/tests/document/supabase_test/file_test.rs (+0 -118)
frontend/rust-lib/event-integration-test/tests/document/supabase_test/helper.rs (+0 -49)
frontend/rust-lib/event-integration-test/tests/document/supabase_test/mod.rs (+0 -3)
frontend/rust-lib/event-integration-test/tests/folder/supabase_test/helper.rs (+0 -91)
frontend/rust-lib/event-integration-test/tests/folder/supabase_test/mod.rs (+0 -2)

...and 61 more files

📄 Description

Feature Preview


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.

Summary by Sourcery

Integrate workspace template by refactoring workspace-related code and improving workspace management across the application

New Features:

  • Added workspace type attribute to UserWorkspace
  • Implemented more robust workspace context management

Bug Fixes:

  • Fixed potential memory leaks and context-related issues in loading indicators
  • Improved error handling during workspace operations

Enhancements:

  • Improved workspace switching and data reset mechanism
  • Simplified workspace-related type conversions
  • Enhanced loading and context handling for workspace operations

🔄 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/7797 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 4/21/2025 **Status:** ✅ Merged **Merged:** 4/22/2025 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `integrate_workspace_template` --- ### 📝 Commits (10+) - [`10a536b`](https://github.com/AppFlowy-IO/AppFlowy/commit/10a536b1a2e3100fa3da99ab05851702f701a3c0) fix: loading exception when switching workspace - [`8cd0442`](https://github.com/AppFlowy-IO/AppFlowy/commit/8cd0442a1f7f53b270e60e73b0e9e7b5569557e6) fix: left side bar does not reflect right workspace content - [`4634b51`](https://github.com/AppFlowy-IO/AppFlowy/commit/4634b51edf1c43a9e1f0c331551d0e410a1ee077) chore: open workspace with workspace auth type - [`343f7e4`](https://github.com/AppFlowy-IO/AppFlowy/commit/343f7e4fd5f99e46f10b5c19038f3b9a12a36e3d) Revert "fix: loading exception when switching workspace" - [`1bcf4e6`](https://github.com/AppFlowy-IO/AppFlowy/commit/1bcf4e6e8d7f452cfc7650aab1ace18c3e7a381e) Revert "fix: left side bar does not reflect right workspace content" - [`9cd49c2`](https://github.com/AppFlowy-IO/AppFlowy/commit/9cd49c24477b4eb12d2254c47b897e7f7b9d3320) chore: create workspace member - [`4e2990e`](https://github.com/AppFlowy-IO/AppFlowy/commit/4e2990e5996e4050c45504ac510201848e8781a3) chore: remove local model - [`b0c2b04`](https://github.com/AppFlowy-IO/AppFlowy/commit/b0c2b04a2da4c1238e36699c7c73282b9ea2abeb) fix: empty view id - [`1be51d6`](https://github.com/AppFlowy-IO/AppFlowy/commit/1be51d667972d3cdb7c49d79e2f529a29fa45aa4) chore: clippy - [`530e076`](https://github.com/AppFlowy-IO/AppFlowy/commit/530e076838d3e4a5e8b399dd50df7f37fb21af7b) chore: update test ### 📊 Changes **81 files changed** (+523 additions, -2495 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_member_bloc.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/blank/blank.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/user/application/user_service.dart` (+1 -8) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/ai/local_ai_bloc.dart` (+16 -4) 📝 `frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart` (+1 -13) 📝 `frontend/appflowy_flutter/lib/workspace/application/view/view_bloc.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/application/view/view_service.dart` (+9 -0) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/local_ai_setting.dart` (+9 -16) 📝 `frontend/rust-lib/event-integration-test/src/user_event.rs` (+1 -1) ➖ `frontend/rust-lib/event-integration-test/tests/database/supabase_test/helper.rs` (+0 -106) ➖ `frontend/rust-lib/event-integration-test/tests/database/supabase_test/mod.rs` (+0 -2) ➖ `frontend/rust-lib/event-integration-test/tests/database/supabase_test/test.rs` (+0 -108) ➖ `frontend/rust-lib/event-integration-test/tests/document/supabase_test/edit_test.rs` (+0 -65) ➖ `frontend/rust-lib/event-integration-test/tests/document/supabase_test/file_test.rs` (+0 -118) ➖ `frontend/rust-lib/event-integration-test/tests/document/supabase_test/helper.rs` (+0 -49) ➖ `frontend/rust-lib/event-integration-test/tests/document/supabase_test/mod.rs` (+0 -3) ➖ `frontend/rust-lib/event-integration-test/tests/folder/supabase_test/helper.rs` (+0 -91) ➖ `frontend/rust-lib/event-integration-test/tests/folder/supabase_test/mod.rs` (+0 -2) _...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 <!--- 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 [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. ## Summary by Sourcery Integrate workspace template by refactoring workspace-related code and improving workspace management across the application New Features: - Added workspace type attribute to UserWorkspace - Implemented more robust workspace context management Bug Fixes: - Fixed potential memory leaks and context-related issues in loading indicators - Improved error handling during workspace operations Enhancements: - Improved workspace switching and data reset mechanism - Simplified workspace-related type conversions - Enhanced loading and context handling for workspace operations --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:22:41 +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#8119
No description provided.