-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2025-01-13] [$125] Invoices - Invoices badge is $0.00 instead of 0,00 US$ when app language is Spanish #53916
Comments
Triggered auto assignment to @sonialiap ( |
Edited by proposal-police: This proposal was edited at 2024-12-11 11:33:12 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Invoices - Invoices badge is What is the root cause of that problem?We are using App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 204 to 206 in dac90e1
What changes do you think we should make in order to solve the problem?We should use
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021866918061086756277 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 ( |
Upwork job price has been updated to $125 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The currency and amount in the Invoices (Facturas) badge is still $0.00. What is the root cause of that problem?The invoice badge is always displayed with the format ![]() App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 204 to 207 in 20b4c7d
What changes do you think we should make in order to solve the problem?We should use
App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 204 to 207 in 20b4c7d
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)If the correct currency should be the workspace currency, we need to add the worksapce currency to
App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 204 to 207 in 20b4c7d
and here
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The Invoices badge displays '$0.00', but it should be formatted as 0,00 US$ when the app language is set to Spanish What is the root cause of that problem?App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 204 to 206 in dac90e1
The Invoices badge manually concatenates the currency symbol with function convertToFrontendAmountAsString that just converts the amount to a string, but does not handle localization or currency formatting
What changes do you think we should make in order to solve the problem?Should use
The suggested change:
POC : What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.The currency symbol displayed on the Invoices / Facturas button is misplaced in Spanish. What is the root cause of that problem?The root cause for this mismatch between Billetera and Facturas button is that Facturas is using a non-localized approach and needs to be refactored into using the new helper method. What changes do you think we should make in order to solve the problem?As stated by other proposals, What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Given the language is set to Spanish and currency to US Dollars when checking for the wallet badge then it should display What alternative solutions did you explore? (Optional)I would make sure the rest of the application is using the correct method for displaying currency values to the customer. It should be using localized display method. |
📣 @maxawad! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Triggered auto assignment to @sonialiap ( |
I'm OOO Dec 16-20, I think this might be a quick fix so adding a leave buddy next steps:
|
Triggered auto assignment to @jliexpensify ( |
@jliexpensify I will give the update by EOD. |
After changing the currency, for example to AED, the balance currency on the right side is still shown USD, is it correct? cc @sonialiap @rezkiy37 (you're the author of this PR) ![]() |
@jliexpensify I need to confirm the expectation here before choosing the proposal |
Hi! cc @cristipaval |
Thank you @rezkiy37. Let's go with @nkdengineer's alternative proposal 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.80-6 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-01-13. 🎊 For reference, here are some details about the assignees on this issue:
|
@dukenv0307 @sonialiap / @jliexpensify @dukenv0307 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:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
Payment summary:
|
$125 approved for @dukenv0307 |
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: 9.0.74-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
The currency and amount in the Invoices (Facturas) badge will change to the format of 0,00 US$
Actual Result:
The currency and amount in the Invoices (Facturas) badge is still $0.00.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6690644_1733899866488.20241211_144650.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sonialiap / @jliexpensifyThe text was updated successfully, but these errors were encountered: