-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[No QA] Create Money Request Header component #18148
Conversation
…tyling Styling Help for MoneyRequestHeader
@parasharrajat @bondydaa One of you needs to 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] |
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.
Looking good. Left a few comments.
b54c13b
to
a4a9226
Compare
@parasharrajat apologies but what error are you getting? |
It was login.toLowerCase related from hashLogin function in ReportUtils.js |
eadd538
Okay - @parasharrajat do you want me to do something about it? What are you getting at exactly? I tested and I did see a different JS error which I fixed - but I'm not seeing what you're reporting. |
Can we pull out whatever remaining issues we're seeing, get a checklist in this PR, and then merge? Unfortunately this PR holds up a cascading series of downstream PRs for our upcoming conference. I'd love to get this merged and still keep working on whatever issues we're finding separately. |
Also for what it's worth, we are going to purposefully break IOUs in the coming week. |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
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.
👍 my one comment is def NAB and is maybe something we consider as we keep iterating on this.
report: iouReportPropTypes, | ||
|
||
/** Policies, if we're showing the details for a report and need info about it for AvatarWithDisplay */ | ||
policies: PropTypes.shape({ | ||
/** Name of the policy */ | ||
name: PropTypes.string, | ||
}), | ||
|
||
/** Policies, if we're showing the details for a report and need participant details for AvatarWithDisplay */ | ||
personalDetails: PropTypes.objectOf(participantPropTypes), | ||
|
||
/** Additional styles to render on the container of this component */ | ||
// eslint-disable-next-line react/forbid-prop-types | ||
containerStyles: PropTypes.arrayOf(PropTypes.object), |
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.
NAB but if these are only used when shouldShowAvatarWithDisplay
is true
then maybe that's a case for having a completely separate component HeaderWithCloseButtonAndAvavtar
or something like that 🤷.
Okay I'm merging this, for the other reviews on here if you have outstanding concerns please spin up new issue(s) for them and we can get them addressed then. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Thanks for merging this. Meanwhile, there is a critical bug #18148 (comment) which should have been solved on this. Should I create a new slack report for it or someone will create a follow up? |
I was going to report the issue but then slack conversation leaded me here. App/src/components/HeaderWithCloseButton.js Line 168 in 5f649d5
![]() |
Yes, I also tried to point out above but it got merged while I was sleeping... 😄 |
Ah, my b. Will look at this. |
@yuwenmemon feel free to assign me for review |
Yep, our bad. |
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.3.11-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.12-0 🚀
|
We missed a case here, which led to this issue. More details on the issue |
@mountiny @luacmartins please review
Right now to get this to show I do a couple of things
Web
5571340985182399
with the reportID of your IOUMobile
Details
Adds the Money Request Header component into the code so that it can be used in Money Request Flows.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/270587
Tests
Offline tests
QA Steps
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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
Note: The Header gap here is a different color. This is because the
ScreenWrapper
component inReportScreen
does not have a background color set and we'll most likely need to pass it in as a prop. However, because we're not showing the component yet I'm not sure this is the time to take care of this - since this exists outside of the component.iOS
Android