Company Cards: Add statement close date to new commercial card feeds#65113
Conversation
|
@ikevin127 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] |
| const [error, setError] = useState<string | undefined>(undefined); | ||
|
|
||
| const sections = useMemo(() => { | ||
| const data = [...Array(28).keys()].reduce<CustomCloseDateListItem[]>((days, key) => { |
There was a problem hiding this comment.
About the 28 days logic, I followed the Slack discussion on this and noted that @JS00001 said:
I assume we'd want to show 31, and then on the BE we would set it to the min of their selected value, or the days in the month
and @JmillsExpensify said:
We can’t show higher than 28 since using higher than that would cause some months to fail, since they don’t have higher than that number.
As a result of that, I’m nearly certain that all banks never close a company card statement on a day other than 1-28.
🟡 My concern is that showing only 28 days regardless of month could confuse users who expect to see all valid days. I'd suggest we add an informational note at the top of the component to let the user know why we only allow 28 selectable days.
There was a problem hiding this comment.
An additional concern is that we don't support more than 1-28 on OldDot, so by adding more options now, we're creating a backward compatibility issue. I'm down to add some text if anyone in this PR is passionate, though also worth noting that we've had this behavior in OldDot for years and I'm not aware of this question coming up.
|
Heads up: The statement close date step is only displayed if you choose Edit: I will add the same step for direct feed in a follow up PR |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-hybrid.mp4Android: mWeb Chromeandroid-mweb.mp4iOS: HybridAppios-hybrid.mp4iOS: mWeb Safariios-mweb.mp4MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
luacmartins
left a comment
There was a problem hiding this comment.
|
@luacmartins Thanks! I can reuse some of that existing logic but the figma design does not include the "Last day of the month" and "Last business day of the month" in the same selection list as the days |
|
@Expensify/design for opinions on the above. It seems like we have a different existing design for selecting days of month, last day of month, etc |
luacmartins
left a comment
There was a problem hiding this comment.
I'm gonna go ahead and merge this, we can address the design changes (if any) in a follow up
Agreed. I prefer the simpler execution in this video where the custom line item goes to a new screen with all the dates |
|
Definitely agree with that. |
|
Sounds good to me! |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.1.75-0 🚀
|
|
@s77rt @luacmartins We haven't a statement close date tab while adding the Company card feed. Is it an issue? Bug6878216_1751643769750.Screen_Recording_2025-07-04_at_6.39.29_PM.mp4 |
|
@IuliiaHerets No, not an issue. That's the expected result for now because we haven't made the statement close page available in staging/production yet. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.76-5 🚀
|
|
I think we still need to change the existing design in submission frequency for consistency #65113 (review) |



Explanation of Change
Fixed Issues
$ #64484
PROPOSAL:
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Screen.Recording.2025-06-29.at.1.43.50.AM.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-06-29.at.1.42.25.AM.mov
MacOS: Desktop