-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Money request header scrollable #21918
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
Money request header scrollable #21918
Conversation
…ys fixed, the other part is moved as a footer of the InvertedFlatList which makes it a header Signed-off-by: Pierre Michel <pmiche04@gmail.com>
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
…ollable Signed-off-by: Pierre Michel <pmiche04@gmail.com> # Conflicts: # src/components/MoneyRequestHeader.js # src/pages/home/report/ReportActionsList.js # src/pages/home/report/ReportActionsView.js
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
Signed-off-by: Pierre Michel <pmiche04@gmail.com> # Conflicts: # src/pages/home/ReportScreen.js # src/pages/home/report/ReportActionsList.js # src/pages/home/report/ReportActionsView.js
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
|
@aimane-chnaif 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] |
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
|
Hello @aimane-chnaif, it looks like there is a lint problem unrelated to my code, I ran npm run lint on my computer and fixed some errors even if I think there are still some syntax errors that they don't tell me, I also changed the name of the files as MaciejSWM suggested. The biggest change from the initial branch is the android version of InvertedList, I did it because Lint asked me to validate the props, I copied the way it was done in index.js I hope it's good. Maybe you can start the review until they fix the lint error, thanks |
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
This reverts commit 837f690. Signed-off-by: Pierre Michel <pmiche04@gmail.com>
AndrewGable
left a comment
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.
|
Yes... Weird... Thank you @AndrewGable |
|
This should have been done in proposal stage but we need design approval from design team. @shawnborton can you please provide feedback on these? Web: Screen.Recording.2023-07-03.at.6.29.19.PM.moviOS: Screen.Recording.2023-07-03.at.6.29.56.PM.mov |
|
@ShogunFire please fix conflict while waiting for feedback. Also I am seeing prop type console error in android |
|
But if we're just breaking the changes out into chunks, I suppose this is fine? |
|
Here's the main issue we were going from, I don't think this PR has come from it, and the changes to avatars and headers were being taken care of by @chiragsalian and @grgia. It does seem a bit unclear though, but I'll take that to the main issue and not in this PR. |
|
@trjExpensify so are we good to go with this PR or are we holding it for something? |
I think we are good. From #20486 (comment), there was a concern about background but it seems follow-up. The purpose of this PR is to move money request "header" from top fixed view to scrollable view based on current old design. The new design changes will be done as next steps but not in this PR. |
Yup, consensus in the main issue was that there isn't a conflict 👍 |
Signed-off-by: Pierre Michel <pmiche04@gmail.com> # Conflicts: # src/pages/home/report/ReportActionsView.js
|
@madmax330 kindly bump for review. to avoid more conflicts |
|
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
|
There was an outstanding lint issue here, maybe a new check was added recently?
|
|
It seems that came from merge. On this branch itself, there was no lint issue. |
|
It's likely we recently added/updated a check on main. So the issue wouldn't have been seen until the changes were merged with main (or main merged to the branch). Anyway, solved now 👍 |
|
🚀 Deployed to staging by https://github.com/madmax330 in version: 1.3.39-0 🚀
|
|
@ShogunFire @aimane-chnaif @madmax330 @AndrewGable No QA needed here? |
|
@mvtglobally Oups, looks like I forgot to add test steps sorry, I am doing this now |
|
@mvtglobally I have added the steps |
|
And I guess I should follow the PR steps better next time because I just found a bug, when we are offline the scrollable header is not greyed out |
Good catch. Not sure if we should fix it as a follow-up as money request header will be refactored again in #22484 |
|
I think we can omit a follow up PR @ShogunFire, I decided to refactor this flow so I'll handle it in the linked PRs. cc @aimane-chnaif |
|
@aimane-chnaif @grgia Are you sure we can just ignore it ? It is now a deploy blocker :( I have a branch ready for a PR: https://github.com/ShogunFire/App/tree/fixScrollableHeaderOffline |
|
@ShogunFire Go ahead and create your PR and we'll review |
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.39-11 🚀
|

Details
We are dividing the header in two part and one part is going to be in the list, we put it as the footer even if we want it to act like a header because the list in inverted. We are doing this change because the header was taking too much space on little screens.
Fixed Issues
$ #19389
PROPOSAL: #19389 (comment)
Tests
is shown at the top
Offline tests
QA Steps
is shown at the top
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
2023-06-20.10-01-45.mp4
Mobile Web - Chrome
2023-06-20.10-03-39.mp4
Mobile Web - Safari
2023-06-20.10-25-46.mp4
Desktop
2023-06-20.11-01-43.mp4
iOS
2023-06-20.11-10-07.mp4
Android
2023-06-20.11-12-52.mp4