-
Notifications
You must be signed in to change notification settings - Fork 33
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
Chatbot entry UI redesign #396
Chatbot entry UI redesign #396
Conversation
Signed-off-by: Lin Wang <[email protected]>
Signed-off-by: Lin Wang <[email protected]>
Signed-off-by: Lin Wang <[email protected]>
public/index.scss
Outdated
@media (max-width: 1200px) { | ||
&.in-singleline-header{ | ||
display: none; | ||
} | ||
} |
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.
Nit: seems we can leverage https://oui.opensearch.org/1.19/#/utilities/css-utility-classes#responsive .
display: flex; | ||
align-items: center; | ||
position: relative; | ||
width: 200px; |
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.
Should it be max-width?
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.
Do you mean it should be shrink in small screens?
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 don't know, in terms of responsive I thought max-width would be more suitable. But I do not have much context on this style.
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.
Let me leave a comment to UX team. There is no related responsive design for screen width 1200px.
Signed-off-by: Lin Wang <[email protected]>
Signed-off-by: Lin Wang <[email protected]>
Signed-off-by: Lin Wang <[email protected]>
Signed-off-by: Lin Wang <[email protected]>
Signed-off-by: Lin Wang <[email protected]>
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/dashboards-assistant/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/dashboards-assistant/backport-2.x
# Create a new branch
git switch --create backport/backport-396-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b5d0df6ee50ac374f6eefd7821284b49acac7699
# Push it to GitHub
git push --set-upstream origin backport/backport-396-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/dashboards-assistant/backport-2.x Then, create a pull request where the |
* Chatbot entry UI redesign Signed-off-by: Lin Wang <[email protected]> * Add changelog for chatbot entry redesign Signed-off-by: Lin Wang <[email protected]> * Fix failed UTs Signed-off-by: Lin Wang <[email protected]> * Use unified responsive breakpoints Signed-off-by: Lin Wang <[email protected]> * Change to use registerHeaderRight Signed-off-by: Lin Wang <[email protected]> * Change to use registerPrimaryHeaderRight Signed-off-by: Lin Wang <[email protected]> * Show graident icon when focus Signed-off-by: Lin Wang <[email protected]> --------- Signed-off-by: Lin Wang <[email protected]> (cherry picked from commit b5d0df6) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
* Chatbot entry UI redesign Signed-off-by: Lin Wang <[email protected]> * Add changelog for chatbot entry redesign Signed-off-by: Lin Wang <[email protected]> * Fix failed UTs Signed-off-by: Lin Wang <[email protected]> * Use unified responsive breakpoints Signed-off-by: Lin Wang <[email protected]> * Change to use registerHeaderRight Signed-off-by: Lin Wang <[email protected]> * Change to use registerPrimaryHeaderRight Signed-off-by: Lin Wang <[email protected]> * Show graident icon when focus Signed-off-by: Lin Wang <[email protected]> --------- Signed-off-by: Lin Wang <[email protected]> (cherry picked from commit b5d0df6) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Chatbot entry UI redesign Signed-off-by: Lin Wang <[email protected]> * Add changelog for chatbot entry redesign Signed-off-by: Lin Wang <[email protected]> * Fix failed UTs Signed-off-by: Lin Wang <[email protected]> * Use unified responsive breakpoints Signed-off-by: Lin Wang <[email protected]> * Change to use registerHeaderRight Signed-off-by: Lin Wang <[email protected]> * Change to use registerPrimaryHeaderRight Signed-off-by: Lin Wang <[email protected]> * Show graident icon when focus Signed-off-by: Lin Wang <[email protected]> --------- Signed-off-by: Lin Wang <[email protected]>
Description
This PR is for redesign the chatbot entry according the latest UI design. This PR using a new nav control slot which not been merged in OSD.
The chatbot entry will be a button icon when screen width less than 1200 and in application header.
Screenshots
application header greater and equal 1200

application header less than 1200

In normal header

Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.