Fix the start group button moves up#55020
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemweb-chrome.moviOS: Nativeios.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
Failing lint is unrelated |
tgolen
left a comment
There was a problem hiding this comment.
Even though the Lint errors are unrelated, can you please fix them in this PR? Thanks!
|
@tgolen Fixed now. |
| newSelectedOptions = reject(selectedOptions, (selectedOption) => selectedOption.login === option.login); | ||
| } else { | ||
| newSelectedOptions = [...selectedOptions, {...option, isSelected: true, selected: true, reportID: option.reportID ?? '-1'}]; | ||
| newSelectedOptions = [...selectedOptions, {...option, isSelected: true, selected: true, reportID: option.reportID ?? CONST.EMPTY_STRING}]; |
There was a problem hiding this comment.
I think this one needs to be CONST.DEFAULT_NUMBER_ID as well? I think going from -1 to an empty string would have some unintended consequences.
Fix the start group button moves up (cherry picked from commit 5f4df80) (CP triggered by tgolen)
|
✋ 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/tgolen in version: 9.0.82-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.82-12 🚀
|
| newSelectedOptions = reject(selectedOptions, (selectedOption) => selectedOption.login === option.login); | ||
| } else { | ||
| newSelectedOptions = [...selectedOptions, {...option, isSelected: true, selected: true, reportID: option.reportID ?? '-1'}]; | ||
| newSelectedOptions = [...selectedOptions, {...option, isSelected: true, selected: true, reportID: option.reportID ?? `${CONST.DEFAULT_NUMBER_ID}`}]; |
There was a problem hiding this comment.
This still violates the lint rule. Please check https://expensify.slack.com/archives/C01GTK53T8Q/p1737913879440099
@nkdengineer Please fix the lint.
Explanation of Change
Fix the start group button moves up
Fixed Issues
$ #54975
PROPOSAL: #54975 (comment)
Tests
Offline tests
Same
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
Screen.Recording.2025-01-10.at.00.14.32.mov
Android: mWeb Chrome
Screen.Recording.2025-01-10.at.00.16.56.mov
iOS: Native
Screen.Recording.2025-01-10.at.00.15.06.mov
iOS: mWeb Safari
Screen.Recording.2025-01-10.at.00.16.02.mov
MacOS: Chrome / Safari
Screen.Recording.2025-01-10.at.00.17.48.mov
MacOS: Desktop
Screen.Recording.2025-01-10.at.00.20.03.mov