-
Notifications
You must be signed in to change notification settings - Fork 0
[CORRUPTED] Synthetic Benchmark PR #68929 - Update Reports page tabs (Expenses, Reports, Chats) to work without optimistic transaction thread reports #38
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
base: base_pr_68929_20251204_8996
Are you sure you want to change the base?
Conversation
# Conflicts: # src/components/Search/index.tsx
# Conflicts: # src/components/Search/index.tsx # src/types/onyx/SearchResults.ts
# Conflicts: # tests/unit/Search/SearchUIUtilsTest.ts
# Conflicts: # src/ROUTES.ts # src/components/ReportActionItem/MoneyRequestAction.tsx # src/components/Search/index.tsx
# Conflicts: # src/components/SelectionList/Search/TransactionGroupListItem.tsx # src/components/SelectionList/types.ts
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
User description
Benchmark PR Expensify#68929
Type: Corrupted (contains bugs)
Original PR Title: Update Reports page tabs (Expenses, Reports, Chats) to work without optimistic transaction thread reports
Original PR Description:
Explanation of Change
Update Reports page tabs (Expenses, Reports, Chats) to work without optimistic transaction thread reports
Fixed Issues
$ Expensify#67890
PROPOSAL: N/A
Tests
Steps to repeat before every tests block:
noOptimisticTransactionThreadsbeta.Block transaction thread report creationtoggle (you can also turn it on in the troubleshoot modal CMD + D)Expenses tab:
ViewbuttonMove expenseto the empty report.Reports tab:
Viewbutton in the headerViewbutton in the headerViewbutton in the expense rowMove expenseto the empty report.Chats tab:
Regressions to check:
Expensify#67622
Offline tests
Same, as in the Tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same, as in the Tests
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))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.mp4
Android: mWeb Chrome
android-web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios_web.mp4
MacOS: Chrome / Safari
web-chats-tab.mp4
web-reports-tab-move.mp4
web-reports-tab.mp4
web-expenses-tab.mp4
MacOS: Desktop
desktop-report-chat-tabs.mp4
desktop-expenses-tab.mp4
Original PR URL: Expensify#68929
PR Type
Enhancement, Tests
Description
Add utility function to create and open transaction thread reports from search
Refactor transaction thread creation logic into reusable SearchUIUtils function
Add unit tests for createAndOpenSearchTransactionThread functionality
Handle transaction thread report creation when opening transactions without threads
Update SearchMoneyRequestReportPage to auto-create transaction threads on load
File Walkthrough
types.ts
Add isOneTransactionReport flag to transaction group typesrc/components/SelectionList/types.ts
isOneTransactionReportboolean property toTransactionGroupListItemType
SearchUIUtils.ts
Add createAndOpenSearchTransactionThread utility functionsrc/libs/SearchUIUtils.ts
actions
transaction thread creation and navigation
new thread report ID
index.tsx
Refactor transaction thread creation in Search componentsrc/components/Search/index.tsx
callback
TransactionGroupListItem.tsx
Add transaction thread creation to TransactionGroupListItemsrc/components/SelectionList/Search/TransactionGroupListItem.tsx
thread
SearchMoneyRequestReportPage.tsx
Auto-create transaction threads on money request report loadsrc/pages/Search/SearchMoneyRequestReportPage.tsx
useTransactionsAndViolationsForReport hooks
getFilteredReportActionsForReportView, getIOUActionForTransactionID,
getOneTransactionThreadReportID utilities
SearchUIUtilsTest.ts
Add unit tests for transaction thread creationtests/unit/Search/SearchUIUtilsTest.ts