Repository navigation
[No QA] Fix typecheck on main - #104672
Conversation
Top-level attendees is no longer a Search row field, so it is dropped from the row-only field list. Exact Online is only a waitlist listing with no Connections entry, so the settlement page test leaves it out of the connections it iterates.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@MonilBhavsar 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] |
|
@inimaga @mountiny @MonilBhavsar TS checks are failing on main. Could you merge this to fix them? |
|
cc: @roryabraham |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.5.20-0 🚀
|
|
No help site update needed. This PR only fixes types and a test, so users won't see any change in the app. |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.5.20-5 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Typecheck fails on
main, so it fails on every PR (for example https://github.com/Expensify/App/actions/runs/39710771125/job/119601317936).attendees: Fix false missingAttendees violation in Search rows #104540 removed the top-levelattendeesfield fromTransactionListItemType, and fix: Merchant name changes save on an expense, but the Reports tab continues to show the old merchant name. #104450 lists it in the row-only fields ofgetTransactionFromTransactionListItem.ts, which fails withTS2353. This removes it from that list. Search rows never set top-levelattendees, so nothing changes at runtime.exactOnline: Add Exact Online waitlist #103997 added Exact Online toCONST.POLICY.CONNECTIONS.NAMEfor its waitlist, without aConnectionsentry. The test from Remove unsafe assertions from emoji menus, room creation, and card settlement #103920 iterates every connection name as aPolicyConnectionName, which fails withTS2322andTS2345. The test now leaves Exact Online out.Fixed Issues
No issue. This PR fixes the
typecheckjob that fails onmain.PROPOSAL: N/A
Tests
npm run typecheck.src/libs/getTransactionFromTransactionListItem.tsortests/ui/DynamicWorkspaceSettlementAccountPageTest.tsx.npx jest tests/ui/DynamicWorkspaceSettlementAccountPageTest.tsx tests/unit/Search/SearchUIUtilsTest.ts.Offline tests
N/A, this only changes types and a test.
QA Steps
N/A, [No QA]
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.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