-
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
Task description scroll #21553
Task description scroll #21553
Conversation
@allroundexperts 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] |
Reviewer Checklist
Screenshots/Videos |
@dhairyasenjaliya Do you know why we are being in-consistent here on native and web? Why are we showing a single line on native contrary to the web? |
Not sure but that's the way it was predefined on component across the app @allroundexperts |
Can you give an example of another component which has a similar behaviour? |
@shawnborton Is this inconsistency expected? |
Can you elaborate? I'm not sure what you mean. |
@shawnborton On native platforms we're showing task description in a single line only, while on web, we're showing whole description text. See the images below. Is this expected? Or should we show a single line on all platforms? |
I agree we should stay consistent. How about we truncate after 2 lines on all platforms? Also, is there a reason why these fields don't follow our standard push-to-page patterns? For example, if nothing is added to Assignee or Description, that label text becomes larger and aligns vertically in that row. cc @thienlnam @jasperhuangg any ideas what's going on there? |
@dhairyasenjaliya Instead of a scroll view, can you truncate the text so that it gets to 2 lines max? |
@allroundexperts sure actually thats i have proposed on solution 2 😅 will add that changes soon |
I believe that's currently the case where it is vertically aligned in the row - are you saying the label text should be larger here? There was a previous App PR that updated these inputs to use the same component Screen.Recording.2023-06-27.at.10.19.28.AM.mov |
In your screenshot, the labels with no value are too small. |
Created an issue to investigate that here: #21715 |
@allroundexperts @shawnborton can we confirm max number of line on description so that i can proceed |
@dhairyasenjaliya @shawnborton did mention that we want to truncate after 2 lines. |
Oh oky sure but for description multi line input i think we are allowing max 5 lines do we think we should add same or just add max 2 lines |
Let's show two lines as @shawnborton suggested for now and get his review. |
Alright mostly today i will add changes |
@allroundexperts added changes |
90fdce7
to
85db26c
Compare
@shawnborton Can you confirm if this is good enough? |
I also think the same @dhairyasenjaliya, but still want to wait for @jasperhuangg to be double sure. |
Let's move forward with this - those changes are about the task view when created and don't touch the creation flow that this does |
@allroundexperts removed Scroll & added max 2 line to display also steps and screenshot updated |
src/components/MenuItem.js
Outdated
@@ -80,7 +81,7 @@ function MenuItem(props) { | |||
props.shouldShowBasicTitle ? undefined : styles.textStrong, | |||
props.shouldShowHeaderTitle ? styles.textHeadlineH1 : undefined, | |||
props.interactive && props.disabled ? {...styles.disabledText, ...styles.userSelectNone} : undefined, | |||
styles.pre, | |||
styles.preWrap, |
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.
@dhairyasenjaliya Let's apply preWrap
only if props.numberOfLinesTitle
is more than 1
.
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.
done @allroundexperts
@dhairyasenjaliya In the PR description, can you remove |
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!
Done |
Code looks good, but there's conflicts -- sorry for delay, but one thing I wanted to ask is if we should set the number of lines to something greater than 2, eg 3 or 4. I think as long as we pick a number that isn't so high that the rest of the UI won't fit (which means the original problem won't be solved), even when the font is set to the highest setting, that should work. I don't feel that strongly about this, so if you think this is a premature optimization, we can go with 2 for now |
@shawnborton What's your opinion on number of lines? Should we increase those to 3 or maybe 4? |
@dhairyasenjaliya Please resolve the conflicts. |
Coming from this comment, given this task detailed view redesign, should we continue with this PR? |
@conorpendergrast I think the same thing is discussed here. The conclusion of the discussion was that we'll need this PR. |
@allroundexperts Excellent, thank you! |
ab50e09
to
f66f6d3
Compare
@allroundexperts @cead22 conflict resolved |
…into taskDescriptionScroll
Bump @cead22 @allroundexperts conflicts resolved again are we waiting for some input? |
Sorry, I missed @shawnborton 's original comment on this, so let's go with what we have |
✋ 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/cead22 in version: 1.3.38-0 🚀
|
@allroundexperts can you please check this is that a regression of this PR, "..." not added when you enter multi line with single word screen-recording-2023-07-08-at-15234-am_d0pbOiLc.mp4 |
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.38-7 🚀
|
Details
Fixed Issues
$ #21347
PROPOSAL: #21347 (comment)
Tests
Offline tests
Same as above
QA Steps
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
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
0a-54b540133dc8iOS
Android