-
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
Fix double spaces in IOU confirmation message #14768
Conversation
@thesahindia @dangrous One of you needs to 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] |
Removing C+ as this is a pretty simple change 😅 |
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 works, but do we want to take this opportunity to translate paymentMethodMessage
which isn't currently translated?
Separately, on main
when I do this, it appears with the double space first, but then if I move to another view and back (e.g. clicking on the payment details) it then fixes itself and removes the double space. It doesn't seem to mess up this PR, so it's probably fine, but did you experience that and/or do you know why it's happening?
Good point, but, the final IOU confirmation message actually comes from the backend, and replaces the optimistic one. Hence if we translate the optimistic message, it will be overwritten by the message coming from the backend. And this also answers your question below:
The message coming from the backend doesn't have double spaces. Check this function here responsible for creating the IOU confirmation message. |
Oh, okay - that makes sense. I didn't realize it was coming from two sources and this was just the optimistic one. All good then! (I can make a separate issue/bug report to translate that text. I wonder if we did it only in English since the grammar might be different in Spanish and so the string replacement won't work.) |
Reviewer Checklist
Screenshots/VideosiOS |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
🚀 Deployed to staging by https://github.com/dangrous in version: 1.2.64-4 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
1 similar comment
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
Details
Fixed Issues
$ #14737
Tests
Settled up elsewhere
Offline tests
Same as above.
QA Steps
Settled up elsewhere
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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.Screenshots/Videos
Web
Screen.Recording.2023-02-02.at.20.08.02.mov
Mobile Web - Chrome
See recording above, this should work on all platform as we're just changing text.
Mobile Web - Safari
See recording above, this should work on all platform as we're just changing text.
Desktop
See recording above, this should work on all platform as we're just changing text.
iOS
See recording above, this should work on all platform as we're just changing text.
Android
See recording above, this should work on all platform as we're just changing text.