[No QA]Removing ONYXKEYS.COLLECTION.REPORT_VIOLATIONS in ReportUtils#80104
[No QA]Removing ONYXKEYS.COLLECTION.REPORT_VIOLATIONS in ReportUtils#80104tgolen merged 32 commits intoExpensify:mainfrom
Conversation
|
// TODO: Update tests for createTransactionPreviewConditionals |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@codex review, please ignore the unit test for now |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5c6cd03e31
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7feea3dddc
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0f2003efc3
ℹ️ 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".
src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx
Outdated
Show resolved
Hide resolved
|
@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] |
src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx
Outdated
Show resolved
Hide resolved
|
@hungvu193 Ahh I see. So are we good to clean it up by removing them? App/src/libs/actions/IOU/index.ts Lines 3077 to 3104 in db3eec1 |
|
becasue |
|
@trjExpensify Since there's no BZ assigned to this PR, pinging you to confirm that track expense can now only be created in self DM. |
yeah, but I haven't had a chance to investigate why they added it in the first place 😄 . To be safe, I suggest moving forward with the current PR (since it's been a while) |
|
@hungvu193 As I recall, we previously allowed track expense in the workspace and now we only allow track expense in the self DM. But I'm not sure, let's wait for @trjExpensify to confirm. |
|
Sorry, I'm not sure I'm following the question. What do you mean by "allow track expense in the workspace"? 😕 |
|
I mean that track expense in the workspace directly |
|
@hungvu193 The report violation was introduced in #46425. However, it looks like when the report field is missing, we now handle it through the getFieldViolation function and no longer rely on the report violation. So I think it should be safe to remove the report violation entirely |
Yeah. Do you want to remove it here or in a follow up PR? |
|
Let's do it in a follow up |
|
Cool. Let's push this PR moving forward |
|
@hungvu193 All good, please revert Mobile-Expensify folder and resolve conflict |
Reviewer Checklist
|
|
@hungvu193 The test step looks incorrect, I think we can mark this PR as No QA |
|
Yep. That makes sense |
|
@MelvinBot please help me revert the change from MobileExpensify and merge main |
Co-authored-by: Hans <hungvu193@users.noreply.github.com>
Co-authored-by: Hans <hungvu193@users.noreply.github.com>
|
Done! I've:
Both changes have been pushed to the branch. |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #66423 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
cc @tgolen |
|
🚀 Deployed to staging by https://github.com/tgolen in version: 9.3.34-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.34-2 🚀
|
Explanation of Change
This PR removes the usage of
Onyx.connectforONYXKEYS.COLLECTION.REPORT_VIOLATIONSkey insideReportUtils.Fixed Issues
$ #66423
PROPOSAL: N/A
Tests
Offline tests
QA Steps
N/A
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
Screen.Recording.2026-01-23.at.12.42.19.mov
iOS: mWeb Safari
Screen.Recording.2026-01-23.at.12.39.50.mov
MacOS: Chrome / Safari
Screen.Recording.2026-01-23.at.12.35.43.mov