-
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 #53041
Conversation
Reviewer Checklist
Screenshots/Videos |
src/components/MenuItem.tsx
Outdated
@@ -469,6 +469,7 @@ function MenuItem( | |||
interactive && disabled ? {...styles.userSelectNone} : {}, | |||
styles.ltr, | |||
isDeleted ? styles.offlineFeedback.deleted : {}, | |||
styles.breakWord, |
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.
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 👍 |
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.
@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 ? |
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, 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/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 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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Room:Group:
MacOS: Desktop