-
Notifications
You must be signed in to change notification settings - Fork 913
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
[BUG] fix suggestion list cutoff issue #2607
Conversation
84f5db8
to
4fa3e08
Compare
This is a quick fix for the bug to improve current cx usage experience. This is not a permanent fix for suggestion list cutoff behavior. |
Codecov Report
@@ Coverage Diff @@
## main #2607 +/- ##
==========================================
- Coverage 66.81% 66.81% -0.01%
==========================================
Files 3207 3207
Lines 61136 61136
Branches 9313 9313
==========================================
- Hits 40851 40849 -2
- Misses 18055 18056 +1
- Partials 2230 2231 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
From the screenshot, longer strings that are cutoff still look okay to me. Suggestions arent expected to be complete and having a horizontal scrollbar in the suggestion window is not good ux.
3b0bc82
to
1ef5bc8
Compare
+1, also I wonder if this intentional behavior? Like if hover over and it shows the full string. Is there intention that we can add features here |
I would +1 that this is an acceptable fix. Honestly, if there are features added, I would expect that they would automatically take up space on the left or right, so having the width of the container to be automatic with a max-width of 100% still makes sense to me. I think the only item I would add here is that it would be useful to see a truncation elipsis at the end of the cutoff, but that can be explored in a subsequent follow-up. (As far as I know these items are not selectable in their current form, click just loads the string into the search box and then users can select from there, so this feels like a preview that's intended to truncate, and somewhere a max-width got introduced that artificially constrains 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.
tl;dr: LGTM 🚀
1ef5bc8
to
b106741
Compare
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom. However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior. Issue resolved: opensearch-project#2555 Signed-off-by: Anan Zhuang <[email protected]>
b106741
to
fb8b205
Compare
I changed the fix to allow ellipsis shown at the bottom. Also update commit msg. Thanks for @AMoo-Miki 's idea! |
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
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-1.x 1.x
# Navigate to the new working tree
cd .worktrees/backport-1.x
# Create a new branch
git switch --create backport/backport-2607-to-1.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 195cc8ef39e0399b50da8e48afd5cc7df20ac81f
# Push it to GitHub
git push --set-upstream origin backport/backport-2607-to-1.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-1.x Then, create a pull request where the |
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom. However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior. Issue resolved: #2555 Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Anan Zhuang <[email protected]> (cherry picked from commit 195cc8e)
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom. However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior. Issue resolved: opensearch-project#2555 Backport PR: opensearch-project#2607 Signed-off-by: Anan Zhuang <[email protected]>
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom. However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior. Issue resolved: opensearch-project#2555 Backport PR: opensearch-project#2607 Signed-off-by: Anan Zhuang <[email protected]>
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom. However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior. Issue resolved: #2555 Backport PR: #2607 Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Anan Zhuang <[email protected]>
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom. However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior. Issue resolved: #2555 Backport PR: #2607 Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Anan Zhuang <[email protected]> (cherry picked from commit ba3e01f)
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom. However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior. Issue resolved: #2555 Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Anan Zhuang <[email protected]> (cherry picked from commit 195cc8e) Co-authored-by: Anan Zhuang <[email protected]>
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom. However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior. Issue resolved: #2555 Backport PR: #2607 Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Anan Zhuang <[email protected]> (cherry picked from commit ba3e01f) Co-authored-by: Anan Zhuang <[email protected]>
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom. However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior. Issue resolved: opensearch-project#2555 Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Sergey V. Osipov <[email protected]>
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom. However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior. Issue resolved: opensearch-project#2555 Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Arpit Bandejiya <[email protected]>
Description
In this PR, we fixed the suggestion list cutoff in an easy way. We remove width 250px and add block display to allow browser to select a width and add ellipsis at the bottom.
However, we might have longer input that can't fit into the search. When we truncate the search, the elements look the same which might be still an issue for customer usage. We definitely need more feedbacks on the cutoff behavior.
Issue resolved:
#2555
Previous:
Current:
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr