-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Send box renderer #3532
Send box renderer #3532
Conversation
Thanks for the PR!!
I'll take a closer look at this sometime this week. |
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.
This will need to be updated to use the middleware format rather than the deprecated renderer format. Please address that and above requests as well. :)
@compulim feel free to add. Do you think this is a good middle step while we wait for the new sendbox design?
@@ -82,9 +85,11 @@ const BasicWebChat = ({ className }) => { | |||
export default BasicWebChat; | |||
|
|||
BasicWebChat.defaultProps = { | |||
className: '' | |||
className: '', | |||
sendBoxRenderer: undefined |
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.
Rather than renderer, this will need to be changed to sendBoxMiddleware
.
https://github.com/microsoft/BotFramework-WebChat/tree/master/packages/component/src/Middleware
I added a new issue to get rid of our deprecations to reduce confusion: #3534
@compulim, do you have thoughts?
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've changed the name of the prop.
"Middleware" implies that can it can be inserted in between existing logic.
This prop is very much an alternative route that can be used, once used it can't pass on to existing logic.
Having said that, do you still feel this is the correct name for the prop?
Or did you mean my solution should be a middleware and I have to change my implementation?
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.
The implementation should be middleware. :) I think there are other considerations that @compulim would like to comment on as well. Pinging him.
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.
@compulim is the change satisfactory?
fix tests with new snapshots
I've updated the snaps but the CI still fails. How do I check why my CI is failing? |
@felixvanleeuwen thanks for the updates! Unfortunately non-internal developers are unable to check the CI. Some of them are DL timeouts, so I'm rerunning right now and after that I'll make a list of the failing tests. Thanks for your patience. |
@compulim ping |
Any news on the failing CI? |
@compulim Is this how you imagined it? |
@felixvanleeuwen Thanks for the updates! FYI, compulim is currently on vacation and will be unavailable for a few weeks. Since he wanted to go through the code, I'll go through and possibly leave a few comments, but we'll wait until he's back for the approval. We just finished a release milestone, and our next is scheduled for next year, so presumably we'll still be able to get this into the next release. Thanks for your patience! |
|
||
# Test out the hosted sample | ||
|
||
- [Try out MockBot](https://microsoft.github.io/BotFramework-WebChat/02.branding-styling-and-customization/j.enable-emoji) |
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.
Update URL
You don't need to do this immediately, since there will be frequent changes to Please also add this sample to the /samples/README.md table. Thanks again :) |
Hello, is there anything blocking about this PR still? |
Hello? |
Hi @felixvanleeuwen sorry I missed your reply. We still need @compulim to do a pass review, but there are still issues unaddresed above that should be fixed. Please take a look at those. |
I think all of the issues have been addressed. |
Reopening - I'm assuming close was unintentional :) Please let me know if not. |
Sorry for bringing up this PR again, but is there still any interest in being able to implement a custom search box? From a developers perspective it makes perfect sense to have a middleware for this just like we have for all other crucial parts of the UI. Or is there some sample of solving it with current tools, as I saw that there's a |
Obsoleted by #5120. |
Description
Added a prop that is sent down into
BasicWebChat
and is used to render the send box if not undefined.Specific Changes
Added a prop to
BasicWebChat
defaultProps
.Added a check in the
BasicWebChat
render to use the new prop instead of rendering theBasicSendBox
Review Checklist
z-index
)package.json
andpackage-lock.json
reviewed