Skip to content

Fix: sync profile image across screens using ProfileContext#298

Merged
23abdul23 merged 2 commits intoopencodeiiita:mainfrom
git-Rag:fix/profile-context
Jan 17, 2026
Merged

Fix: sync profile image across screens using ProfileContext#298
23abdul23 merged 2 commits intoopencodeiiita:mainfrom
git-Rag:fix/profile-context

Conversation

@git-Rag
Copy link
Contributor

@git-Rag git-Rag commented Jan 16, 2026

Issue: #296

Summary

  • Added ProfileContext for global profile state
  • Updated ProfileScreen to store profile data in context
  • Updated HomeScreen to consume global profile state
  • Ensures profile image and profile data stay consistent across screens

Testing

  • Updated profile image on Profile screen
  • Verified the same image reflects instantly on Home screen
  • Restarted app and confirmed profile data persists correctly

@OpenGitBot
Copy link

Hey @git-Rag

PR Template is not followed. Kindly follow the template & edit it again for consideration as a valid pull request.

Thanks for contributing in OpenCode'25 ✨✨!

Correct Tempelate:
Issue : #<Issue_Number>

@OpenGitBot
Copy link

Hey @git-Rag

Thanks for opening this PR 🚀. Mentor will review your pull request soon and till then, keep contributing and stay calm.

Thanks for contributing in OpenCode'25 ✨✨!

@23abdul23
Copy link
Contributor

@git-Rag

If u r using AI then make sure that you deliver the right thing in the first try.

image image image

As you can see the profile is not there. You haven't tested the thing just used the copilot do the work.

From next time i'm gonna deduct points please be carefull.

Resolve these screens also and then I will merge the PR.

@git-Rag
Copy link
Contributor Author

git-Rag commented Jan 17, 2026

You’re right — the initial fix ensures profile image sync between Profile and Home screens, but there are additional screens where the avatar is rendered that are still consuming Clerk data directly. As I've mentioned before in my previous comments I only specifically did the Home screen and profile right now I misunderstood it a bit that we had to finish all the files and that's on me but the code is solely done by me and I can show you logs and instances of my work yesterday the photos are not AI generated there's Clerk logs for proving that aswell.

I’m updating those screens to use the shared ProfileContext as well so the profile image stays consistent across all surfaces where it appears.

I’ll push the updated changes shortly and confirm testing across all relevant screens.

@23abdul23
Copy link
Contributor

@git-Rag

are the changes done ?

@git-Rag
Copy link
Contributor Author

git-Rag commented Jan 17, 2026

I'll get it done in an hour or two, I apologize for the delay.

@git-Rag
Copy link
Contributor Author

git-Rag commented Jan 17, 2026

I’ve now updated all remaining screens where the profile/avatar UI is rendered (Map, Event Gallery, My Uploads, Settings, Bubble Details) to consume ProfileContext. The profile avatar now stays in sync instantly across the app after update, without reloads.
This should fully resolve the issue.

I’ve also attached a screen recording demonstrating the fix end-to-end on my device.

Testing.mp4

In the video, you can see the profile avatar syncing correctly across all screens (Home, Map, Event Gallery, My Uploads, Bubble Details, and Settings). The brief pauses you may notice are due to loading time, as the backend was intentionally disabled during these UI checks. The profile data is fetched locally via ProfileContext, and once available, it reflects consistently everywhere.

Please feel free to review the recording, and let me know if there’s any screen I might have missed. I’ll be happy to address it.

@git-Rag
Copy link
Contributor Author

git-Rag commented Jan 17, 2026

Apologies for any inconvenience caused. This is my first time contributing to an open-source project, and I’m actively learning through the process. Thank you for your patience and for pointing things out, I really appreciate the guidance.

@23abdul23 23abdul23 merged commit 98182b0 into opencodeiiita:main Jan 17, 2026
@OpenGitBot
Copy link

Hey @git-Rag

Your PR has been merged 🥳🥳 and you have earned 30 points.

Thanks for contributing in OpenCode'25✨✨

@git-Rag git-Rag deleted the fix/profile-context branch January 17, 2026 18:16
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.

3 participants