-
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
fix: dropdown title does not follow search name #49446
Conversation
When renaming, the field is always empty, is this a bug already reported? Thanks. Screen.Recording.2024-09-19.at.09.23.39.mov |
This is not a bug. This is what was shown in the design template, however there's discussion around it to include it. There's an issue for that. |
Thanks for clarifying, I will continue with the checklist. |
Reviewer Checklist
Screenshots/VideosAndroid: Native49446_android_native.movAndroid: mWeb Chrome49446_android_web.moviOS: Native49446_ios_native.moviOS: mWeb Safari49446_ios_web.movMacOS: Chrome / Safari49446_web_browser.movMacOS: Desktop49446_web_desktop.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.
Looking good to me :D
This condition is falsy in your iOS test @brunovjk |
Hi @lakchote, thanks for your feedback. You are right. I first assumed the focus of this PR was maintaining consistency of saved search names. But indeed, I think we can update Lines 748 to 758 in 33debc8
|
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.
Agree with that. Also, shouldn't the saved searches have a bookmark icon? |
Yes, that was reported in another issue |
@dominictb can you modify your PR to address the recent comments? |
@dominictb bump on the comments above |
@dominictb we should remove the canned query entry from the dropdown |
@luacmartins In case the filter we are viewing is not saved, should we remove it from dropdown menu? |
No, we should only remove it when viewing a saved search |
@brunovjk I updated PR to match this comment: Screen.Recording.2024-09-23.at.12.32.28.mov |
Thanks for the changes @dominictb, looking good so far: Screen.Recording.2024-09-23.at.11.37.24.movDid you have a chance to look at these: comment 1 comment 2? |
cc @dominictb |
@brunovjk Sorry, but I noticed that in all your iOS videos in the checklist, it works fine.
@brunovjk Can you share your solution? IMO, I think with the search that does not have a custom name, using "type:...status" format is fine. |
cc @brunovjk in case you've missed this |
This comment was marked as outdated.
This comment was marked as outdated.
I believe what @lakchote meant here @dominictb is that we are failing in the step above this PR itself. What I tested here was "Verify the dropdown title should follow the name of the search" and "remove the canned query entry from the dropdown". However, there is still one missing point in the Expected Result of the issue:
I believe the expected name when we create a "search" is something like the videos of this PR, without |
I think these two should match and IMO it seems valuable to leave the type and status there, especially for saved searches since that could be saved for any type/status |
@lakchote Can you give me more detail, on what is failing there since you mentioned "This condition is falsy in your iOS test @brunovjk" |
There seems to be confusion on what was expected. The problem I was referring (which @luacmartins talked about too here) was solved already by @dominictb. When viewing a saved search, we should not see in the dropdown the original query of the saved search, we should hide it. We should not try to hide specifically cc @brunovjk |
I see now, yes I did the confusion, sorry, thanks for clarifying @lakchote, I will retest and update Screenshots/Videos now. |
LGTM, all yours @luacmartins. |
✋ 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.41-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.41-10 🚀
|
@@ -28,6 +28,7 @@ function SearchPageBottomTab() { | |||
const [selectionMode] = useOnyx(ONYXKEYS.MOBILE_SELECTION_MODE); | |||
const searchParams = activeCentralPaneRoute?.params as AuthScreensParamList[typeof SCREENS.SEARCH.CENTRAL_PANE]; | |||
const parsedQuery = SearchUtils.buildSearchQueryJSON(searchParams?.q); | |||
const searchName = searchParams?.name; |
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 change misses covering the case where the search name equals the query name which introduce this issue so we should get searchName based on search query
Details
Fixed Issues
$ #49208
PROPOSAL: #49208 (comment)
Tests
1. Test case 1: Small screen device:
Precondition: User has saved a few searches.
2. Test case 2: Small screen device:
Precondition: User has saved a few searches.
3. Test case 3: Large screen device:
Precondition: User has saved a few searches.
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-09-19.at.16.17.26.mov
Android: mWeb Chrome
Screen.Recording.2024-09-19.at.16.19.06.mov
iOS: Native
Screen.Recording.2024-09-19.at.16.20.12.mov
iOS: mWeb Safari
Screen.Recording.2024-09-19.at.16.14.09.mov
MacOS: Chrome / Safari
Screen.Recording.2024-09-19.at.16.04.28.mov
MacOS: Desktop
Screen.Recording.2024-09-19.at.16.21.02.mov