-
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
Add IOU badge to report row and header #2095
Conversation
src/styles/styles.js
Outdated
@@ -228,23 +228,18 @@ const styles = { | |||
pill: { |
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 it might be worth renaming this to badge
src/styles/styles.js
Outdated
@@ -228,23 +228,18 @@ const styles = { | |||
pill: { | |||
borderRadius: 14, | |||
backgroundColor: themeColors.pillBG, |
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'll also have a gray badge that will be the default case, so we might want to think about how to manage the styles here. Maybe we have badge
as well as badge.success
or something? Similar to how we handle default buttons versus success buttons?
Or the default badge is green, and then we can also have badge.neutral
or something?
style={styles.pillText} | ||
numberOfLines={1} | ||
> | ||
{`$${Num.number_format(props.iouReport.total / 100, 2)}`} |
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 this looks like something we'll be reusing.
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.
Specifically, the total > dollar format
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.
Looks good, just the conflict to resolve
Updated screens lmk if this is feeling right @shawnborton ! |
Hmm it doesn't feel quite right anymore, but previously it was looking right. Ideally the pill ends up being only 20px tall, the same exact height as the pin icon next to it. |
@shawnborton whoops, that's my fault. I mentioned here that the size didn't match the Figma design. Was there a newer design somewhere? |
Ah yes, no worries there. I think there have been a couple of different sizes floating around but most recently we landed on having the row/header badges be the same height as the pin icon. |
Nice, thanks for the update. Going to merge since Jules approved. |
Hey @marcaaron, I just resolved a merge conflict that involves this PR, and want to be sure that I didn't break the functionality here. When I test this locally, should I be creating this job via /scripts/bwm.sh? If so should I just pull the
|
That is an Auth command not a bedrock job. |
OK cool! Thanks for steering me in the right direction. |
Details
Adds IOU badge.
Notes:
Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/158424
Tests
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android