-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Update archive feature #46934
Update archive feature #46934
Conversation
I'm encountering some issues with the emulators. I'll upload a mobile video shortly. |
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.
are you sure that there's no more isArchivedRoom
occurrences to be replaced with private_isArchived
?
@situchan We use this field in one more place: shouldOptionShowTooltip function |
I reverted the isArchivedRoom to prevent any regression. I believe it's preferable to use it this way rather than calling the isArchivedRoom function individually for each case. |
@situchan Could you review this PR again? |
It's against what @srikarparsi said here |
26e0ad6
to
11516db
Compare
@situchan Pushed new commit. |
@situchan Could you review this PR again? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: Nativeios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.mov |
src/libs/ReportUtils.ts
Outdated
private_isArchived?: string | null; | ||
isIOUReportOwner?: boolean | null; | ||
isArchivedRoom?: boolean | null; |
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.
@srikarparsi is it fine to keep both (private_isArchived, isArchivedRoom) in OptionData?
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.
@srikarparsi Could you give your opinion?
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.
@srikarparsi Could you give your opinion?
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.
Sorry, didn't see this. Please correct me if I'm wrong but OptionData includes all the attributes from Report right (which already has private_isArchived)? So do we need to declare this twice?
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.
@srikarparsi Right, I updated
@situchan Please continue |
Hi @situchan, do you think you could take another look at this when you have a chance? |
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.
Looks good.
Hope we haven't missed anything!
I think we should update to use My thinking is that the entire point of the report/option data is to have all the fields so that we don't have to get them using the reportID. |
@srikarparsi Updated. Please review again. |
Yup, this looks great. @situchan do you think you could help with another review and we can merge? |
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.
Looks good except redundant optional chainings
Hi @cretadn22, can you please take a look at these comments when you get a chance and we can merge? |
Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
We recently introduced a new workflow in the GitHub action (created by @blazejkustra in #49165), which has caused a failure in the GitHub action for my PR. This failure existed before and my PR makes changes to these files, causing the GitHub action to run again. Should I address this issue in my PR, or will @blazejkustra handle it elsewhere? |
Check this message on slack:
|
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.
Thanks for the changes @cretadn22 and @situchan!
@srikarparsi looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
✋ 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/srikarparsi in version: 9.0.37-0 🚀
|
🚀 Deployed to production by https://github.com/grgia in version: 9.0.38-4 🚀
|
Details
Fixed Issues
$ #45881
PROPOSAL: #45881 (comment)
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
Screen.Recording.2024-08-11.at.16.21.55.mov
Android: mWeb Chrome
Screen.Recording.2024-08-11.at.16.06.46.mov
iOS: Native
Screen.Recording.2024-08-11.at.16.08.57.mov
iOS: mWeb Safari
Screen.Recording.2024-08-11.at.16.05.00.mov
MacOS: Chrome / Safari
Screen43.mp4
MacOS: Desktop
Screen44.mov