-
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
Create eReceipt Component #29054
Create eReceipt Component #29054
Conversation
Deploying with
|
Latest commit: |
a9b32e0
|
Status: | ✅ Deploy successful! |
Preview URL: | https://01cb4eab.helpdot.pages.dev |
Branch Preview URL: | https://georgia-cardtransactionserec-4znh.helpdot.pages.dev |
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.
fixed these in #29075
fontFamily: fontFamily.EXP_NEUE, | ||
fontSize: variables.fontSizeXLarge, | ||
lineHeight: variables.lineHeightXXLarge, | ||
color: theme.text, |
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.
I think we should use color.ivory for this one for two reasons:
- It matches our brand system better - we use ivory as the "light" color against brand colors
- It will stay the same in both dark and light modes
fontFamily: fontFamily.MONOSPACE, | ||
fontSize: variables.fontSizeNormal, | ||
lineHeight: variables.lineHeightNormal, | ||
color: theme.textColorfulBackground, |
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.
I think this should be ivory as well
fontFamily: fontFamily.MONOSPACE, | ||
fontSize: variables.fontSizeSmall, | ||
lineHeight: variables.lineHeightSmall, | ||
color: theme.textColorfulBackground, |
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.
I think this should be ivory as well
closing for #29075 |
Details
This PR creates (but does not use) the eReceipt Component.
As part of this, I modified the MCC SVGs such that we could color them with the Icon component fill prop.
I also fixed the cardID type, which was set incorrectly and is necessary for getting the cardDescription.
This PR uses styles from https://github.com/Expensify/App/pull/27204/files
Fixed Issues
$ #28828
PROPOSAL:
Tests
Note: storybook was not updating with styles.js, see screenshots from web for correct currency font size
Screen.Recording.2023-10-07.at.7.40.09.PM.mov
To display the full eReceipt, the user must have both the transaction and the card in the cardList
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
iOS
Android