Skip to content

[Due for payment 2025-04-14] [$250] Ensure we only have one error message show for forms that have only one input #55649

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

Closed
2 tasks
dylanexpensify opened this issue Jan 23, 2025 · 43 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement.

Comments

@dylanexpensify
Copy link
Contributor

dylanexpensify commented Jan 23, 2025

Problem: moving into a newDot world, we've been able to make a lot of our forms shorter and with fewer inputs per form. When users make an input that isn't the correct format for the form an error is thrown both in the input and at the bottom of the form. When they click on the hyperlink to fix the error, it autofocuses them to the input in question. This can result in confusion though for a user when multiple error messages show for a form that has only one input.

Solution: remove footer errors when only one input exists in a form. This removes any confusion for a user who might click on the hyperlink and be brought to the only input.

Next steps:

  • Review all forms we have in product for NewDot
  • For all that have only one input, remove the footer error message

Mocks
Image

cc @Expensify/design

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021885281718152248847
  • Upwork Job ID: 1885281718152248847
  • Last Price Increase: 2025-02-07
  • Automatic offers:
    • shubham1206agra | Contributor | 106076444
Issue OwnerCurrent Issue Owner: @dylanexpensify
@dylanexpensify dylanexpensify added Improvement Item broken or needs improvement. Task labels Jan 23, 2025
@dylanexpensify dylanexpensify self-assigned this Jan 23, 2025
@dylanexpensify
Copy link
Contributor Author

Coming from this internal slack post for visibility for internal members.

@shubham1206agra
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Ensure we only have one error message show for forms that have only one input

What is the root cause of that problem?

Improvement Task

What changes do you think we should make in order to solve the problem?

  • Review all forms we have in product for NewDot

For this, we will review all the usage of FormProvider component and determine whether we should show or hide the Fix alert

  • For all that have only one input, remove the footer error message

After doing the previous step, we will use pre-existing prop named shouldHideFixErrorsAlert, which can be put on FormProvider component.

One example of existing usage -

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

NA since this is an UI change

What alternative solutions did you explore? (Optional)

@dannymcclain
Copy link
Contributor

Added a mock to OP to make it a little more clear what the expected outcome would look like.

Copy link

melvin-bot bot commented Jan 29, 2025

@dylanexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@dylanexpensify
Copy link
Contributor Author

NICE! Thanks @dannymcclain!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 29, 2025
@dylanexpensify dylanexpensify added the External Added to denote the issue can be worked on by a contributor label Jan 31, 2025
@melvin-bot melvin-bot bot changed the title Ensure we only have one error message show for forms that have only one input [$250] Ensure we only have one error message show for forms that have only one input Jan 31, 2025
Copy link

melvin-bot bot commented Jan 31, 2025

Job added to Upwork: https://www.upwork.com/jobs/~021885281718152248847

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 31, 2025
Copy link

melvin-bot bot commented Jan 31, 2025

Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (External)

Copy link

melvin-bot bot commented Feb 4, 2025

@rojiphil, @dylanexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Feb 4, 2025
@rojiphil
Copy link
Contributor

rojiphil commented Feb 4, 2025

Will review today

@melvin-bot melvin-bot bot removed the Overdue label Feb 4, 2025
@rojiphil
Copy link
Contributor

rojiphil commented Feb 4, 2025

@shubham1206agra proposal to use shouldHideFixErrorsAlert for all forms having only one input should solve this issue. Proposal LGTM.
🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Feb 4, 2025

Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@dylanexpensify
Copy link
Contributor Author

Nice! Rory to confirm

@dylanexpensify
Copy link
Contributor Author

bump le @roryabraham 🙇‍♂

@melvin-bot melvin-bot bot added the Overdue label Feb 6, 2025
Copy link

melvin-bot bot commented Feb 7, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added Overdue Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Mar 10, 2025
@dylanexpensify
Copy link
Contributor Author

@shubham1206agra mind giving an update?

@shubham1206agra
Copy link
Contributor

Waiting for approval from @roryabraham

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 7, 2025
@melvin-bot melvin-bot bot changed the title [$250] Ensure we only have one error message show for forms that have only one input [Due for payment 2025-04-14] [$250] Ensure we only have one error message show for forms that have only one input Apr 7, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 7, 2025
Copy link

melvin-bot bot commented Apr 7, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Apr 7, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.23-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 2025-04-14. 🎊

For reference, here are some details about the assignees on this issue:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 14, 2025
@dylanexpensify
Copy link
Contributor Author

@roryabraham le bump!

@melvin-bot melvin-bot bot added the Overdue label Apr 18, 2025
Copy link

melvin-bot bot commented Apr 21, 2025

@dylanexpensify Eep! 4 days overdue now. Issues have feelings too...

@dylanexpensify
Copy link
Contributor Author

Payment summary:

Contributor: @rojiphil $250 via Upwork
Contributor+: @shubham1206agra $250 via NewDot

Please apply/request!

@melvin-bot melvin-bot bot removed the Overdue label Apr 22, 2025
@dylanexpensify
Copy link
Contributor Author

@shubham1206agra sent new offer!

@shubham1206agra
Copy link
Contributor

@dylanexpensify My payment should be on NewDot.

@rojiphil
Copy link
Contributor

Thanks @dylanexpensify for the payment summary. I have requested in ND.

@garrettmknight
Copy link
Contributor

$250 approved for @shubham1206agra

@garrettmknight
Copy link
Contributor

$250 approved for @rojiphil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement.
Projects
None yet
Development

No branches or pull requests

6 participants