Skip to content

fix(frontend): sync user cache after profile edits - #771

Draft
mithunkc017-ship-it wants to merge 1 commit into
AOSSIE-Org:mainfrom
mithunkc017-ship-it:fix/header-profile-sync
Draft

mithunkc017-ship-it wants to merge 1 commit into
AOSSIE-Org:mainfrom
mithunkc017-ship-it:fix/header-profile-sync

Conversation

@mithunkc017-ship-it

@mithunkc017-ship-it mithunkc017-ship-it commented Oct 24, 2026 •

Copy link
Copy Markdown

Addressed Issues

Fixes #770

Screenshots/Recordings

Not applicable. This change fixes synchronization of user profile data between the profile page, shared user state, and header. No major UI changes were introduced.

Additional Notes

Summary:

Previously, updating the display name or avatar on the profile page only updated the local dashboard state. The header uses the shared user cache (userAtom / userProfile in localStorage), which caused it to display outdated profile information.

Changes Made:

  • Synchronized the shared user profile state after successful profile updates.
  • Updated the shared user cache after avatar changes.
  • Ensured the header reflects the latest display name and avatar without displaying stale information.
  • Preserved existing profile functionality and UI.

Validation:

  • Updated the display name and verified that the header reflected the changes.
  • Updated the profile avatar and verified that the header displayed the new avatar.
  • Refreshed the page and verified that the updated profile information persisted correctly.

AI Usage Disclosure

AI models and tools used: ChatGPT (OpenAI) for coding assistance and debugging. All submitted changes have been reviewed and tested by me.

Checklist

  • My PR addresses a single issue, fixes a single bug or makes a single improvement.
  • My code follows the project's code style and conventions.
  • If applicable, I have made corresponding changes or additions to the documentation.
  • If applicable, I have made corresponding changes or additions to tests.
  • My changes generate no new warnings or errors.
  • I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and I will share a link to this PR with the project maintainers there.
  • I have read the [Contribution Guidelines](../CONTRIBUTING.md).
  • Once I submit my PR, CodeRabbit AI will automatically review it and I will address CodeRabbit's comments.
  • I have filled this PR template completely and carefully, and I understand that my PR may be closed without review otherwise.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Header avatar and display name don't update after editing the profile

1 participant