Repository navigation
Migrate ReportHeaderAvatars - #105403
Migrate ReportHeaderAvatars#105403roryabraham merged 2 commits into
Conversation
|
@MelvinBot review plz |
PR reviewLooks good to me. I found no blocking issues. Behavior in the report details header matches What I checked
Intended behavior change (consider noting it in the PR description)
Optional nits
I reviewed the code only. I didn't run the tests or the app. |
|
@cretadn22 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-11-03.at.10.46.57.movAndroid: mWeb ChromeScreen.Recording.2026-11-03.at.10.43.16.moviOS: HybridAppScreen.Recording.2026-11-03.at.10.46.09.moviOS: mWeb SafariScreen.Recording.2026-11-03.at.10.42.31.movMacOS: Chrome / SafariScreen.Recording.2026-11-03.at.10.41.10.mov |
| const {translate} = useLocalize(); | ||
| const avatarPress = useAvatarPress(); | ||
|
|
||
| // Placeholder avatars have no page to open | ||
| if (!avatarPress || !avatar.id) { | ||
| return children; | ||
| } | ||
|
|
There was a problem hiding this comment.
| const {translate} = useLocalize(); | |
| const avatarPress = useAvatarPress(); | |
| // Placeholder avatars have no page to open | |
| if (!avatarPress || !avatar.id) { | |
| return children; | |
| } | |
| const avatarPress = useAvatarPress(); | |
| // Placeholder avatars have no page to open | |
| if (!avatarPress || !avatar.id) { | |
| return children; | |
| } | |
| const {translate} = useLocalize(); | |
There was a problem hiding this comment.
I don't think this can be applied. It would make a hook const {translate} = useLocalize(); conditional :(
|
If ChatThreadAvatar renders a SubscriptAvatar with the human-agent icon, and the slot makes it pressable, tapping it opens the agent's profile avatar. Is that intended? |
Yes, it's the same as on The legacy hook builds that same subscript (Concierge + the revealed agent) for a linked thread, and the old header rendered it through |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.5.31-0 🚀
|
|
No help site update needed — this PR refactors avatar components without adding a user-facing workflow or making existing article instructions incorrect. |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.5.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
The report details header now uses the shared
ReportAvatar.Each avatar is still its own press target:
AvatarPressProvidermakesAvatarPressSlot, which sits inside the avatar layouts, pressable.PressableDiagonalAvatarsandPressableSubscriptAvatarare deleted.Fixed Issues
$ #94590
PROPOSAL:
Tests
Tests
main:Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android-native.mp4
Android: mWeb Chrome
android-chrome.mp4
iOS: Native
ios-native.mp4
iOS: mWeb Safari
ios-safari.mp4
MacOS: Chrome / Safari
web-desktop.mp4