Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
…s-engine-setrule-reapply Reapply SetRule and DeleteRule commands
Add NetSuite OAuth migration nudges
fix Copilot - Not here page when click Create expense in delegate mode
…8-remove-getReportTransactions-p9 Remove getReportTransactions callers' reliance on the deprecated default in submitReport (Part 9)
…licker-recyclingkey Key native attachment thumbnails on the attachment ID so they stay on screen after send
…me tests Co-authored-by: Krishna <Krishna2323@users.noreply.github.com>
…ibeRuleAgentFallback [Payment due @Krishna2323] Describe a rule from New rule and fall back to an agent rule
…-deprecatedAllTransactions-in-hasExpenses # Conflicts: # src/components/ReportActionItem/MoneyReportView.tsx
Co-authored-by: huult <huult@users.noreply.github.com>
…rkspace picker Co-authored-by: huult <huult@users.noreply.github.com>
… room workspace picker" This reverts commit 748f9b7.
…rts too Co-authored-by: cretadn22 <cretadn22@users.noreply.github.com>
…ectEducationalModals Co-authored-by: daledah <daledah@users.noreply.github.com>
…nModalBatch1 Co-authored-by: Yauheni Horbach <ZhenjaHorbach@users.noreply.github.com> # Conflicts: # src/pages/workspace/WorkspaceMembersPage.tsx
…sionModalBatch1 Migrate batch 1 one-button alerts from DecisionModal to useDecisionModal
…mTagList Add Append custom tag list for accounting-connected workspaces on the indirectTagUploads beta
…adFileName Use the original file name when downloading chat videos
…nlyToExpensify [Payment due @situchan] Updates to authtokens in url
…port-name-skeleton-offline Fix - Android-Expense-Report name shows 'Chat Report' briefly on expense opened offline via growl
…ckerTestCrash [No QA] Mock useLoadPolicyCategories in CategoryPickerTest to fix failing test
…tReplaceDuringManualExpenseScan Allow replacing a manual expense receipt while the backend scans it
…/fix-resize-sticky-filter-bar fix: "Find Member" input and "Filters" button are moved while resizing members table
…sers [Payment due @nkdengineer] Set user-level office arrangements
…eExpenseReportViewToggle [CP Staging] Revert "Reapply "Add a More menu option to switch single-expense reports between expense view and table view""
…r-row-onyx-reads [No QA] Update list-row Onyx rules: PERF-3, PERF-11, new PERF-21 and PERF-22
…x-tab-span-source-tab [No QA] perf: record source tab and preload wait on the Inbox tab span
…/numeric-input-layout-tests [No QA] add comprehensive layout and responsiveness tests for NumericInput
cspell rejected "recognise" and failed the spellcheck gate.
The record was added to App.ts's KEYS_TO_PRESERVE, which only guards the reconnect and full-reset paths. User-initiated sign-out goes through signOutAndRedirectToSignIn -> redirectToSignIn -> clearStorageAndRedirect, which clears with KEYS_TO_PRESERVE_ON_SIGN_OUT instead. The record was therefore wiped on every sign-out and the prompt came back on the next sign-in, which is the loop this PR is meant to close. The regression test passed anyway because it cleared Onyx with a hand-written [APP_REVIEW_LAST_PROMPT] list, so it asserted the gate while assuming the thing under test. It now clears with the real KEYS_TO_PRESERVE_ON_SIGN_OUT and fails if the key is dropped from it.
…-prompt-loop Stop the app review prompt from reappearing after the user answers it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
This targets the Onyx store bump in Expensify#98956.
FlashList re-runs
renderTransactionListItemfor every transaction row on almost any list render, and the row component isn't memoized. So every row re-rendered on a write to one transaction, a new comment on the report, or an unrelated personal details write, even when that row's data didn't change. The list also handed every row a fresh empty cards object, press and toggle handlers that changed with click-time data, and a new columns array.The row now takes a transaction ID, reads its transaction and violations by member key, gets its card from the existing card list context, and passes explicit props to its body, so React Compiler reuses the body element when nothing for that row changed. The list no longer computes violations; the visibility filter moved to
getVisibleReportRowViolations. Row props are stable: a shared empty cards object, press and toggle handlers called through refs, and the columns array kept while the visible columns are the same.With 10 transactions, the heavy row component re-renders 1 time instead of 10 for a write to one transaction or a violation on one transaction, and 0 times instead of 10 for a new comment or an unrelated personal details write. Timed with reassure, the violation case goes from 221.0 ms to 172.4 ms. The other cases are 6 to 9% faster, within noise at this row count. Writes to the report total, the policy, its categories and the card list still re-render every row, because all rows receive the same changed object.
The new perf test overrides the global Reanimated mock's
useAnimatedStyleto return one object per component. The global mock returns a new object on every render, while real Reanimated returns a stable handle, so without the override no row can skip a render in tests.Fixed Issues
$ https://github.com/callstack-internal/expensify-issues/issues/3039
PROPOSAL:
Tests
Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari