Conversation
58ad96f to
0503b24
Compare
| WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_ADVANCED: { | ||
| route: 'settings/workspaces/:policyID/accounting/quickbooks-online/advanced', | ||
| getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/advanced` as const, | ||
| getRoute: (policyID?: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/advanced` as const, |
There was a problem hiding this comment.
@koko57 It seems this is unrelated to our PR. Let's discuss this change first to avoid unexpected things. In the scope of this PR, I think we should revert this change
There was a problem hiding this comment.
@DylanDylann so should I add the comment disabling eslint above the policy?.id ?? '-1' and revert the change with the routes?
There was a problem hiding this comment.
You mean that the eslint will be failed if we revert this change
There was a problem hiding this comment.
yep, that's why I changed it. Eslint complains only on the touched files - as long as other files with policy?.id ?? '-1' isn't changed, it will ignore it. So sooner or later we would need to change it anyway. Or we can work on a PR to change it all at once if we're going to stick to this rule (I can volunteer 😃).
cc @mountiny
There was a problem hiding this comment.
I don't think it would break anything - I've seen a few more occurrences of an optional policyID param
|
@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] |
| WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_ADVANCED: { | ||
| route: 'settings/workspaces/:policyID/accounting/quickbooks-online/advanced', | ||
| getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/advanced` as const, | ||
| getRoute: (policyID?: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/advanced` as const, |
There was a problem hiding this comment.
@koko57 It seems this is unrelated to our PR. Let's discuss this change first to avoid unexpected things. In the scope of this PR, I think we should revert this change
|
@koko57 Also please resolve conflict |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-26.at.16.33.57.movAndroid: mWeb ChromeScreen.Recording.2025-02-26.at.16.30.36.moviOS: NativeScreen.Recording.2025-02-26.at.16.31.33.moviOS: mWeb SafariScreen.Recording.2025-02-26.at.16.32.48.movMacOS: Chrome / SafariScreen.Recording.2025-02-26.at.16.29.48.movMacOS: DesktopScreen.Recording.2025-02-26.at.16.29.30.mov |
|
@koko57 A familiar bug, the Expensify feed doesn't display if users haven't gone to Expensify card page Screen.Recording.2025-02-26.at.14.13.11.mov |
|
@DylanDylann the bug with the feed - isn't it still being worked on? |
|
@DylanDylann conflicts resolved, comments addressed |
|
@koko57 Typescript failed |
| const bankAccountTitle = bankAccountList?.[paymentBankAccountID]?.title ?? ''; | ||
|
|
||
| const policyID = policy?.id ?? '-1'; | ||
| const policyID = policy?.id; |
There was a problem hiding this comment.
Why do we need t change this line?
There was a problem hiding this comment.
https://github.com/Expensify/App/actions/runs/13524618354/job/37791922234?pr=57407
Do not default string IDs to any value.
As I mentioned above - I don't like this rule as we have many occurrences of defaulting to '-1'
There was a problem hiding this comment.
and TS fails, but it's my bad I didn't resolve the conflicts properly
| /** | ||
| * Check if the Expensify Card is fully set up and a new card can be issued | ||
| * | ||
| * @param policy the policy object |
There was a problem hiding this comment.
Do we need these? They kinda seem redundant here
There was a problem hiding this comment.
@mountiny you mean the whole comment or just params?
|
Actually can you please add unit test for the new method |
|
@mountiny done |
|
Thank you |
|
✋ 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/mountiny in version: 9.1.8-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.8-1 🚀
|



Explanation of Change
Fixed Issues
$ #57391
PROPOSAL: -
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Screen.Recording.2025-02-25.at.16.18.52.mp4
MacOS: Desktop