-
Notifications
You must be signed in to change notification settings - Fork 8
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
Added new slots for the spright-chat-message to allow adding action buttons and follow-up prompts #2552
Conversation
The action controls provide "actions" that can be done to the chat-message like copying and thumbs up/down.
Action buttons on outbound messages appear on the left side when hovering over the message row
* main: Created Blazor wrapper for nimble-rich-text-viewer component (#2544)
* main: applying package updates [skip ci] Migrate to `@ni/fast-*` packages (#2550)
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.
Mostly looked at the spec and the docs, not the implementation yet
packages/storybook/src/spright/chat/conversation/chat-conversation.stories.ts
Show resolved
Hide resolved
packages/storybook/src/spright/chat/conversation/chat-conversation.stories.ts
Outdated
Show resolved
Hide resolved
packages/storybook/src/spright/chat/conversation/chat-conversation-matrix.stories.ts
Outdated
Show resolved
Hide resolved
packages/storybook/src/spright/chat/conversation/chat-conversation-matrix.stories.ts
Outdated
Show resolved
Hide resolved
packages/blazor-workspace/Examples/Demo.Shared/Pages/ComponentsDemo.razor
Show resolved
Hide resolved
packages/storybook/src/spright/chat/conversation/chat-conversation-matrix.stories.ts
Outdated
Show resolved
Hide resolved
packages/storybook/src/spright/chat/conversation/chat-conversation.stories.ts
Outdated
Show resolved
Hide resolved
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 pushed updates to the styles and tests. I still need to re-verify the storybook and chromatic diffs; I'll reset owners tomorrow once it looks good.
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.
Looks great!
Pull Request
🤨 Rationale
UX design calls for adding action buttons to chat messages to allow user to edit prompts and provide feedback on AI responses.
Also, messages can have suggested follow-up button prompts and those should be below the action buttons.
👩💻 Implementation
footer-actions
andend
to allow adding buttons below the message.🧪 Testing
New matrix test
✅ Checklist