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

enhance(ai-help): improve stopped state #10580

Merged
merged 6 commits into from
Feb 29, 2024
Merged

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Feb 23, 2024

Summary

(MP-867)

Problem

When the user presses "Stop answering", the only indication are three dots ("...") at the end of the answer, and the icon before "Answer:" is still blinking.

Solution

Add a separate line that says "Stopped answering", change "Answer:" to "Answer (stopped):" and make sure the icon doesn't blink.


Screenshots

Before

image

After

image

How did you test this change?

Asked the first example question and pressed "Stop answering" as soon as the answer started to appear.

@caugner caugner requested a review from a team as a code owner February 23, 2024 16:09
@github-actions github-actions bot added plus work around features related to MDN Plus plus:ai-help merge conflicts 🚧 Please rebase onto or merge the latest main. labels Feb 23, 2024
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot removed the merge conflicts 🚧 Please rebase onto or merge the latest main. label Feb 28, 2024
Copy link
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -159,6 +159,7 @@ $mdn-theme-light-text-active: #{$mdn-color-neutral-50};
$mdn-theme-light-text-inactive: #{$mdn-color-neutral-40}a6;
$mdn-theme-light-text-link: $mdn-color-light-theme-blue-60;
$mdn-theme-light-text-invert: $mdn-color-white;
$mdn-theme-light-text-muted: #6f6f6f;
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I wouldn't add further sass variables if we don't need them anywhere, just define the css variable directly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll keep it, as I had wanted to use this color in other circumstances before (being familiar with Bootstrap).

@caugner caugner merged commit 8c988be into main Feb 29, 2024
15 checks passed
@caugner caugner deleted the improve-ai-help-stopped-state branch February 29, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plus:ai-help plus work around features related to MDN Plus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants