-
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
[$250] Search - Workspace switcher resets to Expensify after manually searching via search input #51416
Comments
Triggered auto assignment to @RachCHopkins ( |
@RachCHopkins FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #wave-control |
Edited by proposal-police: This proposal was edited at 2024-10-24 14:37:30 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Search - Workspace switcher resets to Expensify after manually searching via search input What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const onSubmit = () => {
if (!inputValue) {
return;
}
const inputQueryJSON = SearchQueryUtils.buildSearchQueryJSON(inputValue);
if (inputQueryJSON) {
const standardizedQuery = SearchQueryUtils.standardizeQueryJSON(inputQueryJSON, cardList, taxRates);
if (activeWorkspaceID) {
standardizedQuery.policyID = activeWorkspaceID;
}
const query = SearchQueryUtils.buildSearchQueryString(standardizedQuery);
SearchActions.clearAllFilters();
Navigation.navigate(ROUTES.SEARCH_CENTRAL_PANE.getRoute({query}));
} else {
Log.alert(`${CONST.ERROR.ENSURE_BUGBOT} user query failed to parse`, inputValue, false);
}
};
What alternative solutions did you explore? (Optional)Result |
Edited by proposal-police: This proposal was edited at 2024-10-24 14:57:34 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Search - Workspace switcher resets to Expensify after manually searching via search input What is the root cause of that problem?Here we build search query from What changes do you think we should make in order to solve the problem?I don't know if there might be other parameters in the URL that might also be missed like Update inputQueryJSON parameter to What alternative solutions did you explore? (Optional) |
Will triage tomorrow. |
Easy to Repro. I did not know the workspace switcher was a thing! |
Job added to Upwork: https://www.upwork.com/jobs/~021851453987704756817 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
@eVoloshchak, @RachCHopkins Eep! 4 days overdue now. Issues have feelings too... |
@eVoloshchak how do you feel about the proposals so far? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@Krishna2323's proposal looks good to me!
The same bug occurs with a simple search (without selecting a category), this does seem to resolve this issue for any search query 🎀👀🎀 C+ reviewed! |
Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@Krishna2323's proposal LGTM. |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR will be up today. |
@lakchote @eVoloshchak, I’m unsure what to do with the search router. Currently, it removes the active workspace when we search. Should we update it to maintain the workspace selection during a search, or is it expected behavior to remove the selection to show all results? Monosnap.screencast.2024-11-13.04-07-07.mp4 |
@Krishna2323 in your test you switch to another workspace, then you search for something and select a result corresponding to yet another workspace. In my opinion, we should switch to the workspace of the search's result selected in the search router. What's your opinion @luacmartins? |
I agree, in fact this feels like a regression. I swear that I seem to remember working on this, and the scenario shown in the video from @Krishna2323 used to work 🤔 I believe when submitting the search query that the user typed in, we should check if there is a workspace selected, and if yes then add |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.53-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The workspace switcher will not change after manually typing on the search field and hitting Enter
Actual Result:
The workspace switcher changes to Expensify after manually typing on the search field and hitting Enter
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6644138_1729758750803.20241024_162621.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @eVoloshchakThe text was updated successfully, but these errors were encountered: