[PR #7806] [MERGED] chore: fix anon #8125

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

📋 Pull Request Information

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

Base: mainHead: fix_anon_open


📝 Commits (8)

  • 43c1f02 chore: fix anon and enable local ai on slash menu
  • 63e43db chore: fix anon improve writing
  • 7e88a38 chore: temp
  • db5e476 chore: fix test
  • be2b32f Merge branch 'main' into fix_anon_open
  • 471d2c0 fix: outline block test
  • 742dee9 chore: fix display search content area
  • d780ac3 chore: import workspace database id

📊 Changes

31 files changed (+478 additions, -387 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/document/document_with_outline_block_test.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/ai/service/ai_model_state_notifier.dart (+76 -14)
📝 frontend/appflowy_flutter/lib/ai/service/ai_prompt_input_bloc.dart (+19 -17)
📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/desktop_prompt_text_field.dart (+7 -10)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_chat_input.dart (+1 -6)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_action_bar.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/slash_menu/slash_menu_items_builder.dart (+2 -4)
📝 frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_result_cell.dart (+15 -15)
📝 frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_summary_cell.dart (+29 -24)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_menu.dart (+1 -1)
📝 frontend/appflowy_flutter/macos/Podfile.lock (+23 -23)
📝 frontend/resources/translations/en.json (+1 -0)
📝 frontend/rust-lib/flowy-ai/src/ai_manager.rs (+8 -8)
📝 frontend/rust-lib/flowy-core/src/user_state_callback.rs (+12 -15)
📝 frontend/rust-lib/flowy-user-pub/src/session.rs (+7 -87)
📝 frontend/rust-lib/flowy-user-pub/src/sql/workspace_sql.rs (+11 -0)
📝 frontend/rust-lib/flowy-user/src/event_handler.rs (+4 -4)
📝 frontend/rust-lib/flowy-user/src/event_map.rs (+3 -3)
📝 frontend/rust-lib/flowy-user/src/migrations/anon_user_workspace.rs (+11 -5)
📝 frontend/rust-lib/flowy-user/src/migrations/doc_key_with_workspace.rs (+5 -6)

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

Refactor user session initialization and authentication logic to simplify and improve error handling in the user management process

Bug Fixes:

  • Fixed an issue with user session retrieval by adjusting error handling when no session is found

Enhancements:

  • Simplified user session initialization by removing redundant user profile retrieval
  • Improved logging for user session initialization
  • Streamlined token and authentication type handling

Chores:

  • Cleaned up user authentication and session management code

🔄 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/7806 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 4/22/2025 **Status:** ✅ Merged **Merged:** 4/23/2025 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `fix_anon_open` --- ### 📝 Commits (8) - [`43c1f02`](https://github.com/AppFlowy-IO/AppFlowy/commit/43c1f02b6f66660e170a1865c28a14d6268f4250) chore: fix anon and enable local ai on slash menu - [`63e43db`](https://github.com/AppFlowy-IO/AppFlowy/commit/63e43db0c29a128d346b48a09671e5f42ab64477) chore: fix anon improve writing - [`7e88a38`](https://github.com/AppFlowy-IO/AppFlowy/commit/7e88a3897c676022aef909eab6c7b02a8f0c1aab) chore: temp - [`db5e476`](https://github.com/AppFlowy-IO/AppFlowy/commit/db5e4766af40c272589267ccbf1dbaa553501f89) chore: fix test - [`be2b32f`](https://github.com/AppFlowy-IO/AppFlowy/commit/be2b32ffd101d8eb0c74b6e5fab118e33644f9aa) Merge branch 'main' into fix_anon_open - [`471d2c0`](https://github.com/AppFlowy-IO/AppFlowy/commit/471d2c0b5005c3b1a795fb6aa0f9f31473c0c6b3) fix: outline block test - [`742dee9`](https://github.com/AppFlowy-IO/AppFlowy/commit/742dee9202458d24cecfa6d397ba045e268c53df) chore: fix display search content area - [`d780ac3`](https://github.com/AppFlowy-IO/AppFlowy/commit/d780ac32eebb55b444fecdba46a40585aa1fa35e) chore: import workspace database id ### 📊 Changes **31 files changed** (+478 additions, -387 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_with_outline_block_test.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/ai/service/ai_model_state_notifier.dart` (+76 -14) 📝 `frontend/appflowy_flutter/lib/ai/service/ai_prompt_input_bloc.dart` (+19 -17) 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/desktop_prompt_text_field.dart` (+7 -10) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_chat_input.dart` (+1 -6) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_action_bar.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/slash_menu/slash_menu_items_builder.dart` (+2 -4) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_result_cell.dart` (+15 -15) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_summary_cell.dart` (+29 -24) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_menu.dart` (+1 -1) 📝 `frontend/appflowy_flutter/macos/Podfile.lock` (+23 -23) 📝 `frontend/resources/translations/en.json` (+1 -0) 📝 `frontend/rust-lib/flowy-ai/src/ai_manager.rs` (+8 -8) 📝 `frontend/rust-lib/flowy-core/src/user_state_callback.rs` (+12 -15) 📝 `frontend/rust-lib/flowy-user-pub/src/session.rs` (+7 -87) 📝 `frontend/rust-lib/flowy-user-pub/src/sql/workspace_sql.rs` (+11 -0) 📝 `frontend/rust-lib/flowy-user/src/event_handler.rs` (+4 -4) 📝 `frontend/rust-lib/flowy-user/src/event_map.rs` (+3 -3) 📝 `frontend/rust-lib/flowy-user/src/migrations/anon_user_workspace.rs` (+11 -5) 📝 `frontend/rust-lib/flowy-user/src/migrations/doc_key_with_workspace.rs` (+5 -6) _...and 11 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 Refactor user session initialization and authentication logic to simplify and improve error handling in the user management process Bug Fixes: - Fixed an issue with user session retrieval by adjusting error handling when no session is found Enhancements: - Simplified user session initialization by removing redundant user profile retrieval - Improved logging for user session initialization - Streamlined token and authentication type handling Chores: - Cleaned up user authentication and session management code --- <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:43 +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#8125
No description provided.