-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[CP Staging] fix all checkbox is auto checked when only having empty report #62111
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
@allroundexperts 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUnable to build android Android: mWeb ChromeScreen.Recording.2025-05-15.at.8.47.05.PM.moviOS: HybridAppScreen.Recording.2025-05-15.at.8.45.09.PM.moviOS: mWeb SafariScreen.Recording.2025-05-15.at.8.21.28.PM.movMacOS: Chrome / SafariScreen.Recording.2025-05-15.at.8.15.11.PM.movMacOS: DesktopScreen.Recording.2025-05-15.at.8.17.27.PM.mov |
isIndeterminate={selectedItemsLength > 0 && selectedItemsLength !== flattenedTransactions.length} | ||
onPress={() => { | ||
onAllCheckboxPress(); | ||
}} | ||
disabled={flattenedTransactions.length === 0} |
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.
can you still toggle it to select that empty report?
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.
@mountiny The checkbox of the empty report is also disabled so I think we should disabled this as well.
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
@mountiny @nkdengineer Is this expected? Screen.Recording.2025-05-15.at.8.21.28.PM.mov |
@mountiny Do you think we can also disable long press here. |
@nkdengineer we are already disabling it elsewhere |
@mountiny We only disable the checkbox for empty report but missed to disable the long press. App/src/components/SelectionList/Search/ReportListItem.tsx Lines 39 to 40 in d4347a6
|
@mountiny We can use the same condition to return early here, what do you think? App/src/components/Search/SearchList.tsx Lines 176 to 178 in d4347a6
|
@mountiny Thanks, we can skip this now. @allroundexperts we're good to go now. |
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.
Works good!
Cool so this is ready to go, right? |
[CP Staging] fix all checkbox is auto checked when only having empty report (cherry picked from commit 7595f0f) (cherry-picked to staging by francoisl)
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 9.1.45-20 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.45-21 🚀
|
Explanation of Change
fix all checkbox is auto checked when only having empty report
Fixed Issues
$ #62086
PROPOSAL: #62086 (comment)
Tests
Precondition: The account has no expense
Offline tests
None
QA Steps
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
Screen.Recording.2025-05-15.at.22.01.00.mov
Android: mWeb Chrome
Screen.Recording.2025-05-15.at.21.55.27.mov
iOS: Native
Screen.Recording.2025-05-15.at.21.57.12.mov
iOS: mWeb Safari
Screen.Recording.2025-05-15.at.21.56.11.mov
MacOS: Chrome / Safari
Screen.Recording.2025-05-15.at.21.54.07.mov
MacOS: Desktop
Screen.Recording.2025-05-15.at.22.00.36.mov