Add IOU badge to report row and header#2095
Conversation
| @@ -228,23 +228,18 @@ const styles = { | |||
| pill: { | |||
There was a problem hiding this comment.
I think it might be worth renaming this to badge
| @@ -228,23 +228,18 @@ const styles = { | |||
| pill: { | |||
| borderRadius: 14, | |||
| backgroundColor: themeColors.pillBG, | |||
There was a problem hiding this comment.
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.
NAB, but this looks like something we'll be reusing.
There was a problem hiding this comment.
Specifically, the total > dollar format
Julesssss
left a comment
There was a problem hiding this comment.
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