fix: Report - Unending skeleton on announce room when owner deletes workspace#75093
Conversation
|
@mananjadhav 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] |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@TaduJR Screenshots are missing for all the platforms. I can see only web, please upload for all platforms. |
…nounce-room-when-owner-deletes-workspace
|
@TaduJR We now have lint errors. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-announce-skeleton.movAndroid: mWeb Chromemweb-chrome-announce-skeleton.moviOS: HybridAppiOS: mWeb Safarimweb-safari-announce-skeleton.movMacOS: Chrome / Safariweb-announce-skeleton.movMacOS: Desktopdesktop-announce-skeleton.mov |
…nounce-room-when-owner-deletes-workspace
…nounce-room-when-owner-deletes-workspace
…nounce-room-when-owner-deletes-workspace
|
@TaduJR I can see updates on the icon fix. Any updates on the screenshots? |
…nounce-room-when-owner-deletes-workspace
Ready @mananjadhav Also ensured Icon fix is working for all platforms. Thanks! |
|
✋ 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/rlinoz in version: 9.2.62-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.62-5 🚀
|
Explanation of Change
This PR fixes the issue where the #announce room displays an unending skeleton loader when the workspace owner deletes the workspace.
Root Cause:
When a workspace is deleted, members are removed from the #announce room and the report is closed. However,
ReportScreen.tsxwasn't handling announce rooms in itsisRemovalExpectedForReportTypecheck, causing it toshow an infinite skeleton loader instead of properly navigating away.
Changes:
Added
isAnnounceRoomto theisRemovalExpectedForReportTypecondition inReportScreen.tsx(line 687-693), so announce rooms are properly handled when their parent workspace is deleted.Fixed a pre-existing lint error by converting the direct
Expensiconsimport to use the lazy loading hookuseMemoizedLazyExpensifyIconsas required by the codebase standards.This follows the same pattern already used for
isAdminRoom,isGroupChat,isPolicyExpenseChat, and other room types that can be removed when their parent entity is deleted.Fixed Issues
$ #74300
PROPOSAL: #74300 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as 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))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-Native.mp4
Android: mWeb Chrome
Android-mWeb.mp4
iOS: Native
iOS-Native.mp4
iOS: mWeb Safari
iOS-Safari.mp4
MacOS: Chrome / Safari
output.mp4
MacOS: Desktop
Mac-Desktop.mp4