Part 2 - Thread personalDetailsList param through isOptimisticPersonalDetail + isTestTransactionReport chains#87825
Conversation
…sableDetailPage, isTestTransactionReport, and buildOptimisticReportPreview Signed-off-by: krishna2323 <[email protected]>
personalDetailsList param through isOptimisticPersonalDetail + isTestTransactionReport chains
|
@codex review |
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.
|
|
Codex Review: Didn't find any major issues. Chef's kiss. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
Signed-off-by: krishna2323 <[email protected]>
…portPreview and standardize TODO comments Signed-off-by: krishna2323 <[email protected]>
|
@DylanDylann 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] |
|
@DylanDylann 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] |
|
No new product considerations - removing my assignment and unsubscribing. |
b61063d to
a1a7b72
Compare
|
|
Signed-off-by: krishna2323 <[email protected]>
39ba12c to
c49a0a7
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
|
@DylanDylann friendly bump |
…entry and use selector at call sites Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
This comment was marked as duplicate.
This comment was marked as duplicate.
|
To use Codex here, create a Codex account and connect to github. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
…rDetailsRenderer Signed-off-by: krishna2323 <[email protected]>
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
…an in UserDetailsRenderer Signed-off-by: krishna2323 <[email protected]>
|
@DylanDylann all comments addressed |
| const styles = useThemeStyles(); | ||
| const accountID = tnode.attributes.accountid ? parseInt(tnode.attributes.accountid, 10) : undefined; | ||
| const accountID = tnode.attributes.accountid ? parseInt(tnode.attributes.accountid, 10) : CONST.DEFAULT_NUMBER_ID; | ||
| const [isOptimistic] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST, {selector: (list) => isOptimisticPersonalDetail(accountID, list?.[accountID])}); |
There was a problem hiding this comment.
Please write a selector function into the selector folder. The isOptimisticPersonalDetail function should be removed, I think personalDetail?.isOptimisticPersonalDetail is enough
| } | ||
|
|
||
| const shouldDisableDetailPage = shouldDisableDetailPageReportUtils(report); | ||
| const shouldDisableDetailPage = shouldDisableDetailPageReportUtils(report, personalDetailsList); |
There was a problem hiding this comment.
I think we should optimize to avoid passing a large parameter. Actually, we only use one field of one personal detail
…tead of full list Signed-off-by: krishna2323 <[email protected]>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8c1b9fa741
ℹ️ 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".
…oolean Signed-off-by: krishna2323 <[email protected]>
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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
$ #66413
PROPOSAL:
Tests
Tests
isOptimisticPersonalDetail/shouldDisableDetailPage:isTestTransactionReport/buildOptimisticReportPreview:General:
Offline tests
QA Steps
Same as Tests
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Monosnap.screencast.2026-04-14.19-35-36.mp4
Monosnap.screencast.2026-04-14.19-42-15.mp4