[NoQA] Remove non-existent reimbursableTotal fields from stable report selector#91811
Conversation
…m stable report selector These properties don't exist on the Report type, causing typecheck and ESLint failures on main. The Report type has nonReimbursableTotal and unheldNonReimbursableTotal, but no reimbursable counterparts. Co-authored-by: Michał Jasikowski <mjasikowski@users.noreply.github.com>
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @mjasikowski 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! 🧪🧪
|
|
✋ 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/mjasikowski in version: 9.3.84-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Help Site Review: No changes required. This PR is a type-only fix — it removes two non-existent property references ( |
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.3.86-0 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the changes in this PR. It removes two non-existent property references ( No help site changes are required. @mjasikowski, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.3.88-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are needed for this PR. This PR is a type-only fix that removes two non-existent property references ( @mjasikowski, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.88-2 🚀
|
Explanation of Change
The
getStableReportSelectorinsrc/selectors/Report.tsreferences two properties —reimbursableTotalandunheldReimbursableTotal— that do not exist on theReporttype. TheReporttype only hasnonReimbursableTotalandunheldNonReimbursableTotal.This causes both TypeScript (
error TS2561/error TS2551) and ESLint (@typescript-eslint/no-unsafe-assignment) failures onmain, blocking the deploy pipeline.This PR removes the two invalid property assignments.
Fixed Issues
$ https://github.com/Expensify/App/actions/runs/26502031807
Tests
// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review"
// Please describe what tests you performed that validates your changed worked.
Offline tests
N/A — no behavioral change, type-only fix.
QA Steps
// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review".
// Please describe what QA needs to do to validate your changes and what areas do they need to test for regressions.
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