Fix: Room name displayed truncated on header and details when using long name#53041
Fix: Room name displayed truncated on header and details when using long name#53041chiragsalian merged 5 commits intoExpensify:mainfrom
Conversation
Reviewer Checklist
Screenshots/Videos |
src/components/MenuItem.tsx
Outdated
| interactive && disabled ? {...styles.userSelectNone} : {}, | ||
| styles.ltr, | ||
| isDeleted ? styles.offlineFeedback.deleted : {}, | ||
| styles.breakWord, |
There was a problem hiding this comment.
I think this needs to be an optional style since MenuItem is used across the app in many different ways.
This comment was marked as resolved.
This comment was marked as resolved.
|
@Expensify/design Just tagging you to take a quick look at this - we're removing the truncation of the room name on the details page (for both rooms and group chats). Also just wanted to check a bit of an edge case for group names. We currently only display the first 5 group members in the group name on the details page. Previously it was obvious that not all the members are showing since we an ellipsis (from the truncation), but now it's not really clear that that's what has happened. (When you go to edit the group name, all the members do show) |
Hmm, I'm kinda tempted to say we should just not worry about this specific situation... When a user creates a group, they have the opportunity to rename it before we actually create it right (screenshot below)? So we give them the opportunity to not make it crazy, and if they leave it crazy, I'm not sure we need to worry about it. Thoughts? |
|
That makes sense to me Danny, I can get down with that. |
|
Agree with that as well 👍 |
jjcoffee
left a comment
There was a problem hiding this comment.
@twilight2294 Please can you handle my comments, thanks!
|
sorry i didn't realise there was a comment, addressing now |
|
@jjcoffee can you re-review this one ? |
|
✋ 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/chiragsalian in version: 9.0.68-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.68-7 🚀
|














Explanation of Change
Fixed Issues
$ #52836
PROPOSAL: #52836 (comment)
Tests
Test 1:
Verify that the Room name is displayed in full on details page, despite using a name with more than 50 characters
Test 2:
Verify that the group name is not truncated
Offline tests
N/A
QA Steps
same as tests
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Room:Group:
MacOS: Desktop