-
Notifications
You must be signed in to change notification settings - Fork 0
[CLEAN] Synthetic Benchmark PR #70349 - Add delete report option #35
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_70349_20251204_1329
Are you sure you want to change the base?
[CLEAN] Synthetic Benchmark PR #70349 - Add delete report option #35
Conversation
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#70349
Type: Clean (correct implementation)
Original PR Title: Add delete report option
Original PR Description:
Explanation of Change
Fixed Issues
$ Expensify#69546
PROPOSAL: Expensify#69546 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
NOTE for QA:
If the report preview only has 1 expense and has never been opened before, the confirmation modal will say delete report instead of delete expense. It's technically an existing issue.
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.mweb.mp4
iOS: Native
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4
Original PR URL: Expensify#70349
PR Type
Enhancement
Description
Add support for deleting report previews across all languages
Refactor delete action logic into reusable
canDeleteMoneyRequestReportfunctionUpdate translation strings to handle report deletion with proper type differentiation
Extend context menu delete action to support report preview actions
Diagram Walkthrough
File Walkthrough
15 files
Add report type to delete action translationsAdd report type to delete action translationsAdd report type to delete action translationsAdd report type to delete action translationsAdd report type to delete action translationsAdd report type to delete action translationsAdd report type to delete action translationsAdd report type to delete action translationsAdd report type to delete action translationsAdd report type to delete action translationsSimplify delete action logic by delegating to utilityExtract and export delete money request report logicAdd transactions hook and pass to context menu actionsEnable delete action for report preview with proper parametersAdd report preview deletion handler2 files
Update test to match new function signatureUpdate tests to match new function signature