[PR #7828] [MERGED] fix: user name stay no change when reopen the setting menu after renaming #8144

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/7828
Author: @appflowy
Created: 4/24/2025
Status: Merged
Merged: 4/25/2025
Merged by: @appflowy

Base: mainHead: fix_user_rename


📝 Commits (3)

📊 Changes

29 files changed (+199 additions, -140 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_sources_bottom_sheet.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_sources_menu.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_message_selector_banner.dart (+1 -1)
📝 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/image/custom_image_block_component/image_menu.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/image_browser_layout.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/user/application/user_listener.dart (+8 -2)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/appflowy_cloud_setting_bloc.dart (+27 -0)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/settings_dialog_bloc.dart (+7 -5)
📝 frontend/appflowy_flutter/lib/workspace/application/user/user_workspace_bloc.dart (+35 -10)
📝 frontend/appflowy_flutter/lib/workspace/application/view_info/view_info_bloc.dart (+25 -0)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/hotkeys.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/footer/sidebar_toast.dart (+0 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/header/sidebar_user.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/shared/sidebar_setting.dart (+6 -11)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/sidebar_workspace.dart (+0 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/settings_dialog.dart (+11 -15)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_appflowy_cloud.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/workspace/presentation/widgets/more_view_actions/more_view_actions.dart (+3 -2)

...and 9 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 profile management to improve state handling and synchronization across the application

Bug Fixes:

  • Fix user name not updating when reopening the settings menu after renaming

Enhancements:

  • Centralize user profile state management in UserWorkspaceBloc
  • Add support for dynamically updating user profile across different components

Chores:

  • Remove redundant user profile references
  • Update multiple components to use centralized user profile state

🔄 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/7828 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 4/24/2025 **Status:** ✅ Merged **Merged:** 4/25/2025 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `fix_user_rename` --- ### 📝 Commits (3) - [`f0875d6`](https://github.com/AppFlowy-IO/AppFlowy/commit/f0875d6b6e28aad4ec23055c7b8d22f40e523302) fix: user rename - [`d893b89`](https://github.com/AppFlowy-IO/AppFlowy/commit/d893b89e4d9c759b3a42179e8e2b737e30d42737) fix: clippy - [`3bd3422`](https://github.com/AppFlowy-IO/AppFlowy/commit/3bd34226c32c88f288075c7eff0094335f4a09df) chore: refresh user profile when open workspace ### 📊 Changes **29 files changed** (+199 additions, -140 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_sources_bottom_sheet.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_sources_menu.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_message_selector_banner.dart` (+1 -1) 📝 `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/image/custom_image_block_component/image_menu.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/image_browser_layout.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/user/application/user_listener.dart` (+8 -2) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/appflowy_cloud_setting_bloc.dart` (+27 -0) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/settings_dialog_bloc.dart` (+7 -5) 📝 `frontend/appflowy_flutter/lib/workspace/application/user/user_workspace_bloc.dart` (+35 -10) 📝 `frontend/appflowy_flutter/lib/workspace/application/view_info/view_info_bloc.dart` (+25 -0) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/hotkeys.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/footer/sidebar_toast.dart` (+0 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/header/sidebar_user.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/shared/sidebar_setting.dart` (+6 -11) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/sidebar_workspace.dart` (+0 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/settings_dialog.dart` (+11 -15) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_appflowy_cloud.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/widgets/more_view_actions/more_view_actions.dart` (+3 -2) _...and 9 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 profile management to improve state handling and synchronization across the application Bug Fixes: - Fix user name not updating when reopening the settings menu after renaming Enhancements: - Centralize user profile state management in UserWorkspaceBloc - Add support for dynamically updating user profile across different components Chores: - Remove redundant user profile references - Update multiple components to use centralized user profile state --- <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#8144
No description provided.