refactor split phrase hasCurrencyError#64148
Conversation
…andra17/refactor/splitphrase/hasCurrencyError
|
@allgandalf 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] |
…se/hasCurrencyError
…se/hasCurrencyError
https://github.com/PiyushChandra17/App into PiyushChandra17/refactor/splitphrase/hasCurrencyError
|
@allgandalf this type check error is because we have added new languages |
|
@PiyushChandra17 lets fix type errors, we now require translations in all languages , please update all the related files |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
| {translate('bankAccount.hasCurrencyError.link')} | ||
| </TextLink> | ||
| {translate('bankAccount.hasCurrencyError.phrase2')} | ||
| {getPlatform() === CONST.PLATFORM.IOS || getPlatform() === CONST.PLATFORM.ANDROID || getPlatform() === CONST.PLATFORM.DESKTOP ? ( |
There was a problem hiding this comment.
I do not understand the need to have this platform specific, also why are we using TextLink? there is not need to use here no?
There was a problem hiding this comment.
@allgandalf I think there were parsing URL error on web via TextLink thats why i have used it, if removing that TextLink resolves the problem then i'll fix it
There was a problem hiding this comment.
@allgandalf How will we handle onPress then ?
There was a problem hiding this comment.
Check this change for reference:
| phrase2: ' to set it to USD and try again.', | ||
| }, | ||
| hasCurrencyError: | ||
| 'Oops! It appears that your workspace currency is set to a different currency than USD. To proceed, please go to <a>your workspace settings</a> to set it to USD and try again.', |
There was a problem hiding this comment.
Why is there no link added in the anchor tag?
There was a problem hiding this comment.
@allgandalf Can we use environmentURL here?
|
@allgandalf Can you review this PR, i think we need to handle I tried to play around like this const workspaceInitialRoute = `${environmentURL}/${ROUTES.WORKSPACE_INITIAL.getRoute(policyIDParam, Navigation.getActiveRoute())}`;
const workspaceOverviewRoute = `${environmentURL}/${ROUTES.WORKSPACE_INITIAL.getRoute(policyIDParam, Navigation.getActiveRoute())}`;
const routeToNavigate = isSmallScreenWidth ? workspaceOverviewRoute : workspaceInitialRoute
<RenderHTML html={translate('bankAccount.hasCurrencyError', {routeToNavigate})} />However this doesn't seem to work, can you run this on local branch and verify. |
…se/hasCurrencyError
|
@allgandalf This PR is ready for review |
|
👋 @PiyushChandra17 you have conflicts on this one, can you resolve please? Thanks! |
|
@trjExpensify Done |
|
@PiyushChandra17 conflicts still exist |
|
@allgandalf Conflicts fixed |
|
There are conflicts ! |
|
@allgandalf Conflicts resolved |
| }, | ||
| "node_modules/core-util-is": { | ||
| "version": "1.0.2", | ||
| "dev": true, |
There was a problem hiding this comment.
please don't update this file
There was a problem hiding this comment.
@allgandalf i think I did npm install, will remove that change
|
@allgandalf Done |
|
sorry, we have conflicts here |
|
@roryabraham Conflicts resolved |
|
@roryabraham gentle bump |
|
✋ 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/roryabraham in version: 9.1.75-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.76-5 🚀
|
Explanation of Change
refactor
Fixed Issues
$ #62808
PROPOSAL: #62808 (Comment)
Tests
Pre-condition: set default currency to not USD
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop