[HOLD for payment 2021-11-04] Login - Long Email is cut off for a Welcome Page
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:
- Lunch the app
- Enter a new account with long email which hasn't been validated
- Click Continue
Expected Result:
Long Email is fully visible for a Welcome Page
Actual Result:
Long Email is cut off for a Welcome Page
Workaround:
n/a
Platform:
- Web
- iOS
- Android
- Desktop App
- Mobile Web
**Version Number:1.1.8-0
**Reproducible in staging?:Y
**Reproducible in production?:Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
**Issue reported by:Applause
Slack conversation:
Triggered auto assignment to @flaviadefaria (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Triggered auto assignment to @francoisl (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Proposal
-
Fix Login Text on the
ResendValidationForm. https://github.com/Expensify/App/blob/5b3baae12e3a3695d0439e1a54ef4e536866c750/src/pages/signin/ResendValidationForm.js#L115 -
We just need to add
numberOfLinesand it will be trimmed with an ellipsis.
<Text style={[styles.textStrong]} numberOfLines={1}>
{login}
</Text>
OR
If we want to wrap this text.
then we have to wrap the Text in a View with flex:1.
<View style={[styles.flex1]}>
<Text style={[styles.textStrong]}>
{login}
</Text>
</View>
Triggered auto assignment to @dylanexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Getting posted NOW
Internal: https://www.upwork.com/ab/applicants/1450770992699342848/job-details External: https://www.upwork.com/jobs/~01644481d603264770
Triggered auto assignment to @johnmlee101 (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Solution Proposal
If wanting the text to be wrapped to the next line, "flex" can be used like so;
<Text style={[styles.textStrong, {flex: 1} ]}>
{login}
</Text>
If wanting the text to be cut off at the edge of the screen with an ellipsis afterwards, "numberOfLines" can be used like so;
<Text style={[styles.textStrong]} numberOfLines={1}>
{login}
</Text>
@parasharrajat Your solution for wrapping (not ellipsis trimming) looks good! Assigning to you now.
@johnmlee101 am I good to hire?
Yes!
done! cc @parasharrajat
Issue not reproducible during KI retests. (First Week)
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.10-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
- https://github.com/Expensify/App/pull/5961
- https://github.com/Expensify/App/pull/5961
If no regressions arise, payment will be issued on 2021-11-04. :confetti_ball:
Issue not reproducible during KI retests. (Second week)
Paid out job, ended contract, and closed out job posting!