-
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 2023-11-09] [$500] FAB - New workspace option disappears from FAB in offline mode #30138
Comments
Job added to Upwork: https://www.upwork.com/jobs/~011387403ef7bf4253 |
Triggered auto assignment to @garrettmknight ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.New workspace button does not appear on offline mode What is the root cause of that problem?The button is hidden when the loading state: App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js Lines 223 to 224 in 6031f3e
This state will not get resolved until the app goes back offline and reconnect app. Lines 251 to 252 in 6031f3e
What changes do you think we should make in order to solve the problem?If we want to show the button on offline mode, we do not need to check the loading state to make it visible: ...(!Policy.hasActiveFreePolicy(props.allPolicies)
? [
{
icon: Expensicons.NewWorkspace,
iconWidth: 46,
iconHeight: 40,
text: props.translate('workspace.new.newWorkspace'),
description: props.translate('workspace.new.getTheExpensifyCardAndMore'),
onSelected: () => interceptAnonymousUser(() => App.createWorkspaceAndNavigateToIt('', false, '', false, !props.isSmallScreenWidth)),
},
]
: []), What alternative solutions did you explore? (Optional)Also, given that FAB conditionally shows the create workspace button with the If that's the case, then we can change this line: App/src/pages/workspace/WorkspacesListPage.js Lines 190 to 191 in 0f4e366
to: footer={
!Policy.hasActiveFreePolicy(policies)
? (
<Button
accessibilityLabel={translate('workspace.new.newWorkspace')}
success
text={translate('workspace.new.newWorkspace')}
onPress={() => App.createWorkspaceWithPolicyDraftAndNavigateToIt()}
/>
)
: null
} |
ProposalPlease re-state the problem that we are trying to solve in this issue.New workspace menu item from FAB does not appear when app reconnects after being offline. What is the root cause of that problem?I believe this is working as expected. Refer to : #14456. If you observe the screen recording, user pressed FAB menu '+' button while report skeleton was still loading, which says that app was still reconnecting. What changes do you think we should make in order to solve the problem?We should not make any changes. Its working as expected. Please let me know if that's invalid conclusion (referring to above reasoning) What alternative solutions did you explore? (Optional)If we do not want to change |
ProposalPlease re-state the problem that we are trying to solve in this issue.New workspace option disappears from FAB in offline mode What is the root cause of that problem?The
What changes do you think we should make in order to solve the problem?We can subscribe
App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js Lines 273 to 275 in aada291
What alternative solutions did you explore? (Optional) |
@lanitochka17 This doesn't seem very unexpected - can you point me to the test that caught this so I can confirm? |
Thanks @lanitochka17 - Looks good to me. @allroundexperts either of those proposals look good? |
@dukenv0307's proposal looks good to me. I think we should hide this until all policies have loaded (ie first load). Once they are loaded, even if the user becomes offline, we can keep on showing the button. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @cead22, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I give up trying to trigger the automation here, any idea what's happening @garrettmknight ? |
@allroundexperts The PR is ready for review |
I did a tiny bit of digging and am not sure why the automation didn't happen, @garrettmknight can manually hire. If we see this continue to happen, please post in #bug-zero, ideally in the same thread Carlos started |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.94-2 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 2023-11-09. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
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:
|
Summarizing payments for this issue:
Upwork issue: https://www.upwork.com/en-gb/ab/applicants/1715851093589565441/job-details |
@dukenv0307 offer sent |
@allroundexperts can you request payment and fill out the checklist when you get a chance? |
@garrettmknight This was a super edge case which is very hard to reproduce as well. I don't think we need a checklist here. |
Dropping to weekly for payment via NewDot |
$500 payment approved for @allroundexperts based on this comment. |
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.3.88-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
New workspace option should be visible and available in offline mode
Actual Result:
New workspace option disappears from FAB in offline mode
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
Bug6245866_1697921954518.IGEX3284.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: