-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 Issue #19910: Changed InputMode for float editor to decimal #20007
Conversation
Hi @Ahmed-Bhouri, can you complete the following:
|
Hi @Ahmed-Bhouri please assign the required reviewer(s) for this PR. Thanks! |
@seanlip PTAL |
Unassigning @Ahmed-Bhouri since a re-review was requested. @Ahmed-Bhouri, please make sure you have addressed all review comments. Thanks! |
@Ahmed-Bhouri Please reassign me once the discussion on the issue is completed and we are clear on the path forward. Thanks! |
@seanlip PTAL I have finally solved the issue as we discussed. Sorry for the delay ( I had issues with pushing my code that turned out to be caused by my setup ( This is my first PR and I am running my dev environment on a codespaces instance) ) |
Unassigning @Ahmed-Bhouri since a re-review was requested. @Ahmed-Bhouri, please make sure you have addressed all review comments. Thanks! |
@Ahmed-Bhouri Thanks -- could you please show the full flow, including submission of the answer? Ideally demonstrate it for both the "." and "," cases. Thanks! (Also, just a question -- I'm not familiar with Codespaces, but does it run the pre-push hook? Just wanted to check since that can help avoid CI errors in the PR.) |
@seanlip PTAL -- Thank you for mentioning the submission part ( I had to fix a small error there ) I only use codespace to create a separate environment from my machine in the cloud ( I ran into a lot of problems with my 16Gb of ram on a MacBook M1 ). This way I can use better resources. |
Unassigning @Ahmed-Bhouri since a re-review was requested. @Ahmed-Bhouri, please make sure you have addressed all review comments. Thanks! |
@Ahmed-Bhouri Thanks, just a question. In your video I don't see the language/region change or the keyboard used to type "2.5". Can you display this too? |
); | ||
if (error !== undefined) { | ||
this.localValue = null; | ||
this.errorStringI18nKey = error || null; | ||
} else { | ||
// Parse number if the string is in proper format. | ||
this.localValue = this.numberConversionService.convertToEnglishDecimal( | ||
this.localStringValue | ||
this.localStringValue.replace(/\.|,/g, currentDecimalSeparator) |
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.
A question: Instead of doing localStringValue.replace() in multiple places, should we just be storing the right thing in there from the outset?
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.
Thank you for this!
I have improved it in the commit i am pushing now
Unassigning @Lawful2002 since they have already approved the PR. |
Hi @Ahmed-Bhouri, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to ask someone to merge your PR once the CI checks pass and you're happy with it. Thanks! |
@Ahmed-Bhouri The flake in the last merge attempt seems to be related to your changes. Could you PTAL and analyze the root cause so that we can be sure that this PR does not result in a flake in develop? https://github.com/oppia/oppia/actions/runs/8491174975/job/23262916789
|
@seanlip PTAL To solve this I started by locking the test seed to 505 (the one that fails) to be able to debug the tests easily. I am pretty positive now that there will be no more flakes in testing. Thank you, |
Unassigning @Ahmed-Bhouri since a re-review was requested. @Ahmed-Bhouri, please make sure you have addressed all review comments. 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.
Thanks @Ahmed-Bhouri! LGTM :)
@lkbhitesh07 PTAL as codeowner. 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.
LGTM for the code owner file.
Thanks
Unassigning @lkbhitesh07 since they have already approved the PR. |
Hi @Ahmed-Bhouri, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to ask someone to merge your PR once the CI checks pass and you're happy with it. Thanks! |
Overview
Essential Checklist
Proof that changes are correct
after the changes the comma finally appears on the keyboard while using the input:
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-03-23.at.14.26.56.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-03-24.at.20.22.14.mp4
Simulator.Screen.Recording.-.iPhone.15.-.2024-03-26.at.11.36.19.mp4
PR Pointers