-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Draft report not showing in the draft status filter #55544
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
Draft report not showing in the draft status filter #55544
Conversation
All contributors have signed the CLA ✍️ ✅ |
@hungvu193 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@ishakakkad can you please follow these steps for the CLA? |
@hungvu193 let's prioritize reviewing this PR since it's a big issue affecting multiple users |
I have read the CLA Document and I hereby sign the CLA |
@luacmartins I have fixed prettier issue, can you please approve workflows again? |
done |
@luacmartins sorry can you approve one more time, eslint issues fixed. |
Sure. I'll review it today |
@@ -45,7 +45,10 @@ function SearchPage({route}: SearchPageProps) { | |||
<> | |||
<SearchPageHeader queryJSON={queryJSON} /> | |||
<SearchStatusBar queryJSON={queryJSON} /> | |||
<Search queryJSON={queryJSON} /> | |||
<Search | |||
key={queryJSON.hash} |
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.
To be honest, I'd never have used key
if it wasn't an item inside a list. I'm not sure if this is the most efficient way to handle such cases. What's the issue with using an useEffect
to handle this issue?
(Updated: I've just found the reconciliation article from react team and I think that's fine to use key here).
Also, this is the component for large screen only, we're using separate component for narrow layout and I believe we should fix the issue on narrow layout as well. Given that both narrow layout and large screen layout are using the Search
component. I think we should fix this issue inside Search
component.
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.
Checkout this comment section for more info:
App/src/pages/Search/SearchPage.tsx
Lines 26 to 30 in 73f2714
// On small screens this page is not displayed, the configuration is in the file: src/libs/Navigation/AppNavigator/createResponsiveStackNavigator/index.tsx | |
// To avoid calling hooks in the Search component when this page isn't visible, we return null here. | |
if (shouldUseNarrowLayout) { | |
return 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.
Thank you @hungvu193, let me check this.
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.
@hungvu193 I have updated code for mobile screen and added video evidence as well for Small Screen. Can you please review again? Thanks
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. I'll check it
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.
@ishakakkad Please update your screenshots to video, I don't think screenshots are enough to prove that your solution fixed the issue.
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.
Ok, I will add videos in sometime.
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 added videos of all the platform except Android, I am facing issue in Android build. Will add android build as soon as I fixed it.
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.
Added video for Android as well.
895344b
to
c2dd25b
Compare
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-01-23.at.14.54.42.movAndroid: mWeb ChromemChrome.moviOS: NativeiOS: mWeb SafarimSafari.movMacOS: Chrome / SafariChrome.movMacOS: DesktopDesktop.mov |
Cool. All good, there's android native left that I'm having issue with running the project, I'll try again after couple of hours. |
Thanks for pushing this through! Let's try to get it merged today! |
@luacmartins can you please approve the build? I have merged the latest changes into branch which should fix the eslint issues. |
Approved the PR. Still stuck to make Android build successfully, but I'll update it ASAP. |
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 and tests well
✋ 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/luacmartins in version: 9.0.89-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.89-8 🚀
|
Explanation of Change
Fixed Issues
$#55235
PROPOSAL: #55235 (comment)
Tests
Same as QA
Offline tests
NA
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.mp4
Android: mWeb Chrome
Android.Web.mov
iOS: Native
IOS.mov
iOS: mWeb Safari
IOS.Web.mov
MacOS: Chrome / Safari
Web.mov
Web Small Screen.
Web.Mobile.mov
MacOS: Desktop
Desktop.mov