Skip to content

New embed page#1910

Merged
compulim merged 69 commits intomicrosoft:masterfrom
compulim:feat-embed-page
Apr 24, 2019
Merged

New embed page#1910
compulim merged 69 commits intomicrosoft:masterfrom
compulim:feat-embed-page

Conversation

@compulim
Copy link
Copy Markdown
Contributor

@compulim compulim commented Apr 17, 2019

We are going to point temporarily to cdnbotframeworkdev.blob.core.windows.net in this PR. Once we got the actual URL, will replace them. This is for CDN segregation work.

This page will be redirected thru existing endpoint, https://webchat.botframework.com/embed/.

The output will be two files:

  • index.html, a single HTML file containing the page and inlined JavaScript code
    • The file size is about 20 KB
  • servicingplan.json

It will fetch bot configuration from https://webchat.botframework.com/v4/embed/config/, and emit telemetry to /v4/embed/telemetry/.

When we need to load the legacy v1/v3 pages, we will IFRAME back into the existing endpoint, with special URL query parameters to prevent looping back to this page.

We will have server-side changes to support this page.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 17, 2019

Coverage Status

Coverage increased (+3.6%) to 57.678% when pulling 263cffc on compulim:feat-embed-page into 9cbbea2 on Microsoft:master.

Copy link
Copy Markdown

@justinwilaby justinwilaby left a comment

Choose a reason for hiding this comment

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

Some minor considerations. Overall it looks good.

Comment thread packages/embed/.babelrc
Comment thread packages/embed/src/index.js Outdated
Comment thread packages/embed/src/index.js Outdated
Comment thread packages/embed/src/setups/createElement.js
Comment thread packages/embed/src/setups/loadIFRAME.js
Comment thread packages/embed/src/index.js Outdated
Comment thread packages/embed/src/index.js Outdated
Comment thread packages/embed/src/index.js Outdated
Comment thread packages/embed/src/index.js Outdated
Comment thread packages/embed/src/index.pug
Comment thread packages/embed/src/setups/version3.spec.js Outdated
Comment thread packages/embed/servicingPlan.json Outdated
Comment thread packages/embed/servicingPlan.json Outdated
Comment thread packages/embed/servicingPlan.json Outdated
Comment thread packages/embed/servicingPlan.json Outdated
@corinagum
Copy link
Copy Markdown
Contributor

Failing test should be resolved with a pull from upstream master :)

@compulim compulim merged commit 7136e6b into microsoft:master Apr 24, 2019
@compulim compulim deleted the feat-embed-page branch April 24, 2019 17:24
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