[NoQA] Fix main CI failures: seatbelt, personalDetailsList, and PolicyMemberTest#96309
Conversation
|
@arosiclair 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] |
PR #95637 added a new getUrlWithBackToParam usage in ROUTES.ts, exceeding the allowed seatbelt count of 105 and failing ESLint on main. Co-authored-by: Cursor <cursoragent@cursor.com>
1309a6b to
4fa264c
Compare
…etUrlWithBackToParam
Derive doesPersonalDetailExistByAccountID from newPersonalDetailsOnyxData after the personal details list param was removed, and update PolicyMemberTest to use the new function signature. Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Fixes typecheck failure after personalDetailsList was added to SetWorkspaceApprovalModeAdditionalData without restoring the type import. Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.36-0 🚀
|
|
🤖 I reviewed the changes in this PR against the help site content under No help site changes are required. This is a
There are no changes to features, tab names, settings labels, buttons, or user-facing flows that the help site documents, so no draft docs PR was created. @mountiny, since there are no user-facing changes here, no help site PR was needed. Let me know if you'd like me to re-check any specific article. |
Explanation of Change
Fixes the CI failures blocking
mainafter the personal details refactor and theREPORT_WITH_IDroute change.getUrlWithBackToParamallowance insrc/ROUTES.tsfrom 105 to 106. PR Fix: return home URL with backTo param for invalid reportID in getRoute #95637 added a new usage whenREPORT_WITH_ID.getRouteis called with an invalidreportID, which exceeded the allowed count.buildAddMembersToWorkspaceOnyxData— Fix a leftoverpersonalDetailsListreference after the param was removed during the useOnyx refactor. DerivedoesPersonalDetailExistByAccountIDfromnewPersonalDetailsOnyxDatainstead.PolicyMemberTest— Update the test to use the new function signature and pass optimistic personal details data for new members.Policy.ts— Restore the missingPersonalDetailsListtype import used bySetWorkspaceApprovalModeAdditionalData.This unblocks ESLint, typecheck, and the affected Jest suites (
PolicyMemberTest,TrackExpenseTest,RequestMoneyTest) onmain.Fixed Issues
$ #96307
PROPOSAL:
Tests
npm run lintand confirm ESLint passes, including thegetUrlWithBackToParamseatbelt count of 106.npm run typecheckand confirm it passes.npm test -- tests/actions/PolicyMemberTest.tsand confirm all tests pass.npm test -- tests/actions/IOUTest/TrackExpenseTest.ts tests/actions/IOU/RequestMoneyTest.tsand confirm the accountant/share-with-workspace tests pass.Offline tests
Same as tests.
QA Steps
npm run lintand confirm ESLint passes.npm run typecheckand confirm it passes.npm test -- tests/actions/PolicyMemberTest.ts tests/actions/IOUTest/TrackExpenseTest.ts tests/actions/IOU/RequestMoneyTest.tsand confirm all tests pass.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))npm run compress-svg)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