-
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] [HOLD #43494][Search v1] Category field does not stay put when clicking on To title after enabling it #44198
Comments
Triggered auto assignment to @kevinksullivan ( |
Triggered auto assignment to @puneetlath ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@puneetlath 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 #vip-vsb |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - transaction search category column doesn't stay put when clicking on header to sort the search. What is the root cause of that problem?In here: Line 84 in 0176052
We set What changes do you think we should make in order to solve the problem?We could use useRef of Then set The code could be: const isAlreadyLoading = useRef(false);
const columnsToShowRef = useRef(null);
useEffect(() => {
if (currentSearchResults?.search?.isLoading) {
isAlreadyLoading.current = true;
}
if (!columnsToShowRef.current && currentSearchResults?.search?.isLoading === false && isAlreadyLoading.current) {
columnsToShowRef.current = {
...currentSearchResults.search.columnsToShow
};
}
}, [currentSearchResults?.search?.isLoading]);
.....
if (columnsToShowRef.current) {
searchResults.search.columnsToShow = columnsToShowRef.current;
} Alternative solution:We could pass columnsToShow from SearchPage to Search component. |
Job added to Upwork: https://www.upwork.com/jobs/~012db531b3b7860fba |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
I think we can demote this one, its quite an edge case and it does not block user |
I will review it in the morning. |
FWIW I think this issue will fix it - #43494 |
That ^ Pr is on prod. @m-natarajan reopen if you see an issue like this again. Thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.1-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
Action Performed:
Precondition:
To
title a few times.To
title a few times.Expected Result:
When Categories feature is enabled/disabled, Category title will not disappear/appear when clicking on To field.
Actual Result:
When Categories feature is enabled/disabled, Category title disappears/appears when clicking on To field.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6521359_1719047104786.search.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @parasharrajatThe text was updated successfully, but these errors were encountered: