-
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
[$500] Address– Address is cut off on Personal details page when add Address line 2 #34670
Comments
Triggered auto assignment to @sakluger ( |
Job added to Upwork: https://www.upwork.com/jobs/~0164e2537cc6e5df1e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
ProposalPlease re-state the problem that we are trying to solve in this issueAddress is cut off on Personal details page when add Address line 2. What is the root cause of that problem?Note: this is an Android specific issue, not reproducing on other platforms. This happens when address line 2 is a long string without spaces, since the App/src/components/MenuItem.tsx Lines 302 to 304 in 4b7b8f2
What changes do you think we should make in order to solve the problem?Change What alternative solutions did you explore? (Optional)Alternatively if we really wanna keep it on 1 line we can add titleStyle={styles.flex1} only to the address field of |
ProposalPlease re-state the problem that we are trying to solve in this issue.Address field in personal details page not taking available width What is the root cause of that problem?The issue is similar to #25561. The MenuItem component has a flexShrink1 which causes the Address field to not take up the entire available width. App/src/components/MenuItem.tsx Line 304 in 4b7b8f2
What changes do you think we should make in order to solve the problem?Adding App/src/pages/settings/Profile/PersonalDetails/PersonalDetailsInitialPage.js Lines 93 to 98 in 4b7b8f2
<MenuItemWithTopDescription
title={PersonalDetailsUtils.getFormattedAddress(props.privatePersonalDetails)}
description={props.translate('privatePersonalDetails.address')}
shouldShowRightIcon
// Add title style
titleStyle={[styles.flex1]}
onPress={() => Navigation.navigate(ROUTES.SETTINGS_PERSONAL_DETAILS_ADDRESS)}
/> Result
What alternative solutions did you explore? (Optional)None |
Updated proposal
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Address is cut off on Personal details page when add Address line 2 What is the root cause of that problem?The MenuItem title has
And I'd guess many more to come in the future if we don't fix it properly. What changes do you think we should make in order to solve the problem?In previous issues with the same root cause, we fix it case by case by adding the We could add So I'd propose to make a global fix without the regression:
(Notice it's the same condition as here, we should use the
This will make sure to fix this issue once and for all, and no regression. What alternative solutions did you explore? (Optional)NA |
I'm asking in Slack (https://expensify.slack.com/archives/C066HJM2CAZ/p1706051813981559) if we should prioritize fixing this bug, as it seems like it may be a rare edge case and doesn't impact users too badly. |
I will be able to review the issue only in the weekend. Please re-assign the issue in case of urgency. |
@sakluger I think this is happening in many other places of the app. There has been 3 issues based on this same root cause being opened before (as listed here), so we might want to fix it once and for all, my solution will do that. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@sakluger, @sobitneupane Eep! 4 days overdue now. Issues have feelings too... |
No response yet from the team, I asked again if we want to fix this bug. @sobitneupane I removed you for now, I can re-add a C+ depending on what the team decides. |
Issue not reproducible during KI retests. (First week) |
The team agrees that this is a major edge case - I'm not sure if there would ever be a single-word entry that long on the second address line. Closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.26-1
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:
Action Performed:
Expected Result:
Address field on Personal details page should not be cut-off
Actual Result:
Address is cut off on Personal details page when add Address line 2
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6345675_1705518638855.az_recorder_20240117_173740.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: