-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Truncate long items in the SelectionList #32532
Truncate long items in the SelectionList #32532
Conversation
hi @s77rt,
|
@abzokhattab Please add the tooltip. It should be similar to that of UserListItem |
Okay done, the screenshots were updated. |
On Android the text does not take the full available space, but that bug is being worked on here #21219 thus it's not a blocker |
Reviewer Checklist
Screenshots/Videos |
67285ec
to
fc196c5
Compare
@abzokhattab 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.
One last change
835fe23
to
b1a49ed
Compare
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.
The modified components are used in more places than the workspace list, right?
If so, can you add some tests to the description of the PR testing those other places please?
Then please ping me to merge this
Okay @iwiznia I added some other tests. |
✋ 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/iwiznia in version: 1.4.11-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.11-25 🚀
|
isUserItem || item.isSelected ? styles.sidebarLinkTextBold : null, | ||
styles.pre, | ||
]} | ||
alternateTextStyles={[styles.optionAlternateText, styles.textLabelSupporting, isFocused ? styles.sidebarLinkActiveText : styles.sidebarLinkText, styles.pre]} |
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.
The order of styles matter. We used to have styles.textLabelSupporting
passed last so a font size of 13px is applied. But now with the new order another font size is being applied. This caused a regression (partly) #32614
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.
Oh, didn't notice it, should I create a PR to fix it?
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.
Yes please
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
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 is fixed already
Details
Fixed Issues
$ #32384
PROPOSAL: #32384 (comment)
Tests
...
Besides the previous test, All lists using SelectionList should truncate long items.
We can check a few of each type (single selection and multiple selection) to make sure both list items are functioning correctly:
Profile->timezone
Profile -> Pronouns
Workspace -> Members
Workspace -> Members -> Invite
Workspace -> Settings -> currency
Offline tests
...
Besides the previous test, All lists using SelectionList should truncate long items.
We can check a few of each type (single selection and multiple selection) to make sure both list items are functioning correctly:
Profile->timezone
Profile -> Pronouns
Workspace -> Members
Workspace -> Members -> Invite
Workspace -> Settings -> currency
QA Steps
...
Besides the previous test, All lists using SelectionList should truncate long items.
We can check a few of each type (single selection and multiple selection) to make sure both list items are functioning correctly:
Profile->timezone
Profile -> Pronouns
Workspace -> Members
Workspace -> Members -> Invite
Workspace -> Settings -> currency
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
MacOS: Desktop