-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-07-10] [$250] Web - Workspace - Member is unselected when refresh Add message page and go back #42533
Comments
Triggered auto assignment to @dylanexpensify ( |
@dylanexpensify FYI 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 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - Member is unselected when refresh Add message page and go back What is the root cause of that problem?On normal flow, on the Invite new memeber screen, when we slect a contact and we click on Next, going to the "Add message screen", the previous page "Invite new memeber" will not disappear, it will still rendered but hidden. All the data inside "Invite new memeber" will be available when we hit the Back button. But when we refresh the "Add message screen", we will loose the selected contact inside "Invite new memeber". Same thing will happen if we are on the "Invite new memeber" and we refresh it without going to the "Add message screen, we will loose the selected contact. The issue is that
but when we refresh the page or we reopen it, we don't check the data inside that What changes do you think we should make in order to solve the problem?We need to add an utility to check the data inside We need to check OnyxData
as we do for the App/src/pages/workspace/WorkspaceInviteMessagePage.tsx Lines 231 to 233 in 2c9cc0a
If |
ProposalPlease re-state the problem that we are trying to solve in this issue.The previously selected member is gone when refresh in message page and go back. What is the root cause of that problem?This previously worked but was broken by #38207. We have a logic here to add back the saved selected user, App/src/pages/workspace/WorkspaceInvitePage.tsx Lines 111 to 120 in 8375abe
however, the App/src/pages/workspace/WorkspaceInvitePage.tsx Lines 99 to 108 in 8375abe
because we only initialize the data when the screen transition ends (didScreenTransitionEnd). App/src/pages/workspace/WorkspaceInvitePage.tsx Lines 72 to 74 in 8375abe
So, basically, the data is not ready yet, but we already trying to add back the selected user. What changes do you think we should make in order to solve the problem?We should return early at the above when the data is not ready yet, preventing any logic inside the effect to run. App/src/pages/workspace/WorkspaceInvitePage.tsx Lines 94 to 120 in 8375abe
btw, i also noticed that the invite page could load infinitely when refreshed which was fixed before in #22508 but gets broke again in #38039. maybe we can create a new issue and use the same solution that I use in #22508 |
@dylanexpensify Huh... This is 4 days overdue. Who can take care of this? |
reviewing! |
@dylanexpensify Huh... This is 4 days overdue. Who can take care of this? |
Hmm couldn't repro, @bernhardoj can you? |
@dylanexpensify I can still repro it whether I refresh on the invite selection page or the invite message page, the selection is always lost. Screen.Recording.2024-06-05.at.18.23.04.movScreen.Recording.2024-06-05.at.18.23.43.mov |
@dylanexpensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@dylanexpensify Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~01123d71b4084d0c78 |
moving external! |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 ( |
@bernhardoj Proposal looks good and test well! 🎀 👀 🎀 C+ reviewed
can you please provide repro steps i'll report it in slack channel so a issue can be created |
Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@roryabraham @dylanexpensify @ishpaul777 this issue is now 4 weeks old, please consider:
Thanks! |
Waiting for @roryabraham to review, he's catching up from being ooo |
@roryabraham, @dylanexpensify, @ishpaul777 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 @ishpaul777 🎉 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 |
Nice! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-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-07-10. 🎊 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:
|
payment coming up! |
Payment summary:
Please apply/request! |
done! |
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.75-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Member should be selected
Actual Result:
Member is not selected when refresh Add message page and go back to Invite members page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6489557_1716478796475.Recording__3032.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @dylanexpensifyThe text was updated successfully, but these errors were encountered: