Skip to content

Fix quick action route-selected expense tabs#90493

Draft
kaziiza wants to merge 1 commit into
Expensify:mainfrom
kaziiza:codex/fix-76229-quick-action-tabs
Draft

Fix quick action route-selected expense tabs#90493
kaziiza wants to merge 1 commit into
Expensify:mainfrom
kaziiza:codex/fix-76229-quick-action-tabs

Conversation

@kaziiza
Copy link
Copy Markdown

@kaziiza kaziiza commented May 13, 2026

Issue: #76229

Summary

  • Prefer the explicit route-selected tab over a persisted Onyx tab when initializing IOU and distance request start pages.
  • Rebuild stale IOU/distance drafts when the request type matches but the report ID changed.
  • Route distance odometer quick actions directly to the odometer tab.

Root Cause

Quick-action routes can include a nested request tab, such as scan receipt or odometer, but the Onyx-backed tab navigator initialized from persisted selected tab state first. If a stale draft had the same request type but belonged to a previous report, the reset hook returned early and the user could land on the wrong create flow after login.

Tests

  • npm test -- tests/unit/OnyxTabNavigatorTest.ts tests/unit/QuickActionNavigationTest.ts tests/actions/IOU/MoneyRequestTest.ts tests/ui/IOURequestStartPageTest.tsx --runInBand
  • npx eslint on the changed files
  • npm run typecheck
  • git diff --check on the changed files

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant