-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Align default IDs in ReportScreen file #55074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
neil-marcellini
merged 17 commits into
Expensify:main
from
callstack-internal:VickyStash/refactor/ReportScreen-align-default-ids
Jan 15, 2025
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
961f724
Remove ReportScreen from the ignored list
VickyStash 1f90425
Align default ids usages
VickyStash d09a20b
Update the test
VickyStash 880cb7e
Code improvements
VickyStash 0ca71c2
Fix lint errors
VickyStash a752937
Merge branch 'refs/heads/main' into VickyStash/refactor/ReportScreen-…
VickyStash be52463
Merge branch 'refs/heads/main' into VickyStash/refactor/ReportScreen-…
VickyStash a5ed2e0
Minor improvement
VickyStash bb1239e
Merge branch 'refs/heads/main' into VickyStash/refactor/ReportScreen-…
VickyStash d8c95eb
Fixes
VickyStash a09caa5
Lint fixes
VickyStash 590070f
Merge branch 'refs/heads/main' into VickyStash/refactor/ReportScreen-…
VickyStash ee611e6
Use getNonEmptyStringOnyxID instead of getNonEmptyStringReportID
VickyStash c6f17e4
Prettier fix
VickyStash e515c23
Minor improvement
VickyStash 9c66425
Merge branch 'refs/heads/main' into VickyStash/refactor/ReportScreen-…
VickyStash f56d380
Apply reviewer feedback
VickyStash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| type ClearReportNotifications = (reportID: string) => void; | ||
| type ClearReportNotifications = (reportID: string | undefined) => void; | ||
|
|
||
| export default ClearReportNotifications; |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| /** Make sure the id is not an empty string as it can break an onyx key */ | ||
| export default function getNonEmptyStringOnyxID(onyxID: string | undefined): string | undefined { | ||
| // The onyx ID is used inside the onyx key. If it's an empty string, onyx will return | ||
| // a collection instead of an individual item, which is not an expected behaviour. | ||
| return onyxID !== '' ? onyxID : undefined; | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.