-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Simplified Actions on Report Header and Preview V2 #59999
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
Simplified Actions on Report Header and Preview V2 #59999
Conversation
@MarioExpensify 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] |
b493343
to
59cca89
Compare
…ied-actions-on-header-v2
…-actions-on-header-v2
…ied-actions-on-header-v2
@mananjadhav conflicts resolved |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariNon Beta: enable auto approval, auto export, track, delay submitionScreen.Recording.2025-04-24.at.21.59.49.mp4Beta: enable auto approval, auto export, track, delay submitionScreen.Recording.2025-04-24.at.22.02.53.mp4Non Beta: disable auto export, track, delay submitionScreen.Recording.2025-04-24.at.22.14.47.mp4Beta: disable auto export, track, delay submitionScreen.Recording.2025-04-24.at.22.18.01.mp4Android: NativeNon Beta Uploading Screen Recording 2025-04-24 at 22.34.17.mp4… Android: mWeb ChromeNon Beta Screen.Recording.2025-04-24.at.22.29.17.mp4iOS: NativeNon Beta Screen.Recording.2025-04-24.at.22.23.59.mp4iOS: mWeb SafariNon Beta Screen.Recording.2025-04-24.at.22.23.59.mp4MacOS: DesktopNon Beta: Disable track Screen.Recording.2025-04-24.at.22.38.28.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.
Overall, the changes introducing the new action behind beta flags LGTM. Just consider also applying the beta flag in ReportPrimaryActionUtils for the function that contains new logic.
I've verified the non-beta and beta in cases: enable/disable auto approval, auto export, track, delay submition
This is a large PR and has many unrelated ESLint errors. I'm gonna merge it as is and we can tackle those in a follow up. |
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
See comment above |
Related to eslint error by rule |
✋ 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 staging by https://github.com/luacmartins in version: 9.1.33-0 🚀
|
const shouldShowSettlementButton = !shouldShowSubmitButton && (shouldShowPayButton || shouldShowApproveButton) && !showRTERViolationMessage && !shouldShowBrokenConnectionViolation; | ||
|
||
const shouldPromptUserToAddBankAccount = (hasMissingPaymentMethod(userWallet, iouReportID) || hasMissingInvoiceBankAccount(iouReportID)) && !iouSettled; | ||
const shouldPromptUserToAddBankAccount = (hasMissingPaymentMethod(userWallet, iouReportID) || hasMissingInvoiceBankAccount(iouReportID)) && !isSettled(iouReportID); |
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.
I think the changes in this PR may be causing this deploy blocker: #61005
Not 100% sure because it can't be reverted easily
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.1.35-1 🚀
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.1.36-3 🚀
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.1.37-1 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.37-3 🚀
|
This reverts commit 3daab6e.
cc @luacmartins @borys3kk
Explanation of Change
Fixed Issues
$ #59963
$ #59960
PROPOSAL:
Tests
Test cases:
Prerequisites: Workspace without accounting with approvals enabled, workspace with connected accounting system
Test case 1:
Test case 2:
Test case 3:
Test case 4:
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop