-
Notifications
You must be signed in to change notification settings - Fork 3.5k
ignore currency symbol for tbd #30459
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
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! |
Santhosh-Sellavel
left a comment
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
| 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 |
Santhosh-Sellavel
left a comment
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!
luacmartins
left a comment
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:
currencySymbolis set to empty string ingetDistanceMerchantutility 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
NextMy WorkspaceDistancepage does not display currency symbol forDistance(should be something likeTBD miles @ TBD / mile)Request. Verify thatReportPreviewdoes not display currency symbol fordistanceReportPreview. Verify that the IOU Report does not display currency symbol fordistancedistancedoes 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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