Skip to content

[Split #94595] Batch E - Remove useOnyx deps from MR views and confirmation #95578

Description

@mountiny

Sub-issue of #94595.
Source plan: fabioh8010 comment.

Goal

Remove the deprecated 3rd dependencies argument from Money Request views, confirmation, and expense flows.

Scope (8 files)

  • ReportActionItem/MoneyRequestView (RESTRUCTURE)
  • ReportActionItem/MoneyRequestReceiptView
  • MoneyRequestConfirmationList/sections/ReportField
  • MoneyRequestConfirmationList/sections/InvoiceSenderField (RESTRUCTURE)
  • pages/AddExistingExpense
  • pages/iou/SplitExpenseEditPage
  • pages/RejectExpenseReportPage
  • KYCWall/BaseKYCWall (USECALLBACK — React Compiler bailout)

Change types

RESTRUCTURE (MoneyRequestView, InvoiceSenderField); USECALLBACK (BaseKYCWall).

Risk

Highest-touch UI batch.

Dependencies

Blocked by PR 1 (ESLint guard) merged.

Tests / QA

Open MoneyRequestView (edit fields), receipt view, split-expense edit, reject-expense page, invoice sender field, report field selector; verify amounts/participants/policies. Confirm BaseKYCWall stays compiler-bailout.

Acceptance criteria

  1. npm run fmt on changed files
  2. npm run lint-changed — seatbelt count for rulesdir/no-useonyx-dependencies-arg must drop (never increase)
  3. npm run typecheck stays green
  4. npm run react-compiler-compliance-check check <files> — USECALLBACK/bailout files must not gain new failures vs main
  5. Relevant npm run test for touched areas
  6. Manual smoke test per batch QA steps — no stale data, infinite re-renders, or JS console errors
Issue OwnerCurrent Issue Owner: @hoangzinh

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
SUBISSUE

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions