-
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
[$2000] Unnecessary new lines created when user mentions a contact #21615
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
I can reproduce this, but am not 100% convinced this is a bug. The mention does break into multiple lines with extra space. But then if you type on one of the middle lines, it fills out the extra space. 2023-06-26_16-28-45.mp4 |
Discussing here |
Discussed here, and this is a bug, since it only happens with mentions. |
Job added to Upwork: https://www.upwork.com/jobs/~01c301c436377b47aa |
Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Waiting for proposals |
Same |
Still waiting for proposals. |
Same |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Upwork job price has been updated to $2000 |
Bumped price as there have been no proposals here thus far. Also just highlighted this in Slack. |
Still pending proposals. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Text in composer wraps early even when there is enough white space available towards right What is the root cause of that problem?Native TextInput component on Android uses 'highQuality' line break strategy. This strategy scans the entire paragraph and wraps the multi line text for better readability. That's the reason it breaks the email '[email protected]' early when it encounters a series of number after the text. This behaviour is also annoying when user tries to delete characters from the end of the long string as the text wrapping keeps on changing with each character being removed. What changes do you think we should make in order to solve the problem?The BaseTextInput component extends the RNTextInput which is basically a wrapper over TextInput component from ReactNative. We need to set the prop `textBreakStrategy' as 'simple' to this 'RNTextInout' component, so that all instances of TextInput used within the app will have simple break strategy. This is an Android only prop which maps to the native lineBreakStrategy prop on Android. Make change at the below line App/src/components/RNTextInput.js Line 23 in e825aa7
function RNTextInput(props) {
return (
<AnimatedTextInput
allowFontScaling={false}
// Add this prop
textBreakStrategy="simple"
...
/> Before After What alternative solutions did you explore? (Optional)None |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @aswin-s 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @Nathan-Mulugeta 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
Accepted the offer and raised PR. |
Sounds good! |
PR is deployed to production. Melvin doesn't seem to care. |
@joekaufmanexpensify All good from my side. |
|
@joekaufmanexpensify All is good. Checklist provided above ^ |
@joekaufmanexpensify PR was merged within 3 days of assignment. Is speed bonus applicable here? |
Switching to this to daily so I can organize the payment next steps. I will look into the applicability of urgency bonus here as well. |
Okay, we discussed in the above thread and confirmed this is eligible for a speed bonus. So we need to make the following payments:
|
@aswin-s $3000 sent and contract ended! |
Hey @joekaufmanexpensify The reporting bonus for this one is based on the previous bounty since this issue was opened before the adjustment |
@s77rt $3000 sent and contract ended! |
Ah, good call. Let me double check the timing on that! |
Okay, yep. Reporting will be $250, since this was reported before August, 30th. |
Great thanks |
@Nathan-Mulugeta $250 sent and contract ended! |
Bug is fixed, and all payment issued. Closing as this is all set. Thanks everyone! |
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:
Expected Result:
Extra new lines should not be created since there is enough space inside the composer
Actual Result:
Extra new lines are created and app is not using the white space after the email.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.32-5
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
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.20230626.195148.New.Expensify.mp4
Screen_Recording_20230621_161514_New.Expensify.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687353655609189
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: