-
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
[Taxes] Display tax rate value in the list #40083
[Taxes] Display tax rate value in the list #40083
Conversation
@@ -4313,6 +4313,9 @@ const CONST = { | |||
SESSION_STORAGE_KEYS: { | |||
INITIAL_URL: 'INITIAL_URL', | |||
}, | |||
|
|||
DOT_SEPARATOR: '•', |
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.
We use this in other places too for preview cards, etc. Just wondering if we can check how we're implementing it elsewhere, and try to consolidate so we don't have multiple ways of implementing this?
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.
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 like using it as a constant, and it would be nice if the other places followed this same approach as well :)
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.
Hm, I think I can change it. Do you want me to change it in this PR or create a new one?
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.
Follow up is totally fine with me, I don't feel too strongly.
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.
We use this in other places too for preview cards, etc. Just wondering if we can check how we're implementing it elsewhere, and try to consolidate so we don't have multiple ways of implementing this?
@shawnborton Forgive my ignorance here as I do not understand - other places too for preview cards
. Can you please point out exactly where you referred to in the FE?
However, I do see usage of DOT_SEPARATOR
for taxes in the money request flow as shown below. That way, we do not have multiple ways of implementing this.
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've replaced this character to use the const everywhere except for the maskCard
function, as it is used in different contexts (not as a separator, but as a mask).
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.
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.
So we should make sure we test those locations as part of the testing steps and screenshots, just to make sure our changes here don't mess anything up. Thanks!
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've updated the test sections with the report view. I'm not sure if I will be able to find steps for all the cases.
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.
Reviewer Checklist
Screenshots/VideosAndroid: NativeNote: Could not test on Android due to some local setup issues. NAB to me as this issue is not platform dependent. Android: mWeb Chrome40024-mweb-chrome.mp4iOS: Native40024-ios-native.mp4iOS: mWeb Safari40024-mweb-safari.mp4MacOS: Chrome / Safari40024-web-safari.mp4MacOS: Desktop40024-desktop.mp4 |
I was AFK for a moment, will change it in ~1 hour. |
Done. Ready for review. |
@kosmydel There is a lint error due to a prettier diff. Can you please resolve this? |
Ready! I've run the prettier and added more testing steps. |
@kosmydel, The following test steps seems more clear for testing the new dot separator. I used these steps to capture the test video. It would be good if you could include these steps in the checklist for QA’s reference. Test new dot separator |
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.
Thanks @kosmydel. LGTM
We did not find an internal engineer to review this PR, trying to assign a random engineer to #40024 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
@neil-marcellini it looks like you're assigned to the issue so I'll let you have first crack at review. If you want another set of eyes, though, let me know! |
edit: Oh my bad, I see that they recently approved |
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 great thanks!
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.4.63-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
This PR adds:
Fixed Issues
$ #40024
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Test the Taxes
Default
label is displayed.Test new dot separator
Further, if this is the default tax rate, additionally verify that • followed by the default text is displayed. (Test 3)
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop