-
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
[$250] Workspace - Submit button loads infinitely and is not deactivated while offline #46865
Comments
Triggered auto assignment to @miljakljajic ( |
Edited by proposal-police: This proposal was edited at 2023-10-03T12:00:00Z. ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - Submit button loads infinitely and is not deactivated while offline What is the root cause of that problem?
App/src/pages/settings/Subscription/RequestEarlyCancellationPage/index.tsx Lines 98 to 112 in d7c6bca
App/src/components/FeedbackSurvey.tsx Line 115 in d7c6bca
What changes do you think we should make in order to solve the problem?We should accept a new prop in
Note: We only need to disable offline submission for What alternative solutions did you explore? (Optional) |
Proposal Updated
|
Job added to Upwork: https://www.upwork.com/jobs/~01c0ba7134ea0d5d07 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
Edited by proposal-police: This proposal was edited at 2024-08-11 17:55:28 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.After going offline the submit button does not get deactivated and is clickable, when clicked it loads infinitely. What is the root cause of that problem?When we click on submit button, we call:
so the FormAlertWithSubmitButton is appeared with the loading state:App/src/components/FeedbackSurvey.tsx Line 117 in 93dc1c9
So, as long as the API
is not called successfully, the loading state is still appeared. These cases are:
What changes do you think we should make in order to solve the problem?After this issue, we will use We can remove the state:
and
because it is not used anymore when we use FormProvider . Instead, we should add the optimisticData , successData and failureData to:App/src/libs/actions/Subscription.ts Line 282 in 5dd0d8b
And then in What alternative solutions did you explore? (Optional)Additionally, if after this issue, we still keep using: App/src/components/FeedbackSurvey.tsx Lines 108 to 109 in 53eee53
and use FormProvider as <FormProvider isSubmitButtonVisible={false} , we can remove:App/src/components/FeedbackSurvey.tsx Line 115 in 53eee53
FeedbackSurvey in RequestEarlyCancellationPage page
and the
is from RequestEarlyCancellationForm onyx data.
|
1 similar comment
@miljakljajic, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick! |
reviewing |
@miljakljajic can you please confirm the expected result is correct? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@miljakljajic, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@miljakljajic, can you please check this comment? |
@miljakljajic @situchan this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@miljakljajic, @situchan 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Yes @Krishna2323 that is the expected pattern (see UX patterns here: https://stackoverflowteams.com/c/expensify/questions/12847) |
Thanks for confirmation @miljakljajic, though contributors don't have access to SO) |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@situchan Can you help check my proposal? We need to fix the case API is failed as well |
The selected solution does not work in that case: Screen.Recording.2024-08-22.at.01.37.19.mov |
@situchan, PR ready for review ^ |
Screen.Recording.2024-08-22.at.17.06.58.mov |
@daledah thanks for reporting. It's a separate bug. |
Ah got it, thanks @situchan |
I believe the automation failed here. The PR was deployed to staging 2 weeks ago, but there is no sign of deployment to production on the PR. @situchan @aldo-expensify, could you please help confirm if the PR was deployed to production? 🙏🏻 |
Given the context above, this issue should be on [HOLD for Payment 2024-09-06] according to Aug 30's production deploy from Deploy Checklist: New Expensify 2024-08-28. |
Sounds good, thanks for finding that @situchan. I understand that we are past the payment date then, correct? |
correct |
I think this may explain the missing |
I'll get this paid! |
Both contributors paid and contracts ended - closing out |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.17-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): bezawitgebremichael+r@gmail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
When going offline the submit button becomes deactivated as this is the normal behavior in other places of the app.
Actual Result:
After going offline the submit button does not get deactivated and is clickable, when clicked it loads infinitely.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6552937_1721930175239.4_5841379217341683107.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @situchanThe text was updated successfully, but these errors were encountered: