-
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
Preserve policyID when navigating to canned search queries #49694
Preserve policyID when navigating to canned search queries #49694
Conversation
@rushatgabhane 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] |
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
@rushatgabhane can you take a look? |
yea eta 30 mins |
Reviewer Checklist
Screenshots/VideosAndroid: NativesoonAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-09-27.at.14.54.26.moviOS: mWeb SafariScreen.Recording.2024-09-30.at.08.27.02.movMacOS: Chrome / SafariScreen.Recording.2024-09-27.at.14.55.14.movScreen.Recording.2024-09-30.at.08.24.21.movMacOS: Desktop |
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.
Hello @Kicu @luacmartins @JmillsExpensify
I think that we should preserve the workspace selection when selecting an item from saved search
too. I feel the original Problem solution applies here too. What do you think?
The filters used in saved search does not have workspace. There is a from
and to
filter tho.
Will users expect saved search to show results from all workspaces? Or they expect the applied filters to apply for the selected workspace only?
Screen.Recording.2024-09-27.at.14.48.20.mov
Fair point 👍 Sometimes we treat
But sometimes we also treat So technically (from code logic perspective) I think the behaviour is correct now - when you click on a Here is what this would mean:
Otherwise, we will be mixing the query from @luacmartins @JmillsExpensify please share your opinions |
i agree with you 👍 💯 okay so @JmillsExpensify @luacmartins need to decide what would be a clean UX for the product. It kind of boils down to if we want to add a new A (current): saved search is independent of workspace and it always shows results from all workspaces regardless of which workspace is selected from the switcher. B: Add a new filter for |
I think what @mateuuszzzzz is saying for A (current) is a bit different from @rushatgabhane's summary. Basically for option A (current), if you're on a specific policy in the workspace switcher when you save a search, that policy is also saved in the saved search and we always respect it. Otherwise, it's "all policies" and no specific policyID is saved. Right? If that's the case, I agree with that approach. |
Yea, that's my understanding as well. |
Okey, so I will move forward with following:
Shouldn't be too complex. |
Alright pushed a commit with the aforementioned functionality - it feels quite nice from a UX standpoint. Here's how this looks: rec-web-saved.mp4 |
Yes, that looks really great! |
Looks great! |
@luacmartins please take a look |
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 for working on this!
✋ 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.42-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.42-3 🚀
|
Details
type
andstatus
policyID
if it was chosen via Workspace Switcher and when navigating to a canned search thepolicyID
will not be resetFixed Issues
$ #49637
PROPOSAL:
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
rec-policyid-andr.mp4
Android: mWeb Chrome
iOS: Native
rec-policyid-ios.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
rec-policyid-web.mp4
MacOS: Desktop