Skip to content

Revert "[Perf] Scope REPORT_ACTIONS subscription to per-row level in LHNOptionsList "#86651

Merged
srikarparsi merged 1 commit intomainfrom
revert-84262-perf/scope-report-actions-low-lvl
Mar 30, 2026
Merged

Revert "[Perf] Scope REPORT_ACTIONS subscription to per-row level in LHNOptionsList "#86651
srikarparsi merged 1 commit intomainfrom
revert-84262-perf/scope-report-actions-low-lvl

Conversation

@cristipaval
Copy link
Copy Markdown
Contributor

@cristipaval cristipaval commented Mar 30, 2026

Reverts #84262 because even if it reduces the LHN rerenders when the report action collection changes, it might introduce performance issues when scrolling the LHN. See this for more details.

@cristipaval cristipaval self-assigned this Mar 30, 2026
@cristipaval cristipaval requested review from a team as code owners March 30, 2026 13:47
@melvin-bot melvin-bot bot requested review from srikarparsi and trjExpensify and removed request for a team March 30, 2026 13:47
@melvin-bot
Copy link
Copy Markdown

melvin-bot bot commented Mar 30, 2026

@srikarparsi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ea46233abb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +190 to +193
reportActions,
visibleReportActionsData,
itemOneTransactionThreadReport?.reportID,
);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use derived thread ID when resolving the last visible action

Passing itemOneTransactionThreadReport?.reportID drops the transaction-thread context whenever the child report object is not yet hydrated in reports, even though reportAttributes already contains oneTransactionThreadReportID. In that state, getLastVisibleActionIncludingTransactionThread() ignores thread actions and can show stale/missing LHN preview text (and related metadata) until hydration completes. Use the derived thread ID directly instead of reading it from the optional report object.

Useful? React with 👍 / 👎.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.

Files with missing lines Coverage Δ
src/components/LHNOptionsList/OptionRowLHNData.tsx 88.88% <100.00%> (+2.14%) ⬆️
src/components/LHNOptionsList/LHNOptionsList.tsx 82.45% <72.72%> (-2.97%) ⬇️
... and 15 files with indirect coverage changes

@trjExpensify
Copy link
Copy Markdown
Contributor

PR doesn’t need product input as a perf PR. Unassigning and unsubscribing myself.

@trjExpensify trjExpensify removed their request for review March 30, 2026 20:34
@srikarparsi srikarparsi merged commit 6325d41 into main Mar 30, 2026
38 of 42 checks passed
@srikarparsi srikarparsi deleted the revert-84262-perf/scope-report-actions-low-lvl branch March 30, 2026 22:22
@melvin-bot
Copy link
Copy Markdown

melvin-bot bot commented Mar 30, 2026

@srikarparsi looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@melvin-bot melvin-bot bot added the Emergency label Mar 30, 2026
@srikarparsi
Copy link
Copy Markdown
Contributor

Straight revert

@github-actions
Copy link
Copy Markdown
Contributor

🚧 @srikarparsi has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify
Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants