[PR #7826] [MERGED] chore: replace auth type with workspace type #8143

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

📋 Pull Request Information

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

Base: mainHead: workspace_type2


📝 Commits (3)

📊 Changes

45 files changed (+281 additions, -184 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_view_page.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page_header.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/setting/settings_popup_menu.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/tab/mobile_space_tab.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_menu_bottom_sheet.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_page.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/database/application/sync/database_sync_bloc.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/database/widgets/row/row_banner.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/application/document_collaborators_bloc.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/application/document_sync_bloc.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_util.dart (+4 -4)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/page_style/_page_style_cover_image.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/shared/share/share_bloc.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/shared/icon_emoji_picker/icon_uploader.dart (+3 -2)
📝 frontend/appflowy_flutter/lib/user/application/user_service.dart (+4 -4)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/settings_dialog_bloc.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/workspace/application/user/user_workspace_bloc.dart (+15 -14)
📝 frontend/appflowy_flutter/lib/workspace/application/workspace/workspace_bloc.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_menu.dart (+2 -2)

...and 25 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

Replace auth type with workspace type across the AppFlowy codebase, introducing a new WorkspaceType enum to represent workspace modes more semantically

Enhancements:

  • Introduce a new WorkspaceType enum to replace AuthType in workspace-related contexts
  • Refactor type conversions between AuthType and WorkspaceType to maintain backwards compatibility

Chores:

  • Update multiple files to use WorkspaceType instead of AuthType
  • Modify type conversions and method signatures to support the new WorkspaceType

🔄 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/7826 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 4/24/2025 **Status:** ✅ Merged **Merged:** 4/24/2025 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `workspace_type2` --- ### 📝 Commits (3) - [`da47c11`](https://github.com/AppFlowy-IO/AppFlowy/commit/da47c110707f5d98d4e5a00d54367128ef9ed755) chore: replace auth type with workspace type - [`8485a67`](https://github.com/AppFlowy-IO/AppFlowy/commit/8485a673571127053f88dc6ba17cf930a13e5e3d) chore: clippy - [`36dacdb`](https://github.com/AppFlowy-IO/AppFlowy/commit/36dacdbdf2fd916ec6b2d5d30984122d6df8aee4) chore: fix test ### 📊 Changes **45 files changed** (+281 additions, -184 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_view_page.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page_header.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/setting/settings_popup_menu.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/tab/mobile_space_tab.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_menu_bottom_sheet.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_page.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/database/application/sync/database_sync_bloc.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/database/widgets/row/row_banner.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/document_collaborators_bloc.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/document_sync_bloc.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_util.dart` (+4 -4) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/page_style/_page_style_cover_image.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/shared/share/share_bloc.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/shared/icon_emoji_picker/icon_uploader.dart` (+3 -2) 📝 `frontend/appflowy_flutter/lib/user/application/user_service.dart` (+4 -4) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/settings_dialog_bloc.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/workspace/application/user/user_workspace_bloc.dart` (+15 -14) 📝 `frontend/appflowy_flutter/lib/workspace/application/workspace/workspace_bloc.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_menu.dart` (+2 -2) _...and 25 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 Replace auth type with workspace type across the AppFlowy codebase, introducing a new WorkspaceType enum to represent workspace modes more semantically Enhancements: - Introduce a new WorkspaceType enum to replace AuthType in workspace-related contexts - Refactor type conversions between AuthType and WorkspaceType to maintain backwards compatibility Chores: - Update multiple files to use WorkspaceType instead of AuthType - Modify type conversions and method signatures to support the new WorkspaceType --- <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:48 +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#8143
No description provided.