fix: Each month is displayed after a number for a monthly submit set on last day#57158
Conversation
|
@DylanDylann 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/VideosiOS: mWeb SafariScreen.Recording.2025-03-13.at.13.21.49.movMacOS: Chrome / SafariScreen.Recording.2025-03-13.at.13.17.16.mov |
DylanDylann
left a comment
There was a problem hiding this comment.
These places are not updated from BE side. Should we revert it?
| [CONST.POLICY.AUTO_REPORTING_FREQUENCIES.SEMI_MONTHLY]: 'on the 1st and 16th of each month', | ||
| [CONST.POLICY.AUTO_REPORTING_FREQUENCIES.MONTHLY]: formattedDate ? `on the ${formattedDate} of each month` : '', | ||
| [CONST.POLICY.AUTO_REPORTING_FREQUENCIES.SEMI_MONTHLY]: 'on the 1st and 16th of the month', | ||
| [CONST.POLICY.AUTO_REPORTING_FREQUENCIES.MONTHLY]: autoSubmissionDate ? `on the ${autoSubmissionDate} of the month` : monthlyText, |
There was a problem hiding this comment.
| [CONST.POLICY.AUTO_REPORTING_FREQUENCIES.MONTHLY]: autoSubmissionDate ? `on the ${autoSubmissionDate} of the month` : monthlyText, | |
| [CONST.POLICY.AUTO_REPORTING_FREQUENCIES.MONTHLY]: autoSubmissionDate ? `on each ${autoSubmissionDate} of the month` : monthlyText, |
There was a problem hiding this comment.
This one is fine with the, I see the backend using the and not each for this case
There was a problem hiding this comment.
Sorry, actually it is slightly different, the backend:
- ' on the last business day of the month' (the/the)
- ' on the last day of the month' (the/the)
- ' on the of each month' (the/each)
There was a problem hiding this comment.
thanks @aldo-expensify, i updated
cc @DylanDylann
|
thanks @DylanDylann @aldo-expensify, I'll update soon |
Co-authored-by: DylanDylann <141406735+DylanDylann@users.noreply.github.com>
|
✋ 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 staging by https://github.com/aldo-expensify in version: 9.1.15-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.1.15-9 🚀
|




Explanation of Change
Fixed Issues
$ #56642
PROPOSAL: #56642 (comment)
Tests
Pre-condition:
Workspace is created with workflows enabled
Enable delayed submission and selected Monthly
In Monthly submission, choose either "Last day of the month" or "Last business day of the month"
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop