-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[HOLD for payment 2024-03-22] [$500] IOU - The cursor isn't centered #35435
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01501e5a4487cb18d9 |
Triggered auto assignment to @peterdbarkerUK ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Cursor for time selection is not centered. It's at end What is the root cause of that problem?We are setting cursor position at 2, when setting state in App/src/components/TimePicker/TimePicker.js Line 122 in eb031dc
What changes do you think we should make in order to solve the problem?We shall change it to const [selectionMinute, setSelectionMinute] = useState({start: 0, end: 0}); / What alternative solutions did you explore? (Optional) |
This comment was marked as off-topic.
This comment was marked as off-topic.
ProposalPlease re-state the problem that we are trying to solve in this issue.The cursor isn't vertically centered in IOU amount input and also focus custom time What is the root cause of that problem?For those inputs we're using the custom EXP_NEW_KANSAS_MEDIUM font This font has a problem, when exported it, it seems we've exported it with incorrect vertical metrics, particularly we exported it with some intrinsic bottom padding. That's why when rendering, in some platform like Android Chrome, it will take this bottom padding into account and render the text inside the input with that bottom padding, thus the cursor looks like it's not vertically centered and instead closer to the top. See more explanation on a similar issue here and here. To validate this, we can just change What changes do you think we should make in order to solve the problem?We need to fix the incorrect vertical matrix in the Update: We have the new set of updated font files from the font foundry here and we should use that in More explanation:
I believe the design team probably has an internal process to design these fonts, we can also follow that internal process and tools we're using, to fix the vertical metrics similar to what's done above. And we'll raise a PR here to replace the font files. Below is the result on Android Chrome where this issue occurs (I also tested in other platforms as well and still working fine): After (cursor is vertically centered now): This problem could be happening for other fonts as well, we might want to check and fix them (if any) What alternative solutions did you explore? (Optional)NA |
Hi, @lanitochka17, this means that the cursor should be vertically centered, right? |
Triggered auto assignment to @mallenexpensify ( |
Same question as @ntdiary
Hi, @lanitochka17, this means that the cursor should be vertically centered, right? |
@ntdiary, @mallenexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
also assigning to @lanitochka17 to help get 👀 on the above. |
@ntdiary, @mallenexpensify, @lanitochka17 Huh... This is 4 days overdue. Who can take care of this? |
@ntdiary @mallenexpensify @lanitochka17 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@shawnborton The zip here only had |
Are you sure we need the .woff file though? I feel like it's becoming more standard to just use a .woff2. Either way, I can ask for it. |
Okay, I have the .woff files but our type foundry confirmed my thinking that these aren't really used anymore... are you sure we need to implement them? Either way, here it is: ENK_Medium_Woff.zip |
@dannymcclain, @ntdiary, @chiragsalian, @mallenexpensify, @lanitochka17, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
PR ready for review #38116. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.52-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-03-22. 🎊 For reference, here are some details about the assignees on this issue: |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@ntdiary @tienifr can you please accept the job and reply here once you have? @ntdiary , please complete the BZ checklist above too. |
@mallenexpensify I’ve accepted the offer, thanks! |
No need for regression test, after the font is fixed, this issue shouldn't occur again. :) |
@mallenexpensify, thanks! Have accepted. 😄 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.33.0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Issue found when executing PR #35119
Action Performed:
Expected Result:
The cursor should be centered
Actual Result:
The cursor isn't centered. It affects the manual IOU and custom time
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6361353_1706644512181.IOU.mp4
Bug6361353_1706644512173.Time.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: