-
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
Fix month in the ECard statement header title #31843
Conversation
@mananjadhav Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safariweb-month-statement.mov |
@srikarparsi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.6-2 🚀
|
Details
This PR fixes two issues:
The month in the title of the Expensify Card statement page is incorrect
The Spanish statement title is translated incorrectly.
-> When instantiate a
Date
object in JavaScript, the second argument for month is "month index", meaning January is represented as "0". When passing the month, you have to subtract one from it to instantiateDate
with an accurate month.-> The code didn't have any translation set for the statement title. This PR adds that.
Fixed Issues
$ #30743
PROPOSAL: N/A
Tests / QA Steps (Internal and production QA)
new.expensify.com/statements/202310
October 2023 Statement
, notNovember 2023 Statement
https://dev.new.expensify.com:8082/settings/preferences/language
new.expensify.com/statements/202310
Estado De Cuenta De Octubre 2023
If you're testing this locally (developers), you will see something like the one screenshotted below. The statement screen is an OldDot page embedded inside an iframe. The browser security doesn't allow NewDot to display production OldDot inside an iframe of a local NewDot. You just need to confirm that the month displayed on the title is correct.
Offline tests
N/A
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
N/A
Android: mWeb Chrome
N/A
iOS: Native
N/A
iOS: mWeb Safari
N/A
MacOS: Chrome / Safari
N/A
MacOS: Desktop
N/A