Skip to content

Updating submitSendBoxSaga.js to send sendBoxValue.trim()#2331

Merged
tdurnford merged 10 commits intomicrosoft:masterfrom
jimmyjames177414:patch-2
Aug 21, 2019
Merged

Updating submitSendBoxSaga.js to send sendBoxValue.trim()#2331
tdurnford merged 10 commits intomicrosoft:masterfrom
jimmyjames177414:patch-2

Conversation

@jimmyjames177414
Copy link
Copy Markdown
Contributor

@jimmyjames177414 jimmyjames177414 commented Aug 16, 2019

Suggested fix by @tdurnford for issue #2328
Sending questions with trailing spaces using enter fails to trim(). - fix included

Fixes #2328

Changelog Entry

Updating submitSendBoxSaga.js to send sendBoxValue.trim(), by @jimmyjames177414 in PR #2331

Description

Sending questions with trailing spaces using enter fails to trim(). - fix included

Suggested fix by tdurnford for issue microsoft#2330
Trimming sendBoxValue on enter key submit
@coveralls
Copy link
Copy Markdown

coveralls commented Aug 17, 2019

Coverage Status

Coverage decreased (-0.02%) to 66.35% when pulling 511f30c on jimmyjames177414:patch-2 into 3e353ec on microsoft:master.

@tdurnford
Copy link
Copy Markdown
Contributor

@jimmyjames177414 Can you also update the CHANGELOG.md file? Thank you for your contribution!

@jimmyjames177414 jimmyjames177414 changed the title Updating submitSendBoxSaga.js Updating submitSendBoxSaga.js to send sendBoxValue.trim() Aug 19, 2019
@msftclas
Copy link
Copy Markdown

msftclas commented Aug 19, 2019

CLA assistant check
All CLA requirements met.

@jimmyjames177414
Copy link
Copy Markdown
Contributor Author

Sounds great, I'll get right on it! Thank you for the opportunity!
It means the world to me.

Comment thread CHANGELOG.md Outdated
Removing incorrect reference to minor patch in the CHANGELOG.md
@tdurnford
Copy link
Copy Markdown
Contributor

@jimmyjames177414 Can you also remove setSendBox(sendBoxValue.trim()) from the SendButton and TextBox?

@jimmyjames177414
Copy link
Copy Markdown
Contributor Author

@tdurnford yep! I'll get right on it!

jimmyjames177414 and others added 3 commits August 19, 2019 11:48
Removing setSendBox(sendBoxValue.trim()) from SendButton.js
Removing setSendBox(sendBoxValue.trim()) from TextBox.js
Comment thread packages/component/src/SendBox/SendButton.js Outdated
Comment thread packages/component/src/SendBox/SendButton.js Outdated
corinagum and others added 2 commits August 19, 2019 11:05
Implementing @tdurnford's refactoring request for SendButton.js:
-Removing setSendBox and sendBoxValue from function declaration since it is no longer used.
-Since we are only making one function call in the click method, we are removing it and passing submitSendBox to the button's onClick handler.
Comment thread packages/component/src/SendBox/SendButton.js Outdated
@corinagum
Copy link
Copy Markdown
Contributor

@jimmyjames177414, thanks for your hard work so far. :) Just FYI, the CI is failing because there are linting errors. you can run the command npm run eslint in your console and see below:
image

Once these are fixed we can see if any tests are failing. Let us know if you have questions.

Correcting Lint errors in SendButton.js
@tdurnford
Copy link
Copy Markdown
Contributor

tdurnford commented Aug 21, 2019

Looks good to me! Thanks again for your help @jimmyjames177414! The Web Chat team really appreciates your contributions. If you are interested in contributing more, I highly recommend you take a look at our issues labeled "Help wanted" and "Good first bug".

@tdurnford tdurnford merged commit cb39597 into microsoft:master Aug 21, 2019
@jimmyjames177414
Copy link
Copy Markdown
Contributor Author

Woo hoo!
Thanks for all your patience and guidance with this pull request process!
I will definitely look into the "Help wanted" and "Good first bug" sections as soon as I get a chance.

@compulim compulim mentioned this pull request Oct 25, 2019
55 tasks
compulim added a commit to compulim/BotFramework-WebChat that referenced this pull request Oct 26, 2019
corinagum pushed a commit that referenced this pull request Oct 29, 2019
* Add test for #2331

* Add test for hiding scroll to bottom button

* Add test for YouTube full screen control

* Reliability

* Filter out DIRECT_LINE/CONNECT* actions

* Set payload.directLine to empty object

* Filter out payload.directLine

* Better filtering
@spyip spyip mentioned this pull request Nov 6, 2019
1 task
@compulim compulim mentioned this pull request Dec 10, 2019
73 tasks
@corinagum corinagum mentioned this pull request Dec 13, 2019
73 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sending questions with trailing spaces using enter fails to trim(). - fix included

5 participants