-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ignore currency symbol for tbd #30459
ignore currency symbol for tbd #30459
Conversation
@Santhosh-Sellavel Please 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] |
@Santhosh-Sellavel |
@Santhosh-Sellavel |
@Santhosh-Sellavel |
Sorry for the delay @rojiphil Can you make numbered steps instead a,b,c,d, etc. Will review today, 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.
Just minor, looks good will complete checklist with screens tomorrow caught up with some issues on new setup changes.
src/libs/DistanceRequestUtils.js
Outdated
@@ -90,7 +90,8 @@ const getDistanceMerchant = (hasRoute, distanceInMeters, unit, rate, currency, t | |||
const singularDistanceUnit = unit === CONST.CUSTOM_UNITS.DISTANCE_UNIT_MILES ? translate('common.mile') : translate('common.kilometer'); | |||
const unitString = distanceInUnits === 1 ? singularDistanceUnit : distanceUnit; | |||
const ratePerUnit = rate ? PolicyUtils.getUnitRateValue({rate}, toLocaleDigit) : translate('common.tbd'); | |||
const currencySymbol = CurrencyUtils.getCurrencySymbol(currency) || `${currency} `; | |||
// Set the currency symbol only if rate is valid |
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.
This seems unnecessary please remove 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.
Sure. The unnecessary comment is removed now.
The steps are changed to numbered format. |
@Santhosh-Sellavel |
@Santhosh-Sellavel |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2023-11-02.at.10.33.53.AM.movMacOS: DesktopScreen.Recording.2023-11-02.at.10.42.05.AM.mov |
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.
LGTM!
Unable to test on Android/mWeb, but that should be a blocker here so approving!
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.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.96-0 🚀
|
According to QA this is still happening on iOS. |
@puneetlath |
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.96-15 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀
|
@Santhosh-Sellavel @luacmartins
Details
This PR makes the following changes to the code:
currencySymbol
is set to empty string ingetDistanceMerchant
utility function when rate is not available.Fixed Issues
$ #30376
PROPOSAL: #30376 (comment)
Tests
Precondition:
User A:
User B:
3. Verify that User B sees the invited Workspace from User A in LHN.
(Note: Do not open workspace in User B's App)
Test Steps: User B
This is an offline test scenario
Next
My Workspace
Distance
page does not display currency symbol forDistance
(should be something likeTBD miles @ TBD / mile
)Request
. Verify thatReportPreview
does not display currency symbol fordistance
ReportPreview
. Verify that the IOU Report does not display currency symbol fordistance
distance
does not display currency symbol.Offline tests
Same as the Steps for Tests Section.
QA Steps
Same as the Steps for Tests Section.
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
iOS
30376-ios-native.mp4
Android
30376-android-native.mp4
Mobile Web - Chrome
30376-mweb-chrome.mp4
Mobile Web - Safari
30376-mweb-safari.mp4
Web
30376-web-safari.mp4
Desktop
30376-desktop.mp4