Closed bhaktatejas922 closed 9 months ago
This update introduces the feature of suggested questions to the chat widget. It allows users to select from a list of pre-defined questions, enhancing user experience and interaction. The changes span across multiple files, including updates to state management, event handling, and UI rendering.
File | Summary |
---|---|
public/index.html |
Added a new attribute suggested_questions to the lingtual-chat element. |
src/chatWidget/.../index.tsx |
Introduced a new type suggestion , updated props, state variables, and functions in the ChatWindow component to handle suggested questions. |
src/chatWidget/index.tsx |
Included a suggested_questions prop in the ChatWidget component and added styles for better UI. |
src/index.tsx |
Added a suggested_questions property to the configuration object of the lingtual-chat custom element. |
🐇💻
"In the land of code, where logic is king, A rabbit hopped forth, a new feature to bring. With a twitch of his nose, and a tap of his paw, He added suggestions, leaving all in awe. Now users can choose, from questions galore, Making their chats, easier than before. So here's to the rabbit, with his code so neat, His updates are truly, a remarkable feat!" 🎉🥕
Summary by CodeRabbit
Release Notes
suggested_questions
attribute to thelingtual-chat
element inpublic/index.html
. This allows users to provide an array of suggested questions for the chat widget.ChatWindow
andChatWidget
components insrc/chatWidget/chatWindow/index.tsx
andsrc/chatWidget/index.tsx
respectively. These updates include new state variables and functions to handle suggested questions, enhancing user interaction with the chat widget.video
andcl-input_container_wrapper
classes insrc/chatWidget/index.tsx
.