using report name value to check archived#45330
Conversation
|
@Ollyws This PR isn't required the C+ reviewer. Let's ignore |
srikarparsi
left a comment
There was a problem hiding this comment.
Can we also refactor ReportScreen and ReportFooter to use getReportNameValuePair
|
Hey @DylanDylann, thanks for the quick work. I wanted to wait until this PR got merged before merging this one but it's merged now. I left a couple comments above and there's also merge conflicts now since I waited. Once you get to those, please @ me and I can do a final review + merge. |
You mean that we should use ReportUtils.getReportNameValuePairs function in ReportScreen and ReportFooter |
|
ReportUtils.getReportNameValuePairs function shouldn't be used in the component directly. In component, we should get reportNameValuePair from Onyx |
Sorry, I meant useOnyx, similar to what you have done in this PR. It is currently using withOnyx. Also, the code looks good. Do you think you could add test steps and screenshots just so that if there are regressions later on then we can easily see if they came from this PR or not? They can be something on the lines of creating a workspace, deleting it, and making sure the report shows up as archived. Once that's done I think this is good to merge |
|
@srikarparsi I think it isn't easy to cover all tests in this PR because we changed many files. But I am fine to add some test cases here |
Do you mean we should move all Onyx keys to |
Yes, that would be great
Just the reportNameValuePairs keys. I believe this is the only place we're using withOnyx for the reportNameValuePairs key so if we can refactor that to use useOnyx that would be great. I also think we can move the useOnyx into ReportFooter since we don't need the reportNameValuePairs object in ReportScreen. |
|
@srikarparsi All done |
|
Awesome thanks, one quick bug I spotted (the space between the last message and the archived box is too large): I'm also going to see if a C+ is available to help review since the changes are larger than I anticipated. Also waiting on this thread internally about the deadline so I might merge and we can fix the UI issue as a follow up. |
Reviewer Checklist
Screenshots/VideosMacOS: DesktopScreen.Recording.2024-07-16.at.01.20.48.mp4Android: NativeScreen.Recording.2024-07-16.at.01.32.28.movAndroid: mWeb ChromeScreen.Recording.2024-07-16.at.01.34.57.moviOS: NativeScreen.Recording.2024-07-16.at.01.19.12.moviOS: mWeb SafariScreen.Recording.2024-07-16.at.01.25.13.mov |
suneox
left a comment
There was a problem hiding this comment.
Overall, the changes look good to me. The condition check isArchivedRoom still keeps checking both statusNum and stateNum, so it should work for both the legacy and new approaches. My test results are included in the Screenshots/Videos section
|
Cool, going to go ahead and merge to avoid conflicts but let's fix this spacing issue as a follow up |
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.0.7-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|








Details
We need to pass in reportNameValuePairs wherever isArchivedRoom is called
Fixed Issues
$ #45323
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
Screen.Recording.2024-07-15.at.16.56.59.mov
MacOS: Chrome / Safari
Screen.Recording.2024-07-15.at.16.56.59.mov
MacOS: Desktop