RI-7690 Rework the visuals of the Redis Copilot screens #5140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Update the visual of the Redis Copilot:
How it was tested
When not logged in
Expect to see the login form and be able to sign in to your account.
When you're not connected to a database
You should see an informative tooltip to let you know that you should open a database first.
Welcome message by the bot
If you're already logged in, you should be able to see the welcome message provided by the bot
Consent popover for "General" chat
A confirmation popover should appear on the screen.
Consent popover for "My Data" chat
A confirmation popover should appear on the screen.
Chat with the bot
You should be able to see your own message and a response from the bot.
Tips popover
A popover should appear with a link to the tutorials section
Restart Session
A confirmation popover should appear with an option to clear the existing chat history.
Failed messages
I'm not sure how to simulate real-world error, so I had to force it programmatically by changing the following line in
src/components/side-panels/panels/ai-assistant/components/shared/chat-history/ChatHistory.tsxOriginal
Force error
Note: The error state uses a transparent chat bubble and icon indicator that something failed.