-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix "Delete expense" option appears for paid tracked workspace expense #44069
Fix "Delete expense" option appears for paid tracked workspace expense #44069
Conversation
A typo in QA step -12. Verify there is no Delete expense option
+12. Verify there is Delete expense option |
Reviewer Checklist
Screenshots/VideosAndroid: Native0-android.mp4Android: mWeb Chrome0-mobile-chrome.mp4iOS: Native0-ios.mp4iOS: mWeb Safari0-mobile-safari.mp4MacOS: Chrome / Safari0-web.mp4MacOS: Desktop0-desktop.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and tested well
Upated, thanks! |
Will take a look at this first thing tomorrow, sorry for the delay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small comment otherwise looks godo
@@ -61,7 +61,8 @@ function MoneyRequestHeader({report, parentReportAction, policy, shouldUseNarrow | |||
const {translate} = useLocalize(); | |||
const [isDeleteModalVisible, setIsDeleteModalVisible] = useState(false); | |||
const [shouldShowHoldMenu, setShouldShowHoldMenu] = useState(false); | |||
const moneyRequestReport = parentReport; | |||
const isSelfDMTrack = ReportUtils.isTrackExpenseReport(report) && ReportUtils.isSelfDM(parentReport); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAB: variable clarity
const isSelfDMTrack = ReportUtils.isTrackExpenseReport(report) && ReportUtils.isSelfDM(parentReport); | |
const isSelfDMTrackExpenseReport = ReportUtils.isTrackExpenseReport(report) && ReportUtils.isSelfDM(parentReport); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
Details
The delete expense option still shows for paid tracked workspace expense. This PR fix it.
Fixed Issues
$ #43591
PROPOSAL: #43591 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-06-20.at.17.39.37.mov
Android: mWeb Chrome
android.mweb.1.mov
android.mweb.2.mov
iOS: Native
Screen.Recording.2024-06-20.at.17.11.45.1.mov
iOS: mWeb Safari
ios.mweb.1.mov
ios.mweb.2.mov
MacOS: Chrome / Safari
web.1.mov
MacOS: Desktop
Screen.Recording.2024-06-20.at.17.09.40.1.mov