-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-05-06] [$250] Quick action - Group chat name and avatar does not update unless the page is refreshed #40536
Comments
Triggered auto assignment to @madmax330 ( |
Triggered auto assignment to @isabelastisser ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@isabelastisser I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
We think this issue might be related to the #collect project. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Quick action - Group chat name and avatar does not update unless the page is refreshed What is the root cause of that problem?The main problem with issue is that we can' get actual ActionReport because we use useMemo What changes do you think we should make in order to solve the problem?To fix this issue we can refactor this component and use allReports directly to always have actual information from report
For optimisation we can use selector just like we do for allPolicies on this screen App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx Lines 73 to 81 in bec1c8e
What alternative solutions did you explore? (Optional)As alternative we don't have to use useMemo |
@madmax330, can you please provide an update? Thanks! |
We can remove the blocker here. This issue is very minor and also related to a new feature not a regression. |
@madmax330 if you want to pass this to me I can takeover as it seems related to Group Chats. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The group chat name (in the tooltip) and avatar in QAB don't update dynamically and need to refresh the app. What is the root cause of that problem?The avatar and group name (in the tooltip) depend on the quick action report data. App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx Lines 154 to 162 in 8616678
For the quick action report, we get the report ID from
The useMemo only depends on The reason the group chat name is updated below the quick action title is, when the FAB component re-renders, it will recalculate the
Even though the report passed to Lines 2988 to 2990 in 8616678
and then get the report object from the Lines 1751 to 1759 in 8616678
What changes do you think we should make in order to solve the problem?It's better to subscribe to the
Then we don't need this anymore,
We can do the same for |
@madmax330 @marcaaron, can you please review the proposal above? Thanks! |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
I will proceed with @bernhardoj's proposal as it has a better solution using Onyx. 🎀 👀 🎀 C+ reviewed |
Current assignee @marcaaron is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @shubham1206agra |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.67-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-05-06. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
The payments were processed in Upwork. @shubham1206agra, please complete the BZ list above before I can close the issue. Thanks! |
@isabelastisser Can you check this again? Looks like my payment was not processed. |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.63-5
Reproducible in staging?: Y
Reproducible in production?: No, new feature
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
The group chat under Quick action in FAB will update to show the latest avatar and name.
Actual Result:
The group chat under Quick action in FAB does not show the latest avatar and name (in the tooltip) unless the page is refreshed.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6454364_1713485468784.20240419_080236.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: