Skip to content

Add messageBack support to suggested actions#1581

Merged
corinagum merged 8 commits intomicrosoft:masterfrom
corinagum:corinagum/messageBack
Jan 16, 2019
Merged

Add messageBack support to suggested actions#1581
corinagum merged 8 commits intomicrosoft:masterfrom
corinagum:corinagum/messageBack

Conversation

@corinagum
Copy link
Copy Markdown
Contributor

@corinagum corinagum commented Jan 11, 2019

Fix #1402

  • DirectLineJS has been bumped with messageBack support
  • Web Chat has been updated to allow messageBack suggested actions
  • Integration tests for Mock Bot's suggested-actions command have been added
  • image and title (what the button displays) are individually optional, but one or the other must be defined
  • displayText represents the optional response from the user when a suggested action is selected
  • text and value may be empty, in which case an empty suggested action is sent to the bot

image
Mock Bot with added suggested-actions
image
messageBack as JSON with display text.

@coveralls
Copy link
Copy Markdown

coveralls commented Jan 11, 2019

Pull Request Test Coverage Report for Build 760

  • 12 of 20 (60.0%) changed or added relevant lines in 9 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+3.0%) to 48.428%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/component/src/Utils/AdaptiveCardBuilder.ts 0 3 0.0%
packages/component/src/Attachment/AdaptiveCardRenderer.js 0 5 0.0%
Totals Coverage Status
Change from base Build 749: 3.0%
Covered Lines: 786
Relevant Lines: 1466

💛 - Coveralls

@corinagum corinagum changed the title [WIP] Add messageBack support to suggested actions Add messageBack support to suggested actions Jan 14, 2019
@corinagum corinagum force-pushed the corinagum/messageBack branch from acbd369 to 4d0f32f Compare January 14, 2019 17:49
Copy link
Copy Markdown
Contributor

@compulim compulim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase master. There are lot so changes around saga.

Comment thread CHANGELOG.md Outdated
Comment thread __tests__/suggestedActions.js
Comment thread __tests__/suggestedActions.js
Comment thread packages/component/src/SendBox/SuggestedActions.js Outdated
Comment thread packages/core/src/sagas/sendMessageBackToPostActivitySaga.js Outdated
Comment thread packages/component/src/Utils/AdaptiveCardBuilder.ts Outdated
Comment thread packages/core/src/sagas/sendMessageBackToPostActivitySaga.js Outdated
@corinagum
Copy link
Copy Markdown
Contributor Author

@compulim @a-b-r-o-w-n I have pushed PR changes up. My tests pass locally, and I'm not sure why it's saying coverage went down since I added tests. I will check with @compulim in person to see if he has advice.

@corinagum
Copy link
Copy Markdown
Contributor Author

@compulim and @a-b-r-o-w-n please ignore above comment - after a slight delay the travis build updated to say there was a 3% increase, and that tests are passing.

@corinagum corinagum merged commit 77b466e into microsoft:master Jan 16, 2019
@corinagum corinagum deleted the corinagum/messageBack branch February 18, 2019 17:37
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.

4 participants