feat(chat-messages): add follow-up prompts#2082
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces follow-up prompts to the SiChatInputComponent, enabling users to select suggested actions that populate the chat input field. The implementation includes new input and output signals, template updates for rendering prompt buttons, and corresponding documentation and styling. Feedback from the review suggests using $index for tracking in the @for loop to avoid issues with duplicate strings, disabling prompt buttons while a message is being sent, and ensuring the textarea height is recalculated after a prompt is selected.
f3d97be to
0ff44dd
Compare
|
@panch1739 check this out :) |
panch1739
left a comment
There was a problem hiding this comment.
@robertwilde Nice! One only note, the button should have a total height of 32px and the gap between them, 8px :)
Thank you so much!
c8c7230 to
b0f5be7
Compare
e9edffa to
a5db26e
Compare
a5db26e to
808930a
Compare
808930a to
fefb7aa
Compare
Closes #2066
Adds follow-up prompt support to SiChatInputComponent. A new followUpPrompts input (string[]) renders suggested next actions as pill buttons above the chat input; clicking a prompt inserts its text into the input field and emits a followUpPromptSelected output so the consuming application can react (e.g. clear the list). The si-chat-container example is updated to demonstrate the feature with three realistic prompts. Documentation is updated in both the chat input component page and the AI chat pattern page.
Documentation.
Examples.
Dashboards Demo.
Playwright report.
Coverage Reports: