Skip to content
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

New embed page #1910

Merged
merged 69 commits into from
Apr 24, 2019
Merged

New embed page #1910

merged 69 commits into from
Apr 24, 2019

Conversation

compulim
Copy link
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

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

@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.

packages/embed/.babelrc Show resolved Hide resolved
packages/embed/src/index.js Outdated Show resolved Hide resolved
packages/embed/src/index.js Outdated Show resolved Hide resolved
packages/embed/src/setups/createElement.js Show resolved Hide resolved
packages/embed/src/setups/loadIFRAME.js Show resolved Hide resolved
packages/embed/src/index.js Outdated Show resolved Hide resolved
packages/embed/src/index.js Outdated Show resolved Hide resolved
packages/embed/src/index.js Outdated Show resolved Hide resolved
packages/embed/src/index.js Outdated Show resolved Hide resolved
packages/embed/src/index.pug Show resolved Hide resolved
packages/embed/src/setups/version3.spec.js Outdated Show resolved Hide resolved
@corinagum
Copy link
Contributor

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

compulim and others added 26 commits April 23, 2019 16:44
Co-Authored-By: compulim <compulim@users.noreply.github.com>
Co-Authored-By: compulim <compulim@users.noreply.github.com>
Co-Authored-By: compulim <compulim@users.noreply.github.com>
Co-Authored-By: compulim <compulim@users.noreply.github.com>
Co-Authored-By: compulim <compulim@users.noreply.github.com>
Co-Authored-By: compulim <compulim@users.noreply.github.com>
Co-Authored-By: compulim <compulim@users.noreply.github.com>
Co-Authored-By: compulim <compulim@users.noreply.github.com>
Co-Authored-By: compulim <compulim@users.noreply.github.com>
@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.

None yet

4 participants