-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat(misunderstood): add support for all types of messages #5731
Conversation
DEV-2077 [FEATURE] Misunderstood - Custom component support
We currently don't support custom component in the ui messages. Who ever is going to work on this, custom components are located in the window element. |
modules/misunderstood/src/views/full/MainScreen/ChatPreview.tsx
Outdated
Show resolved
Hide resolved
border: 1px solid #ccc; | ||
|
||
p { | ||
margin: 0; |
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.
Somehow bootstrap was adding a margin to the p element that was causing the text inside each bubbles to be wrongly aligned.
3fa526e
to
53a4ee7
Compare
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.
Tested and working good job 👍
// TODO: Add translation and move this logic into the @botpress/messaging-components lib | ||
if (message.type === 'session_reset') { | ||
return <div className={style.chatPreviewMessage_System}>Reset the conversation</div> | ||
} |
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.
Is this todo still valid?
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.
@samuelmasse I think so. It might be nice to have a way to display conversation reset using the library. What do you think?
Description
This PR adds support for all types of messaging to the misunderstood module by using the
@botpress/messaging-components
library.Closes DEV-2077
Type of change
Missing
Screenshots