-
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
Fix: Room name displayed truncated on header and details when using long name & Limit thread heading to two lines #53553
Conversation
src/pages/ReportDetailsPage.tsx
Outdated
@@ -744,6 +744,7 @@ function ReportDetailsPage({policies, report, route, reportMetadata}: ReportDeta | |||
description={!shouldDisableRename ? roomDescription : ''} | |||
furtherDetails={chatRoomSubtitle && !isGroupChat ? additionalRoomDetails : ''} | |||
onPress={() => Navigation.navigate(ROUTES.REPORT_SETTINGS_NAME.getRoute(report.reportID, backTo))} | |||
numberOfLinesTitle={2} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will truncate e.g. room names too, we want to set this for threads only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay so you mean that if isThread
is true we should pass 2 other cases should default to 0, am i understanding this right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think that makes sense!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working on that now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jjcoffee I updated apologies for the delay, can you check the latest changes ? I will upload videos after you approve these changes, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Signed-off-by: GitHub <noreply@github.com>
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@dukenv0307 , please ignore the ping @jjcoffee will review this one |
Reviewer Checklist
Screenshots/Videos |
@jjcoffee checklist updated thanks 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.0.73-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.73-8 🚀
|
Explanation of Change
Fixed Issues
$ #53308
PROPOSAL: N/A
Tests
Same as QA
Offline tests
Same as QA
QA Steps
Test 1:
Open App > Tap on FAB and select "Create Chat" > Tap on "Room"
Create a long name for the room (More than 50 characters) and save it
Go to the room details page
Verify that the Room name is displayed in full on details page, despite using a name with more than 50 characters
Test 2:
Open App > Tap on FAB and select "Create Chat"
Enter few random email addresses and add them to group
Create a group
Go to the group details page
Verify that the group name is not truncated
Test 2:
Open App > Go to any chat > Type a really long message
Click on the message and open the thread
Go to the thread details page
Verify that the thread title is not more than 2 lines and is truncated if it has more text.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
MacOS: Chrome / Safari
MacOS: Desktop
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari