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
| 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.
This will truncate e.g. room names too, we want to set this for threads only.
There was a problem hiding this comment.
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.
Yeah I think that makes sense!
There was a problem hiding this comment.
Working on that now
There was a problem hiding this comment.
@jjcoffee I updated apologies for the delay, can you check the latest changes ? I will upload videos after you approve these changes, 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 😄 |
|
✋ 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
MacOS: Chrome / Safari
MacOS: Desktop
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari