-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffMonthlyKSv2KSv2ReviewingHas a PR in reviewHas a PR in review
Description
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
Reactions are currently unavailable
Metadata
Metadata
Labels
InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffMonthlyKSv2KSv2ReviewingHas a PR in reviewHas a PR in review