Skip to content

[Insights] [Release 9] Add a Spend Over Time saved search #80803

@puneetlath

Description

@puneetlath

Part of the Insights project

Doc section: https://docs.google.com/document/d/1L2gAchD5IrI545p_iVAMdh6DSnJJcusG90oO-5MH3x0/edit?tab=t.0#heading=h.ckd2zio21z1v

Feature Description

Add a Spend Over Time saved search to all Admin/Auditor/Approver accounts

  • Add SPEND_OVER_TIME search key - src/CONST/index.ts - Add SPEND_OVER_TIME: 'spendOverTime' to CONST.SEARCH.SEARCH_KEYS
  • Add translation - src/languages/en.ts (and all language files) - Add spendOverTime: 'Spend over time' translation
  • Add search definition - src/libs/SearchUIUtils.ts - Add SPEND_OVER_TIME definition in getSuggestedSearches() with query: type:expense group-by:month date:year-to-date sort-by:month sort-order:desc view:line
  • Add visibility logic - src/libs/SearchUIUtils.ts - Add visibility logic in getSuggestedSearchesVisibility() to show for Admin/Auditor/Approver roles (same as Top Spenders)
  • Add to menu sections - src/libs/SearchUIUtils.ts - Add to Insights menu section in createTypeMenuSections()

Manual Test Steps

Automated Tests

Metadata

Metadata

Labels

InternalRequires API changes or must be handled by Expensify staffMonthlyKSv2ReviewingHas a PR in review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions