-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[InternalQA] Add drop zone to the reports page #61916
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
base: main
Are you sure you want to change the base?
[InternalQA] Add drop zone to the reports page #61916
Conversation
@getusha can you review it today please? |
Yes, i am on it. |
@getusha yep, still working on it |
|
@getusha done! you can continue - I've updated the test steps. Can you also check this: #61523 (comment) ? |
@@ -808,8 +808,15 @@ Onyx.connect({ | |||
* It is a helper function used only in this file. | |||
*/ | |||
function dismissModalAndOpenReportInInboxTab(reportID?: string) { | |||
if (isSearchTopmostFullScreenRoute() || !reportID) { | |||
const isSearchPageTopmostFullScreenRoute = isSearchTopmostFullScreenRoute(); | |||
if (isSearchPageTopmostFullScreenRoute || !reportID) { |
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 think we should prevent this navigation on mobile. it would also affect the global create flow on search page, i wonder if we want that change.
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.
For the Global Create - I think having two behaviors for Global Create and Create Expense after drop would be strange, especially since this Create Expense flow should work like it was opened from the Global Create (like it was mentioned in the docs) - but could you please LMK what do you think about it? @lakchote @dannymcclain @shawnborton @dubielzyk-expensify
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.
For the Global Create - I think having two behaviors for Global Create and Create Expense after drop would be strange, especially since this Create Expense flow should work like it was opened from the Global Create
I do agree that we should have a consistent behavior. Let's see what everyone thinks!
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.
@getusha for the mobile - looks like it doesn't cause any problem
Screen.Recording.2025-05-14.at.15.56.52.mp4
the only thing I've noticed that the query phrase looks strange when changing a tab (but it's from changing the tab)
Screen.Recording.2025-05-14.at.15.45.01.mp4
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.
the only thing I've noticed that the query phrase looks strange when changing a tab (but it's from changing the tab)
This can always be addressed in a follow-up PR as it's not related to this PR.
cc @luacmartins is this format of the search query expected or not?
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.
No, it's not. I think we have a bug reported for it somewhere. I can't find the link though 🤔
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 here it is #61940
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-05-14.at.10.13.03.at.night.movAndroid: mWeb ChromeScreen.Recording.2025-05-14.at.10.17.42.at.night.moviOS: HybridAppScreen.Recording.2025-05-14.at.10.18.59.at.night.moviOS: mWeb SafariScreen.Recording.2025-05-14.at.10.21.46.at.night.movMacOS: Chrome / SafariScreen.Recording.2025-05-14.at.3.37.12.in.the.afternoon.movMacOS: DesktopScreen.Recording.2025-05-14.at.3.46.17.in.the.afternoon.mov |
setIsLoadingReceipt(true); | ||
} | ||
resizeImageIfNeeded(originalFile).then((resizedFile) => { | ||
// setIsLoadingReceipt(false); |
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.
this intentional?
Confirmed #61523 (comment) is fixed Screen.Recording.2025-05-14.at.10.25.02.at.night.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.
LGTM, thanks!
Explanation of Change
Fixed Issues
$ #59440
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Screen.Recording.2025-05-13.at.19.35.29.mp4
Screen.Recording.2025-05-13.at.19.35.05.mp4
MacOS: Desktop
Screen.Recording.2025-05-13.at.19.23.24.mp4
Screen.Recording.2025-05-13.at.19.19.48.mp4