Skip to content
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

Merged
merged 9 commits into from
Jan 22, 2025

Conversation

wanglam
Copy link
Collaborator

@wanglam wanglam commented Jan 21, 2025

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
    image

  • application header less than 1200
    image

  • In normal header
    image

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test.
  • New functionality has user manual doc added.
  • Commits are signed per the DCO using --signoff.

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.

Comment on lines 23 to 27
@media (max-width: 1200px) {
&.in-singleline-header{
display: none;
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

display: flex;
align-items: center;
position: relative;
width: 200px;
Copy link
Member

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?

Copy link
Collaborator Author

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?

Copy link
Member

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.

Copy link
Collaborator Author

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.

@wanglam wanglam changed the title [DO NOT MERGE]Chatbot entry UI redesign Chatbot entry UI redesign Jan 22, 2025
@wanglam wanglam added backport 2.x Trigger the backport flow to 2.x v2.19.0 labels Jan 22, 2025
@wanglam wanglam merged commit b5d0df6 into opensearch-project:main Jan 22, 2025
15 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

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 base branch is 2.x and the compare/head branch is backport/backport-396-to-2.x.

@wanglam wanglam added backport 2.x Trigger the backport flow to 2.x and removed backport 2.x Trigger the backport flow to 2.x labels Jan 22, 2025
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 22, 2025
* 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
wanglam pushed a commit that referenced this pull request Jan 22, 2025
* 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>
hutiechuan pushed a commit to hutiechuan/dashboards-assistant that referenced this pull request Jan 24, 2025
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Trigger the backport flow to 2.x v2.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants