You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[PAID] [Splits] [$500] Split scan - Split button is not disabled after clicking split for group chat split request #38130
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 1.4.50-2 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 Logs:https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: applause internal team Slack conversation:
Action Performed:
Go to staging.new.expensify.com.
Go to workspace chat.
Create a scan split request.
Click on the split request while it is scanning.
Click Split.
Note that the split button is disabled.
Go to group chat.
Create a scan split request.
Click on the split request while it is scanning.
Click Split.
Expected Result:
The split button will be disabled, similar to the behavior for split scan request in workspace chat.
Actual Result:
The split button is not disabled.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@strepanier03 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.
Please re-state the problem that we are trying to solve in this issue.
Split scan - Split button is not disabled after clicking split for group chat split request
What is the root cause of that problem?
The issue is different here, the issue mentioned isn't a issue because we disable the submit button when merchant is required and has an error. But we have inconsistency in request money flow and the SplitBillDetailsPage. When we request money to a policy without merchant we don't disable the submit button but it is disabled in SplitBillDetailsPage.
We don't check for merchantError in the new component MoneyTemporaryForRefactorRequestConfirmationList.
Please re-state the problem that we are trying to solve in this issue.
Split scan - Split button is not disabled after clicking split for group chat split request
What is the root cause of that problem?
We disable the button depending on shouldDisplayMerchantErrorhere . As we can see in video the merchant error is displaying for workspace Split but not displaying for group chat Split. It is because the props.isPolicyExpenseChat is true for workspace Split and is false for group chat Split which is sent from here. The reason is that the report data received from the backend has chatType:policyExpenseChat if it is workspace chat report and chatType:"" if it is group chat report
What changes do you think we should make in order to solve the problem?
Use the same condition to disable the button that you used to display the error message above the button. Update this condition like below
@shawnborton what do you think? Do we need to disable the form button when there's an error on the form? I noticed that across the app, all our forms show errors and do not disable the button.
Submit buttons shall not be disabled or blocked from being pressed in most cases. We will allow the user to submit a form and point them in the right direction if anything needs their attention.
The only time we won’t allow a user to press the submit button is when we have submitted the form and are waiting for a response (e.g. from the API). In this case we will show a loading indicator and additional taps on the submit button will have no effect. This is handled by the Form component and will also ensure that a form cannot be submitted multiple times.
@strepanier03 we need to make a change. The issue is about 2 buttons, one disabled and the other not.
And we were asking if we should disable all OR not allow disable state. (Which button to change)
So yes, please make external, a component should be fixed to have consistency between all the UI.
changed the title [-][Split] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/-][+][HOLD for payment 2024-03-29] [Split] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/+]on Mar 22, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.55-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@jayeshmangwani] The PR that introduced the bug has been identified. Link to the PR:
[@jayeshmangwani] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@jayeshmangwani] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@jayeshmangwani] Determine if we should create a regression test for this bug.
[@jayeshmangwani] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@strepanier03] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
changed the title [-][HOLD for payment 2024-03-29] [Split] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/-][+][HOLD for payment 2024-03-29] [Splits] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/+]on Mar 22, 2024
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:
[@jayeshmangwani] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A - this issue may be oversight as we already have mentioned in the Form guidelines that button should not be disabled in most cases
[@jayeshmangwani] Determine if we should create a regression test for this bug.
[@jayeshmangwani] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
changed the title [-][HOLD for payment 2024-03-29] [Splits] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/-][+][PAID] [Splits] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/+]on Apr 5, 2024
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Mar 12, 2024
Triggered auto assignment to @strepanier03 (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.kavimuru commentedon Mar 12, 2024
we think this bug might be related to #vip-split
cc @arielgreen
kavimuru commentedon Mar 12, 2024
@strepanier03 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.
Krishna2323 commentedon Mar 12, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Split scan - Split button is not disabled after clicking split for group chat split request
What is the root cause of that problem?
The issue is different here, the issue mentioned isn't a issue because we disable the submit button when merchant is required and has an error. But we have inconsistency in request money flow and the
SplitBillDetailsPage. When we request money to a policy without merchant we don't disable the submit button but it is disabled inSplitBillDetailsPage.We don't check for
merchantErrorin the new componentMoneyTemporaryForRefactorRequestConfirmationList.App/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js
Line 612 in c039ff7
What changes do you think we should make in order to solve the problem?
We should also check for
merchantError.const shouldDisableButton = selectedParticipants.length === 0 || merchantError;Result
Alternatively
Replace
MoneyRequestConfirmationListwithMoneyTemporaryForRefactorRequestConfirmationListinSplitBillDetailsPage.shahinyan11 commentedon Mar 12, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Split scan - Split button is not disabled after clicking split for group chat split request
What is the root cause of that problem?
We disable the button depending on
shouldDisplayMerchantErrorhere . As we can see in video the merchant error is displaying for workspaceSplitbut not displaying for group chatSplit. It is because the props.isPolicyExpenseChat istruefor workspaceSplitand isfalsefor group chatSplitwhich is sent from here. The reason is that the report data received from the backend haschatType:policyExpenseChatif it is workspace chat report andchatType:""if it is group chat reportWhat changes do you think we should make in order to solve the problem?
Use the same condition to disable the button that you used to display the error message above the button. Update this condition like below
We can also define a new constant
const isFormErrorExist = !_.isEmpty(formError);and use that instead of using!_.isEmpty(formError)twiceWhat alternative solutions did you explore? (Optional)
dragnoir commentedon Mar 12, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The split button is not disabled when there's a form error
What is the root cause of that problem?
The QA mentioned that split on group chat has an error because the button is not disabled when there's an error on the form.
I think that's correct, we don't disable buttons when there's an error on the form.
So the issue is within the workspace chat split request.
We should not disable the form button when there's something missing.
What changes do you think we should make to solve the problem?
We need to remove
shouldDisplayMerchantErrorfrom hereApp/src/components/MoneyRequestConfirmationList.js
Line 528 in 4ac2dd7
This way we keep consistency between all pages. and below are some examples of errors on fields and button not disabled.
What alternative solutions did you explore? (Optional)
We can show on error message that the Merchant is required.
dragnoir commentedon Mar 12, 2024
@shawnborton what do you think? Do we need to disable the form button when there's an error on the form? I noticed that across the app, all our forms show errors and do not disable the button.
shawnborton commentedon Mar 12, 2024
Yeah, I believe our default form behavior does not make form submit buttons disabled. cc @Expensify/design @marcaaron
dannymcclain commentedon Mar 12, 2024
Yup! You're right—it's outlined in our Forms contributing guide:
strepanier03 commentedon Mar 13, 2024
Does this mean we don't want to make a change because we don't disable the button in most cases?
Or should I put this external?
dragnoir commentedon Mar 13, 2024
@strepanier03 we need to make a change. The issue is about 2 buttons, one disabled and the other not.
And we were asking if we should disable all OR not allow disable state. (Which button to change)
So yes, please make external, a component should be fixed to have consistency between all the UI.
32 remaining items
[-][Split] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/-][+][HOLD for payment 2024-03-29] [Split] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/+]melvin-bot commentedon Mar 22, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Mar 22, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.55-3 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-03-29. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Mar 22, 2024
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:
[-][HOLD for payment 2024-03-29] [Split] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/-][+][HOLD for payment 2024-03-29] [Splits] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/+]jayeshmangwani commentedon Mar 31, 2024
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:
Regression Test Steps
Do you agree 👍 or 👎 ?
jayeshmangwani commentedon Apr 4, 2024
@strepanier03 This issue is ready for payout.
strepanier03 commentedon Apr 4, 2024
Thanks @jayeshmangwani - I'll update the priority label, I was expecting this to flip to Daily and missed it.
strepanier03 commentedon Apr 5, 2024
@dragnoir - I just hired you to a job, I'll keep an eye out to pay it when you accept.
@jayeshmangwani - Paid and closed via Upwork as well.
Thank you both!
strepanier03 commentedon Apr 5, 2024
Saw you accepted so I paid you out as well @dragnoir.
Thanks again everyone!
[-][HOLD for payment 2024-03-29] [Splits] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/-][+][PAID] [Splits] [$500] Split scan - Split button is not disabled after clicking split for group chat split request[/+]