-
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] WS - "Rule" tab has unnecessarly long input field for "Days" section #48284
Comments
Triggered auto assignment to @chiragsalian ( |
Triggered auto assignment to @anmurali ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
We think that this bug might be related to #wave-collect - Release 1 |
Demoting since rules are in beta |
ProposalPlease re-state the problem that we are trying to solve in this issue."Rule" tab has unnecessarly long input field for "Days" section What is the root cause of that problem?We set the maxLength for this field to be
What changes do you think we should make in order to solve the problem?We will update the maxLength here to a reasonable number, ex. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "Rule" tab has unnecessarily long input field for the "Days" section What is the root cause of that problem?We are setting the maxlength to 50
What changes do you think we should make in order to solve the problem?Remove
and in here we should add the limit on digits we can do something like this
In the above code we can add limit of our choice. This is the same approach we follow in App/src/components/AddPaymentCard/PaymentCardForm.tsx Lines 179 to 184 in b188243
Why should we prefer this approach over using max_length? The difference is that when copying numbers with spaces and pasting them here, max_length will count the spaces as well, which can affect the input. With `maxLength={5}`Screen.Recording.2024-08-29.at.11.33.26.PM.movWith my solutionScreen.Recording.2024-08-29.at.11.36.46.PM.movThe proposed solution will make this field's behavior consistent with the other fields on the rules page. In this field max limit is 8Screen.Recording.2024-08-29.at.11.39.10.PM.movWhat alternative solutions did you explore? (Optional) |
@anmurali, @chiragsalian Eep! 4 days overdue now. Issues have feelings too... |
marking issue as external |
Job added to Upwork: https://www.upwork.com/jobs/~0183e993ca7b36650e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 ( |
will review proposals today. |
@Nodebrute's Proposal sounds good to me 👍 🎀 👀 🎀 C+ reviewed |
Current assignee @chiragsalian is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Proposal LGTM, feel free to create the PR @Nodebrute. |
📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @Nodebrute 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@chiragsalian Could you please verify the number of digits allowed for the max expense age? Currently, I have set the limit to 5. cc: @ishpaul777 |
i defer decision to @chiragsalian |
Yup 5 for now sounds good to me. With 5 digits user can enter 99999 which is 273 years, so yeah that's more than good enough for me. |
@anmurali Bump for payment. |
This issue has not been updated in over 15 days. @anmurali, @chiragsalian, @Nodebrute, @ishpaul777 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@anmurali gentle bump for payment |
Bumped this issue internally |
Done. |
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: v9.0.26-1
Reproducible in staging?: Y
Reproducible in production?: Can't check
Email or phone of affected tester (no customers): applausetester+en@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
User expects that there is a limit of days that can be input and that this limit is reasonable
Actual Result:
User can input absurdly large number of days, numbers that are highly unrealistic for a field like this
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6586795_1724948360909.Absurd_number_of_days.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ishpaul777The text was updated successfully, but these errors were encountered: