Remove 'Show More' section when creating expense#62543
Conversation
|
@eVoloshchak 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] |
|
Do we need to adjust the sorting here? We can switch the date and category field order Here is the comparison
cc @eVoloshchak |
|
@nyomanjyotisa, that is correct, the order sould remain the same |
|
PR has been updated, and the videos are also updated |
eVoloshchak
left a comment
There was a problem hiding this comment.
An intermediate structure that helps us classify the fields as "primary" and "supplementary". The primary fields are always shown to the user, while an extra action is needed to reveal the supplementary ones.
This comment in src/components/MoneyRequestConfirmationListFooter.tsx is no longer needed, as the whole classification logic was removed. classifiedFields should be fields too by that logic
|
I've updated the PR |
|
Apologies, I'm a bit late, there are some new conflicts, could you please pull the latest |
|
Sure, I've merged with the latest main |
| /> | ||
| )} | ||
| <View style={[styles.mb5]}>{shouldShowAllFields && supplementaryFields}</View> | ||
| {fields.filter((field) => field.shouldShow).map((field) => field.item)} |
There was a problem hiding this comment.
| {fields.filter((field) => field.shouldShow).map((field) => field.item)} | |
| <View style={[styles.mb5]}>{fields.filter((field) => field.shouldShow).map((field) => field.item)}</View> |
There's a slight difference between the two, let's keep it consistent with how it was implemented before
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-06-11.at.23.35.45.movAndroid: mWeb ChromeScreen.Recording.2025-06-11.at.23.28.33.moviOS: HybridAppScreen.Recording.2025-06-11.at.23.21.28.moviOS: mWeb SafariScreen.Recording.2025-06-11.at.23.23.16.movMacOS: Chrome / SafariScreen.Recording.2025-06-11.at.23.18.26.movMacOS: DesktopScreen.Recording.2025-06-11.at.23.19.05.mov |
|
✋ 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/JS00001 in version: 9.1.66-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|


Explanation of Change
Fixed Issues
$ #62220
PROPOSAL: #62220 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Android-Native.mp4
Android: mWeb Chrome
Android-mWeb.Chrome.mp4
iOS: Native
iOS-Native.mp4
iOS: mWeb Safari
iOS-mWeb.Safari.mp4
MacOS: Chrome / Safari
MacOS-Chrome.mp4
MacOS: Desktop
MacOS-Desktop.mp4