Skip to content
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-06-20] [HOLD for payment 2024-06-18] [HOLD for payment 2024-06-06] [HOLD #37374][$1000] Text in some languages gets cut off at the bottom in composer on ios #17767

Closed
1 of 6 tasks
kavimuru opened this issue Apr 21, 2023 · 155 comments · Fixed by Expensify/react-native-live-markdown#350
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Internal Requires API changes or must be handled by Expensify staff Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Apr 21, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Go to a report
  2. Paste this text in the composer: "समुद्री उल्लू"

Expected Result

The text should not be cut off

Actual Result

The bottom of the text is cut off

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.3.1
Reproducible in staging?: y
Reproducible in production?: y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

RPReplay_Final1682015045.MP4

Issue reported by: @esh-g
Slack conversation:
https://expensify.slack.com/archives/C049HHMV9SM/p1682015564506459
View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010070c4cda3fad328
  • Upwork Job ID: 1650822186330116096
  • Last Price Increase: 2023-04-25
Issue OwnerCurrent Issue Owner: @miljakljajic
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 21, 2023
@MelvinBot
Copy link

Triggered auto assignment to @arielgreen (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@MelvinBot
Copy link

MelvinBot commented Apr 21, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot melvin-bot bot added the Overdue label Apr 24, 2023
@MelvinBot
Copy link

@arielgreen Whoops! This issue is 2 days overdue. Let's get this updated quick!

@arielgreen
Copy link
Contributor

Reassigning

@melvin-bot melvin-bot bot removed the Overdue label Apr 24, 2023
@arielgreen arielgreen removed the Bug Something is broken. Auto assigns a BugZero manager. label Apr 24, 2023
@arielgreen arielgreen removed their assignment Apr 24, 2023
@arielgreen arielgreen added the Bug Something is broken. Auto assigns a BugZero manager. label Apr 24, 2023
@MelvinBot
Copy link

Triggered auto assignment to @conorpendergrast (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@MelvinBot
Copy link

MelvinBot commented Apr 24, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@conorpendergrast
Copy link
Contributor

Thanks! Reproduced on iOS app

@conorpendergrast conorpendergrast added the External Added to denote the issue can be worked on by a contributor label Apr 25, 2023
@melvin-bot melvin-bot bot changed the title Text in some languages gets cut off at the bottom in composer on ios [$1000] Text in some languages gets cut off at the bottom in composer on ios Apr 25, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~010070c4cda3fad328

@MelvinBot
Copy link

Current assignee @conorpendergrast is eligible for the External assigner, not assigning anyone new.

@MelvinBot
Copy link

Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 25, 2023
@MelvinBot
Copy link

Triggered auto assignment to @cead22 (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@esh-g
Copy link
Contributor

esh-g commented Apr 25, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Composer cuts off some text in other languages at the bottom.

What is the root cause of that problem?

We are using the style textAlignVertical: 'center' to center text in the composer.

textAlignVertical: 'center',

But this style is only available on android and doesn't work on iOS.

What changes do you think we should make in order to solve the problem?

The recommended alternative to textAlignVertical for iOS is just to add padding to the bottom for the TextInput
So, we need to add a padding of 2px at the bottom of the Composer which

Before
Screenshot 2023-04-25 at 6 52 29 PM

After
Screenshot 2023-04-25 at 6 51 23 PM

This can either be only on iOS platform or even on the styles.js file itself because it doesn't add much change to the appearance on other platforms as well. This might not look clean but is unfortunately the only way to manage vertical centring of text on iOS.

What alternative solutions did you explore? (Optional)

Another common workaround for this is to wrap the TextInput with a fixed height View which would look like this:

<View style={{height:200, width:200, justifyContent:"center", alignItems:"center"}}>
   <TextInput 
     multiline={true} 
     numberOfLines={10} 
     placeholder="Something useful" />
</View>

This is also a valid approach. Let me know if I should further elaborate on this 😇

@Pujan92
Copy link
Contributor

Pujan92 commented Apr 25, 2023

I think there is an issue with the iOS textinput lineHeight facebook/react-native#28012

For default lineHeight also the text gets overlap/cut in iOS, adding screenshot of snack. Padding seems to be hack as it shows that cut text on the padding area.

Screenshot 2023-04-25 at 10 10 04 PM

@fedirjh
Copy link
Contributor

fedirjh commented Apr 25, 2023

@esh-g Your RCA analysis does not appear accurate to me. Your solution is a workaround, it doesn’t address the root cause.

@fedirjh
Copy link
Contributor

fedirjh commented Apr 25, 2023

I agree with @Pujan92, this issue should be fixed upstream.

@fabOnReact
Copy link
Contributor

I reopened facebook/react-native#28012

@fabOnReact
Copy link
Contributor

Update 5 June 2024

I reviewed and tested the regressions and none of them are related to my PR Expensify/react-native-live-markdown#350.

@miljakljajic
Copy link
Contributor

@fabOnReact @fedirjh I had to send you both new contracts, the old one expired. If you can accept them today and then message me in slack I'll get it paid before the end of the day!

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

Payment Summary

Upwork Job

  • ROLE: @fabOnReact paid $(AMOUNT) via Upwork (LINK)
  • ROLE: @fedirjh paid $(AMOUNT) via Upwork (LINK)

BugZero Checklist (@miljakljajic)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1650822186330116096/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jun 7, 2024
Copy link

melvin-bot bot commented Jun 7, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

Copy link

melvin-bot bot commented Jun 9, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@fabOnReact
Copy link
Contributor

fabOnReact commented Jun 10, 2024

Update 10 June 2024

@miljakljajic
Copy link
Contributor

@fabOnReact paid

@fedirjh please accept the offer

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 11, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-06] [HOLD #37374][$1000] Text in some languages gets cut off at the bottom in composer on ios [HOLD for payment 2024-06-18] [HOLD for payment 2024-06-06] [HOLD #37374][$1000] Text in some languages gets cut off at the bottom in composer on ios Jun 11, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 11, 2024
Copy link

melvin-bot bot commented Jun 11, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jun 11, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.81-11 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-06-18. 🎊

For reference, here are some details about the assignees on this issue:

  • @fabOnReact requires payment (Needs manual offer from BZ)
  • @fedirjh requires payment (Needs manual offer from BZ)
  • @esh-g requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Jun 11, 2024

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:

  • [@fedirjh] The PR that introduced the bug has been identified. Link to the PR:
  • [@fedirjh] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@fedirjh] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@fedirjh] Determine if we should create a regression test for this bug.
  • [@fedirjh] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@miljakljajic] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 13, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-18] [HOLD for payment 2024-06-06] [HOLD #37374][$1000] Text in some languages gets cut off at the bottom in composer on ios [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [HOLD for payment 2024-06-06] [HOLD #37374][$1000] Text in some languages gets cut off at the bottom in composer on ios Jun 13, 2024
Copy link

melvin-bot bot commented Jun 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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-06-20. 🎊

For reference, here are some details about the assignees on this issue:

  • @fabOnReact requires payment (Needs manual offer from BZ)
  • @fedirjh requires payment (Needs manual offer from BZ)
  • @esh-g requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Jun 13, 2024

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:

  • [@fedirjh] The PR that introduced the bug has been identified. Link to the PR:
  • [@fedirjh] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@fedirjh] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@fedirjh] Determine if we should create a regression test for this bug.
  • [@fedirjh] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@miljakljajic] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@miljakljajic
Copy link
Contributor

C+ and C paid

@fedirjh
Copy link
Contributor

fedirjh commented Jun 22, 2024

@miljakljajic I wasn't yet paid for this one, can I decline Upwork offer and request payment in newDot?

@fedirjh
Copy link
Contributor

fedirjh commented Jul 6, 2024

@miljakljajic friendly bump. I have accepted upwork offer and am still awaiting the payment.

@miljakljajic
Copy link
Contributor

Sorry for missing this @fedirjh - its all paid now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Internal Requires API changes or must be handled by Expensify staff Weekly KSv2
Projects
No open projects
Archived in project