Part 2 - Thread personalDetailsList param through isOptimisticPersonalDetail + isTestTransactionReport chains#87825
Conversation
…sableDetailPage, isTestTransactionReport, and buildOptimisticReportPreview Signed-off-by: krishna2323 <belivethatkg@gmail.com>
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 <belivethatkg@gmail.com>
…portPreview and standardize TODO comments Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@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 <belivethatkg@gmail.com>
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 <belivethatkg@gmail.com>
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". |
| 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 [personalDetail] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST, {selector: personalDetailsSelector(accountID)}); |
There was a problem hiding this comment.
Selecting isOptimisticPersonalDetail only should be sufficient here.
| * Helper method to check if the report is a test transaction report | ||
| */ | ||
| function isTestTransactionReport(report: OnyxEntry<Report>): boolean { | ||
| function isTestTransactionReport(report: OnyxEntry<Report>, personalDetailsList: OnyxEntry<PersonalDetailsList>): boolean { |
There was a problem hiding this comment.
Similar to isOptimisticPersonalDetail function I think we should not pass personalDetailsList
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