-
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
[HOLD for payment 2024-11-07] [$100] Expensify Card - improvements to the Set a limit screen #50788
Comments
Triggered auto assignment to @slafortune ( |
@slafortune 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 |
Edited by proposal-police: This proposal was edited at 2024-10-15 09:59:48 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.In expensify card, issue a card section if we set limit in decimals, shows error What is the root cause of that problem?We have check to give error on decimals:
We need to make thus error more specific What changes do you think we should make in order to solve the problem?We should add a new valudation check will will throw an error if In en.ts and both es.ts we need to create a new copy as : const validate = useCallback(
(values: FormOnyxValues<typeof ONYXKEYS.FORMS.ISSUE_NEW_EXPENSIFY_CARD_FORM>): FormInputErrors<typeof ONYXKEYS.FORMS.ISSUE_NEW_EXPENSIFY_CARD_FORM> => {
const errors = ValidationUtils.getFieldRequiredErrors(values, [INPUT_IDS.LIMIT]);
// We only want integers to be sent as the limit
if (!Number(values.limit)) {
errors.limit = translate('iou.error.invalidAmount');
}
if(!Number.isInteger(Number(values.limit))){
errors.limit = translate('iou.error.invalidDecimalAmount');
}
return errors;
},
[translate],
); Same should be done to the edit limit screen as well |
Yeah - I don't think that we would/should expect a decimal to be entered. I wonder if simply updating the error message to indicate that they need to enter a whole number would be good. asking in design - https://expensify.slack.com/archives/C03TME82F/p1729001172189579 |
Let's use this to make two updates to th Expensify Card Set Limit Screen
@Expensify/design can you chime in on what would be preferred language?
|
Job added to Upwork: https://www.upwork.com/jobs/~021846213635698721920 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
Let's see if the @Expensify/marketing team has any ideas, but I think I like the first bullet of your suggestions. |
I think this is fine. |
Double checking - the currency can only be dollars for Expensify Card limits right now, is that correct? Because otherwise "dollar amount" would be incorrect. I just want to make sure, thanks! |
@twilight294 would you like to update your proposal? |
The alignment of the dollar sign with the amount box is being addressed in #50778 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expensify Card - improvements to the Set a limit screen What is the root cause of that problem?We currently use
What changes do you think we should make in order to solve the problem?Add new translations, need to confirm the right copy
And change the following code to use the new translation
For the alignment, is being addressed on another issue What alternative solutions did you explore? (Optional) |
Yes i did update my proposal @slafortune @rayane-djouah here Note: In my previous proposal I already proposed the steps we have to take where to make the changes and both english and spanish copies as well, even mentioned the edit limit page as well |
Since we're addressing the currency symbol elsewhere and this is just a copy update, we should probably bump this down to something small like $62.50 |
$125 is fair i guess 😞 |
$125 is too much for a simple copy change. |
The proposal by @twilight294 looks good to me 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
The proposal involves adding a new copy and adjusting the validation logic on both the "Issue New Card Limit" and "Edit Card Limit" screens. Let's see what @thienlnam thinks of a fair payment amount. |
Proposal looks good, it's a pretty straightforward change. Perhaps we can just meet in between with $100. @slafortune is handling payment for this, so feel free to make a final decision here |
Upwork job price has been updated to $100 |
@thienlnam can you hire me here :) |
📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @twilight294 You have been assigned to this job! |
PR ready for review @rayane-djouah |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.55-10 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-11-07. 🎊 For reference, here are some details about the assignees on this issue:
|
@rayane-djouah @slafortune The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Regression Test Proposal
Do we agree 👍 or 👎 |
Offer sent here @twilight2294 The price for this job is $100 which was decided prior to you asking to be assigned. Perhaps the other PR you referenced should have been set to $100 as well, but this one had been discussed and agreed on. |
PAYMENT SUMMARY:FIX: @twilight2294 [$100] Paid and Contract ended - thank you! 🎉 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.49-0
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team
Action Performed:
Pre-condition: Enable expensify card and add a VBA
Expected Result:
In expensify card, issue a card section if we set limit in decimals, must not show error enter valid amount.
Actual Result:
In expensify card, issue a card section if we set limit in decimals, shows error enter valid amount.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6635041_1728983975900.Screenrecorder-2024-10-15-14-37-25-413_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @slafortuneThe text was updated successfully, but these errors were encountered: