Completely remove TABLE_REPORT_VIEW beta flag and related components#63533
Conversation
870888a to
bb8da07
Compare
2d7d466 to
987a498
Compare
987a498 to
5b7f575
Compare
|
@dominictb 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] |
|
|
|
@dominictb can you please review thoroughly |
|
@Kicu There is probably a conflict due to the comment @dominictb what is your eta for the review? |
|
🚧 @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, Desktop, and Web. Happy testing! 🧪🧪
|
I'll finish in several hours. |
|
@dominictb conflict solved, merged newest main |
src/libs/actions/IOU.ts
Outdated
| isSingleTransactionView = false, | ||
| shouldRemoveIOUTransactionID = !Permissions.isBetaEnabled(CONST.BETAS.TABLE_REPORT_VIEW, betas), | ||
| ) { | ||
| function deleteMoneyRequest(transactionID: string | undefined, reportAction: OnyxTypes.ReportAction, isSingleTransactionView = false, shouldRemoveIOUTransactionID = false) { |
There was a problem hiding this comment.
| function deleteMoneyRequest(transactionID: string | undefined, reportAction: OnyxTypes.ReportAction, isSingleTransactionView = false, shouldRemoveIOUTransactionID = false) { | |
| function deleteMoneyRequest(transactionID: string | undefined, reportAction: OnyxTypes.ReportAction, isSingleTransactionView = false) { |
I think we can safely remove shouldRemoveIOUTransactionID.
There was a problem hiding this comment.
yes! that was my plan but I seem to have forgotten to actualy remove it 👍
src/libs/actions/IOU.ts
Outdated
| const firstIOU = iouActions.at(0); | ||
| if (firstIOU) { | ||
| const {updatedReportAction, iouReport} = prepareToCleanUpMoneyRequest(originalTransactionID, firstIOU, Permissions.isBetaEnabled(CONST.BETAS.TABLE_REPORT_VIEW, betas)); | ||
| const {updatedReportAction, iouReport} = prepareToCleanUpMoneyRequest(originalTransactionID, firstIOU, true); |
There was a problem hiding this comment.
| const {updatedReportAction, iouReport} = prepareToCleanUpMoneyRequest(originalTransactionID, firstIOU, true); | |
| const {updatedReportAction, iouReport} = prepareToCleanUpMoneyRequest(originalTransactionID, firstIOU); |
| @@ -840,7 +839,7 @@ function PureReportActionItem({ | |||
| ); | |||
|
|
|||
| // Table Report View does not display these components as separate messages, except for self-DM | |||
There was a problem hiding this comment.
| // Table Report View does not display these components as separate messages, except for self-DM |
There was a problem hiding this comment.
I found some other places where tableReportView is mentioned. Wonder if we could clean up/rename them?
App/src/libs/ReportActionsUtils.ts
Line 1124 in acd5ab8
App/src/libs/actions/Report.ts
Line 968 in 482c959
|
@Kicu Can you fix the spelling errors too? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-06-13.at.00.29.13-compressed.movAndroid: mWeb ChromeScreen.Recording.2025-06-13.at.00.33.11.moviOS: HybridAppScreen.Recording.2025-06-12.at.23.55.46-compressed.moviOS: mWeb SafariScreen.Recording.2025-06-12.at.23.59.57-compressed.movMacOS: Chrome / SafariScreen.Recording.2025-06-12.at.23.46.11-compressed.movMacOS: DesktopScreen.Recording.2025-06-12.at.23.58.31-compressed.mov |
|
I will come back to this tomorrow and fix all comments |
|
@dominictb changes implemented, had to merge newest main because there were conflicts. About this comment: #63533 (review) In general we tend to use the phrase App/src/libs/actions/Report.ts Lines 1096 to 1098 in 26ae296 which I went ahead and asked @mountiny for opinion - perhaps we can remove this. |
|
TS is failing, because there is a TS error on main - it does not come from my PR so I'm leaving it be. Once we approve this PR I can sync with freshest main. |
|
Sounds good! |
|
@dominictb Vit told me that for now So I think you can verify that I fixed everything else and continue 🙏 |
|
Sorry there are conflicts now, can you please resolve? |
|
Sure, please let's merge it because the conflicts are in a file that I'm removing - because we no longer render it (it's the old preview that is not shown without flag) :| It's the second time some edited the file that is going away. This project is a bit chaotic for such refactors 🙈 |
|
✋ 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.67-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.67-2 🚀
|
This is Part 2 of: #63421
This RP completely removes
TABLE_REPORT_VIEWflag and any leftovers and old components related to it.Explanation of Change
false, this includesReportPreviewandMoneyRequestPreviewFixed Issues
$ #63254
PROPOSAL:
Tests
Note: this PR technically only removes code that was already unused, so its not easy to write specific test steps, I'm only describing some general parts of app that are connected
Offline tests
QA Steps
Read Tests.
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
remove-flag-android.mp4
Android: mWeb Chrome
iOS: Native
remove-flag-ios.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
remove-flag-web.mp4
MacOS: Desktop