Skip to content

[$250] Search should default to the type matching the current page context #89989

@MelvinBot

Description

@MelvinBot

Problem

When a user initiates a keyword search from the Reports page, the search defaults to type:expense and switches to the Expenses view. This is unexpected — if you're on the Reports page, a keyword search should search within reports (type:expense-report), not expenses.

This is especially confusing when searching by report ID (e.g., R00AbC12deFG) from the Reports page. Instead of finding the matching report, it runs a keyword search for that string at the expense level. The user has to back out, return to Reports, and perform an explicit report ID search to find what they're looking for.

Expected Behavior

  • Searching from the Expenses page should default to type:expense
  • Searching from the Reports page should default to type:expense-report
  • The search context should match whichever page/tab the user is currently viewing

Additional Context

There's also a related UX suggestion to make the search input above the table more visually connected to the table itself (acting as a keyword filter for the current view), while keeping the global search router separate with more visual presence.

Slack thread: https://expensify.slack.com/archives/C03U7DCU4/p1778073400727669

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022052714447950444652
  • Upwork Job ID: 2052714447950444652
  • Last Price Increase: 2026-05-08
  • Automatic offers:
    • FitseTLT | Contributor | 111413267
Issue OwnerCurrent Issue Owner: @FitseTLT

Metadata

Metadata

Labels

ExternalAdded to denote the issue can be worked on by a contributorImprovementItem broken or needs improvement.ReviewingHas a PR in reviewWeeklyKSv2

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions