-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
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 <[email protected]>
Signed-off-by: Pierre Michel <[email protected]>
…ollable Signed-off-by: Pierre Michel <[email protected]> # Conflicts: # src/components/MoneyRequestHeader.js # src/pages/home/report/ReportActionsList.js # src/pages/home/report/ReportActionsView.js
Signed-off-by: Pierre Michel <[email protected]>
Signed-off-by: Pierre Michel <[email protected]>
Signed-off-by: Pierre Michel <[email protected]> # Conflicts: # src/pages/home/ReportScreen.js # src/pages/home/report/ReportActionsList.js # src/pages/home/report/ReportActionsView.js
Signed-off-by: Pierre Michel <[email protected]>
@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 <[email protected]>
Signed-off-by: Pierre Michel <[email protected]>
Signed-off-by: Pierre Michel <[email protected]>
Signed-off-by: Pierre Michel <[email protected]>
Signed-off-by: Pierre Michel <[email protected]>
Signed-off-by: Pierre Michel <[email protected]>
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 <[email protected]>
Signed-off-by: Pierre Michel <[email protected]>
This reverts commit 837f690. Signed-off-by: Pierre Michel <[email protected]>
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 <[email protected]> # 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
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