-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using report name value to check archived #45330
using report name value to check archived #45330
Conversation
@Ollyws This PR isn't required the C+ reviewer. Let's ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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