App: [HOLD for payment 2024-01-26] [$500] Wallet - `Fix the errors` button is non-functional in Additional details
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: 1.4.8-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: 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:
- Go to URL
- Log in wirh any account
- Go to Settings -> Wallet-> Enable wallet
- Go through the process of connecting to Idology questions
- Click Save@Submit without choosing any variant
- Click on
Fix the errors
Expected Result:
The first unselected radio button is activated
Actual Result:
Fix the errors button is non-functional
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android: Native
- Android: mWeb Chrome
- iOS: Native
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/78819774/80cebb0e-f767-4f52-a07e-41b69090987b
https://github.com/Expensify/App/assets/93399543/18d2cbc4-3c01-4808-8ba5-240a92fc1780
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01ddd8bb8dc018a4a6
- Upwork Job ID: 1732125580300574720
- Last Price Increase: 2024-01-02
- Automatic offers:
- fedirjh | Reviewer | 28095131
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 63 (35 by maintainers)
BugZero Checklist:
Oh Melvin. Was trying to get it to assign @kowczarz as the contributor, but doesn’t seem to want to do it. Not sure if that is important since @kowczarz is part of an expert agency. Either way, @kowczarz feel free to raise the PR and we can figure out how to wrangle Melvin if need be.
Thanks @kowczarz that looks good.
Let’s proceed with this proposal
🎀 👀 🎀 C+ reviewed
@fedirjh currently the
isAlertVisibleis calculated the following way:After update I would like to calculate it that way:
So If we will want to display something more specific than
fix the errors, it will show the alert.Proposal
Please re-state the problem that we are trying to solve in this issue.
The app displays a redundant alert with
fix the errorsbutton even tough there is no way to focus proper input.What is the root cause of that problem?
We have no possibility to decide wether or not the fix the errors alert should be displayed.
What changes do you think we should make in order to solve the problem?
In the
FormProviderwe can add a propertyshouldHideFixErrorsAlertthat will be passed down the tree toFormWrapperand there we make calculation ofisAlertVisibledepending on it, so we can easily hide the alert when needed.Sounds good, in that case I will prepare a new proposal, where I will add a prop that disables the redundant alert.
@kowczarz gotcha - thanks for showing me that!
Proposal
Please re-state the problem that we are trying to solve in this issue.
The app displays
fix the errorsbutton even tough in case of radio button there is no way to focus proper input.What is the root cause of that problem?
Currently we have no option to add custom message, or disable the button in error alert.
What changes do you think we should make in order to solve the problem?
We can add a prop to
FormAlertWrapperand pass it down the component tree fromFormProvider.Image with button disabled
Just for the context there is a thread we discussed the new layout of the errors https://github.com/Expensify/App/pull/31401#discussion_r1396510915
As @dubielzyk-expensify suggested we can add a prop that will disable the
fix the errorsbutton it will look that way:I agree that one error message seems better in that case.
Thanks for that!
I’d ideally think we should only have 1 error message here, but if we have to have two then let’s just remove the link in “fix the errors” as like you say it doesn’t do anything. The errors are self-explanatory by themselves anyways.
Sorry for the late reply. In this instance, I think we shouldn’t select anything so if they click next immediately, it’s fine to throw an error. We’d want them to make an explicit choice, hence why a default selection is no bueno 😃
Hey @fedirjh! that was intentional UI change, here you can see the discusson https://github.com/Expensify/App/pull/31401#discussion_r1396510915
@mountiny good point, we didn’t consider what should be the behaviour of the fix button. As soon as we will figure it out I can prepare a PR with update in the
FORMS.mdguidelines and an optional behaviour change of the button.