Skip to content

[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

Description

@IuliiaHerets

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: #48566
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • User has saved a few searches.
  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:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6603107_1726282285065.ScreenRecording_09-14-2024_10-48-24_1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @JmillsExpensify

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 14, 2024
  2. melvin-bot commented on Sep 14, 2024

    @melvin-bot

    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.

  3. melvin-bot commented on Sep 14, 2024

    @melvin-bot

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

  4. github-actions commented on Sep 14, 2024

    @github-actions
    Contributor

    👋 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.
  5. dominictb commented on Sep 15, 2024

    @dominictb
    Contributor

    Proposal

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

    • 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.

    What is the root cause of that problem?

    • If the saved search have custom name, we don't display it
      const title = isCannedQuery ? undefined : SearchUtils.getSearchHeaderTitle(queryJSON, personalDetails, cardList, reports, taxRates);

      but we display its query json instead.

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

    • When user click on any saved search, we need to add its custom name to the url, such as &name=.... Based on it, we can display the dropdown title.

    • First, we need to update:

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

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

    getRoute: ({query}: {query: SearchQueryString}) => `search?q=${encodeURIComponent(query)}` as const,

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

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

            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)

  6. luacmartins commented on Sep 15, 2024

    @luacmartins
    Contributor

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

  7. 32 remaining items

  8. JmillsExpensify commented on Oct 23, 2024

    @JmillsExpensify
    Contributor

    Payment summary:

  9. JmillsExpensify commented on Oct 23, 2024

    @JmillsExpensify
    Contributor

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

  10. brunovjk commented on Oct 23, 2024

    @brunovjk
    Contributor

    Accepted :D

  11. dominictb commented on Oct 28, 2024

    @dominictb
    Contributor

    can you remind me of your Upwork profile?

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

  12. melvin-bot commented on Oct 29, 2024

    @melvin-bot

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

  13. JmillsExpensify commented on Oct 30, 2024

    @JmillsExpensify
    Contributor

    Offer sent

  14. dominictb commented on Oct 30, 2024

    @dominictb
    Contributor

    Offer accepted

  15. JmillsExpensify commented on Oct 30, 2024

    @JmillsExpensify
    Contributor

    All contributors paid out!

  16. melvin-bot commented on Oct 30, 2024

    @melvin-bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions