-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix concierge avatar reloading #62316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix concierge avatar reloading #62316
Conversation
so that the variable isConcierge can be used in the useEffect Signed-off-by: Noah Chernet <[email protected]>
Fetching concierge's profile using openPublicProfilePage changes the profile url to a new CloudFront url, making the Avatar component rerender unnecessarily while it displays the same image. Since Concierge's avatar is stored in CONST.ts already, there's no need to fetch its profile details again. Signed-off-by: Noah Chernet <[email protected]>
@allroundexperts Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUnable to build android Android: mWeb ChromeScreen.Recording.2025-05-21.at.3.51.38.AM.moviOS: HybridAppScreen.Recording.2025-05-21.at.3.50.36.AM.moviOS: mWeb SafariScreen.Recording.2025-05-21.at.3.49.04.AM.movMacOS: Chrome / SafariScreen.Recording.2025-05-21.at.3.44.21.AM.movMacOS: DesktopScreen.Recording.2025-05-21.at.3.47.48.AM.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works good!
@noahchernet could you please merge the main branch and then make sure the checks pass? 🙏 |
…ierge-icon-reloading
Hi @cristipaval, I've merged main, all the checks should be passing now. Also, I haven't been hired on Upwork yet; I have applied to the linked job post on the issue. This is the first issue I've worked on so I'm not sure if it's supposed to happen automatically or someone has to go manually on Upwork to hire me. |
Thanks for merging the main again. Don't worry about being hired on Upwork; the assigned #bugzero team member (@flaviadefaria in this case) will take care of it. They'll create a new job for you if needed so you can be paid. |
…ierge-icon-reloading
Thanks for the info Cristi! I've merged |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.1.51-0 🚀
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.1.51-6 🚀
|
Explanation of Change
The
ProfilePage
component will no longer fetch Concierge's profile details from BE since all the necessary details are stored onCONST.ts
. It prevents fetching its profile becauseFixed Issues
$ #61178
PROPOSAL: #61178 (comment)
Tests
Offline tests
Same as tests.
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
61178-solved-android-app.webm
Android: mWeb Chrome
61178-solved-android-chrome.webm
iOS: Native
61178-solved-ios.mp4
iOS: mWeb Safari
61178-solved-ios-safari.mp4
MacOS: Chrome / Safari
61178-solved-desktop-chrome.mp4
MacOS: Desktop
61178-solved-macos-desktop.mp4