Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.54k stars 2.89k forks source link

[HOLD for payment 2024-10-07][Search v2.3] - Dropdown title does not follow search name, "type:expense" is shown in the list #49208

Closed IuliiaHerets closed 1 week ago

IuliiaHerets commented 1 month ago

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.35-0 Reproducible in staging?: Y Reproducible in production?: N/A - new feature, doesn't exist in prod Issue was found when executing this PR: https://github.com/Expensify/App/pull/48566 Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  1. Go to staging.new.expensify.com
  2. Go to Search.
  3. Tap on the dropdown.
  4. Open any saved search.
  5. Tap on the dropdown.

Expected Result:

In Step 4, the dropdown title should follow the name of the search. In Step 5, when viewing a saved search, there should not be "type:expense" tab in the dropdown list.

Actual Result:

In Step 4, the dropdown title shows the name "type:expense". In Step 5, when viewing a saved search, there is a "type:expense" tab in the dropdown list.

Workaround:

Unknown

Platforms:

Screenshots/Videos

https://github.com/user-attachments/assets/0f03b4d7-28d5-4ea0-8744-a90cb52bd675

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @JmillsExpensify
melvin-bot[bot] commented 1 month ago

Triggered auto assignment to @JmillsExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

melvin-bot[bot] commented 1 month ago

Triggered auto assignment to @danieldoglas (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

github-actions[bot] commented 1 month ago

:wave: 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.
dominictb commented 1 month ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

What is the root cause of that problem?

What changes do you think we should make in order to solve the problem?


                    Navigation.navigate(ROUTES.SEARCH_CENTRAL_PANE.getRoute({query: item?.query ?? '', name: item.name}));

https://github.com/Expensify/App/blob/0c618acc8b5a0b77eb27dfa049a18e3135c51c52/src/ROUTES.ts#L38


        getRoute: ({query, name}: {query: SearchQueryString; name: string}) => `search?q=${encodeURIComponent(query)}${name ? `&name=${name}` : ''}` as const,

https://github.com/Expensify/App/blob/0c618acc8b5a0b77eb27dfa049a18e3135c51c52/src/pages/Search/SearchTypeMenu.tsx#L186

        const title = searchName ?? (isCannedQuery ? undefined : SearchUtils.getSearchHeaderTitle(queryJSON, personalDetails, cardList, reports, taxRates));

with the searchName comes from url.

What alternative solutions did you explore? (Optional)

luacmartins commented 1 month ago

This is known and will be addressed in a follow up.

lakchote commented 1 month ago

@dominictb are you available to implement the fix?

dominictb commented 1 month ago

I can work on it

lakchote commented 1 month ago

I can work on it

If you could raise the PR today that'd be great.

dominictb commented 1 month ago

@lakchote PR is ready.

brunovjk commented 1 month ago

👋 @lakchote I have reviewed the PR, can you please assign me here so I can complete the BugZero Checklist? Thank you.

brunovjk commented 1 month ago

Regression Test Proposal

Precondition: Small screen device. User has saved a few searches.

  1. Test case 1:

    • Go to Search.
    • Tap on the dropdown.
    • Open any saved search. Verify the dropdown title should follow the name of the search.
  2. Test case 2:

    • Go to Search.
    • Tap on the dropdown.
    • Click three dots on any option > Rename > Enter a new name > Save.
    • Verify the dropdown title should follow the new name.
  3. Test case 3:

    • Go to Search.
    • Tap on the dropdown.
    • Verify we dont see the custom menu item, if we're viewing a saved search.

Do we agree 👍 or 👎?

dominictb commented 3 weeks ago

@luacmartins @lakchote We can proceed payment now.

luacmartins commented 2 weeks ago

@JmillsExpensify bump for payment

melvin-bot[bot] commented 2 weeks ago

@JmillsExpensify, @lakchote, @luacmartins, @brunovjk, @dominictb Whoops! This issue is 2 days overdue. Let's get this updated quick!

JmillsExpensify commented 2 weeks ago

Payment summary:

JmillsExpensify commented 2 weeks ago

Offer sent to @brunovjk. @dominictb can you remind me of your Upwork profile?

brunovjk commented 2 weeks ago

Accepted :D

dominictb commented 1 week ago

can you remind me of your Upwork profile?

@JmillsExpensify It's https://www.upwork.com/freelancers/~01f70bed1934fd35d5

melvin-bot[bot] commented 1 week ago

@JmillsExpensify, @lakchote, @luacmartins, @brunovjk, @dominictb Eep! 4 days overdue now. Issues have feelings too...

JmillsExpensify commented 1 week ago

Offer sent

dominictb commented 1 week ago

Offer accepted

JmillsExpensify commented 1 week ago

All contributors paid out!

melvin-bot[bot] commented 1 week ago

@JmillsExpensify @lakchote @luacmartins Be sure to fill out the Contact List!