Conversation
…mance-explorations
|
This is a draft, sorry |
|
@luacmartins 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] |
Code ReviewThis PR wraps the entire ReportScreen render tree in Suspense and Deferred to defer rendering via startTransition. While the performance intent is reasonable, there are several concerns: 1. Missing Suspense fallback - The Suspense wrapper has no fallback prop. The existing usage of Deferred in SearchInputSelectionWrapper provides a skeleton fallback. Without one here, users see a blank area while the deferred content resolves. For the primary inbox view this could cause a noticeable flash. 2. Overly broad deferral scope - The entire render tree is deferred including ScreenWrapper, FullPageNotFoundView, and DragAndDropProvider. Deferring error states means a not-found page will not appear until the transition completes. A more targeted deferral of only the heavy components (ReportActionsView, MoneyRequestReportActionsList) would be less risky. 3. Navigation interaction risk - ReportScreen uses useFocusEffect and useIsFocused. Deferring ScreenWrapper could cause timing issues with focus/blur events since layout effects fire asynchronously relative to navigation transitions. 4. PR completeness - No linked issue, no test steps, no QA steps, no performance benchmarks or before/after measurements. Commit history suggests this is exploratory work. This PR would benefit from concrete performance data, a fallback UI, and a narrower deferral scope. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dc6b38824b
ℹ️ 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".
Explanation of Change
Fixed Issues
$
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps./** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)Screenshots/Videos
<
