-
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: Web - No Error Generated When Adding a Track Distance Rate of 0.00 #26745
Conversation
@cubuspl42 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] |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
src/languages/es.js
Outdated
@@ -1294,6 +1294,7 @@ export default { | |||
fastReimbursementsVBACopy: '¡Todo listo para reembolsar recibos desde tu cuenta bancaria!', | |||
updateCustomUnitError: 'Los cambios no han podido ser guardados. El espacio de trabajo ha sido modificado mientras estabas desconectado. Por favor, inténtalo de nuevo.', | |||
invalidRateError: 'Por favor, introduce una tarifa válida', | |||
lowRateError: 'La tarifa debe ser mayor que 0', |
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.
How was this translated?
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.
Google translate + OpenAI check.
I couldn't find a doc for the correct translation flow – is there any?
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 is, in a checklist. I commented here.
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.
Awesome I've placed the request from the checklist already.
Does the "waiting for copy" affect the 72 hours timeframe? When should we escalate the translations/copies review?
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 will try to make this considered a hold
I have read the CLA Document and I hereby sign the CLA |
f7219f7
to
d896c7e
Compare
Reviewer Checklist
Screenshots/VideosWebzero-rate-web.mp4Mobile Web - Chromezero-rate-android-web-compressed.mp4Mobile Web - Safarizero-rate-ios-web.mp4DesktopiOSzero-rate-ios.mp4Androidzero-rate-android-compressed.mp4 |
@marcochavezf The only thing left to figure out is the marketing approval of the copy |
@cubuspl42 ready for the final review 🙏 |
@paultsimura The PR was already approved by me, I checked off the last boxes in the checklist. |
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/marcochavezf in version: 1.3.68-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.68-17 🚀
|
if (!rateValueRegex.test(values.rate) || values.rate === '') { | ||
errors.rate = 'workspace.reimburse.invalidRateError'; | ||
} else if (parseFloat(values.rate) <= 0) { |
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.
Adding this caused #27595. We should have accounted for a ,
separator 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.
You're right, unfortunately. Thanks for pointing this out.
Details
rate <= 0
with a separate, more defined error message: "Rate must be greater than 0"Fixed Issues
$ #26344
PROPOSAL: #26344 (comment)
Tests
Offline tests
QA Steps
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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android