-
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
Handle deleted reports for Quick Actions #41474
Conversation
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 code looks good although there are type check and lint failures to be fixed.
I have also left some review comments for consideration.
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariManual41474-web-safari-M.mp4Scan41474-web-safari-S.mp4Distance41474-web-safari-D.mp4Task41474-web-safari-T.mp4MacOS: DesktopDistance41474-desktop-D.mp4Task41474-desktop-T.mp4Android: NativeDistance41474-android-native-D.mp4Task41474-android-native-T.mp4Android: mWeb Chrome41474-mweb-chrome-M.mp4iOS: Native41474-ios-native-D.mp4iOS: mWeb Safari41474-mweb-safari-T.mp4 |
Hey @rojiphil, thanks for the review, but this isn't quite ready yet! When we are still working on a PR, we often mark it as [WIP] (Work in progress). I'll let you know when this is ready! |
OFF WIP @rojiphil |
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.
I have left some review comments for your consideration. But the code looks good and close to the finish line though.
@@ -703,7 +704,7 @@ function setAssigneeValue( | |||
|
|||
// If there is no share destination set, automatically set it to the assignee chat report | |||
// This allows for a much quicker process when creating a new task and is likely the desired share destination most times | |||
if (!shareToReportID) { | |||
if (!shareToReportID && !skipShareDestination) { |
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.
I may be missing something here but as shareToReportID
will be empty in our case, will this not work without the need for skipShareDestination
?
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.
Ah, not quite. If skipShareDestination
is set, we do NOT want to populate this, as it populates by default to the user's chat, which is not what we want in this flow
Comments addressed! Let's see if we can get this done today, @rojiphil! |
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 @Gonals. LGTM and tests well too.
I have added the test videos and completed the checklist.
@Gonals Sorry. I missed adding the header to the reviewer checklist because of which I think the PR checklist is failing. I have added it just now. Now, wondering how to make the checklist succeed |
All good! I can rerun the checks 😁 |
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!
✋ 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 production by https://github.com/marcaaron in version: 1.4.71-6 🚀
|
@@ -735,7 +736,7 @@ function clearOutTaskInfoAndNavigate(reportID?: string, chatReport?: OnyxEntry<O | |||
} | |||
if (accountID > 0) { | |||
const accountLogin = allPersonalDetails?.[accountID]?.login ?? ''; | |||
setAssigneeValue(accountLogin, accountID, reportID, chatReport); | |||
setAssigneeValue(accountLogin, accountID, reportID, chatReport, false, skipConfirmation); |
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.
We should had checked if accountID === currentUserAccountID
instead of directly passing false here, this caused #47680
Details
Fixed Issues
$ #41467
PROPOSAL:
Tests
Submit Expense
quick button (it may be lacking info, since we don't automatically load archived reports):Assign task
flow (in a workspace). Confirm the message displays like so:Offline tests
None
QA Steps
Same as tests
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
MacOS: Chrome / Safari
MacOS: Desktop