-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[CP Staging] fix: Incorrect view button on the paid expense #62526
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
Conversation
🚧 @Julesssss has triggered a test app build. You can view the workflow run here. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@Julesssss we have a open PR here |
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.
Pull Request Overview
This PR refines how action badges are displayed, ensuring the “view” and “paid” states render correctly based on item context.
- Consolidated the
isChildListItem
check to simplify conditional logic. - Adjusted when the “paid” and “done” badges should appear in
ActionCell.tsx
.
Comments suppressed due to low confidence (2)
src/components/SelectionList/Search/ActionCell.tsx:54
- Add unit tests covering both branches (
parentAction !== PAID
andaction === DONE
) withisChildListItem
true/false to ensure the new combined condition yields the expected badge visibility.
if (!isChildListItem && ((parentAction !== CONST.SEARCH.ACTION_TYPES.PAID && action === CONST.SEARCH.ACTION_TYPES.PAID) || action === CONST.SEARCH.ACTION_TYPES.DONE)) {
src/components/SelectionList/Search/ActionCell.tsx:54
- By gating both the PAID and DONE conditions under
!isChildListItem
, paid actions for child items will no longer render the badge. Please confirm this change matches the intended UI behavior for child list items.
if (!isChildListItem && ((parentAction !== CONST.SEARCH.ACTION_TYPES.PAID && action === CONST.SEARCH.ACTION_TYPES.PAID) || action === CONST.SEARCH.ACTION_TYPES.DONE)) {
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.
LGTM
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Awaiting CP here. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
fix: Incorrect view button on the paid expense (cherry picked from commit ebdce61) (cherry-picked to staging by arosiclair)
🚀 Cherry-picked to staging by https://github.com/arosiclair in version: 9.1.49-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Cherry-picked to staging by https://github.com/arosiclair in version: 9.1.49-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/arosiclair in version: 9.1.50-0 🚀
|
Explanation of Change
Fixed Issues
$ #62504
PROPOSAL: #62504 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
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