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

Refactor chat plugin into library #1590

Closed
chrismatix opened this issue Apr 20, 2021 · 0 comments · Fixed by #1591 or #2120
Closed

Refactor chat plugin into library #1590

chrismatix opened this issue Apr 20, 2021 · 0 comments · Fixed by #1591 or #2120

Comments

@chrismatix
Copy link
Contributor

Current state
The chatplugin is being used as

  • an internal dependency to the inbox
  • a library
  • a default web app

This causes odd dependency issues, where runtime environments like window.airy or process.env are not available to the runtime.

Desired goal
The entry points here need to be separated so that there is a single interface library interface and the library itself is independent of runtime variables.

Also the HTTP lib needs to be refactored into a singleton module.

@chrismatix chrismatix added this to To do in Engineering WIP via automation Apr 20, 2021
Engineering WIP automation moved this from To do to Done Apr 20, 2021
@chrismatix chrismatix reopened this Apr 20, 2021
Engineering WIP automation moved this from Done to In progress Apr 20, 2021
@chrismatix chrismatix moved this from In progress to To do in Engineering WIP Apr 21, 2021
@lucapette lucapette removed this from To do in Engineering WIP Apr 22, 2021
@AudreyKj AudreyKj added this to To do in Engineering WIP via automation May 27, 2021
@AudreyKj AudreyKj moved this from To do to In progress in Engineering WIP May 27, 2021
@AudreyKj AudreyKj moved this from In progress to To do in Engineering WIP Jun 16, 2021
@lizhutter lizhutter moved this from To do to In progress in Engineering WIP Jun 30, 2021
@AitorAlgorta AitorAlgorta moved this from In progress to To do in Engineering WIP Jul 1, 2021
@chrismatix chrismatix self-assigned this Jul 5, 2021
@chrismatix chrismatix moved this from To do to In progress in Engineering WIP Jul 5, 2021
Engineering WIP automation moved this from In progress to Done Jul 8, 2021
AitorAlgorta added a commit that referenced this issue Jul 13, 2021
* Bump version to 0.26.0-alpha

* Bump copy-webpack-plugin from 9.0.0 to 9.0.1 (#2059)

Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 9.0.0 to 9.0.1.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](webpack-contrib/copy-webpack-plugin@v9.0.0...v9.0.1)

---
updated-dependencies:
- dependency-name: copy-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [#1819] Add Airy favicon (#2067)

* [#2060] fixed edit of text templates (#2068)

* [#2056] Added first transition and animations (#2066)

* [#1391] Cypress test for suggested replies  (#2057)

* test for suggested reply

* fixed wrong import

* fixed selectors

* fixed selector

* fixed selector

* [#1914] Cypress test for conversation state (#2061)

* Bump terser-webpack-plugin from 5.1.3 to 5.1.4 (#2065)

* Bump terser-webpack-plugin from 5.1.3 to 5.1.4

Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 5.1.3 to 5.1.4.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](webpack-contrib/terser-webpack-plugin@v5.1.3...v5.1.4)

---
updated-dependencies:
- dependency-name: terser-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update bazel tools

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christoph Pröschel <chris@airy.co>
Co-authored-by: Christoph Proeschel <proeschel.christoph@gmail.com>

* Bump prettier from 2.3.1 to 2.3.2 (#2053)

Bumps [prettier](https://github.com/prettier/prettier) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.3.1...2.3.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump core-js from 3.15.0 to 3.15.2 (#2064)

Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.15.0 to 3.15.2.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.15.2/packages/core-js)

---
updated-dependencies:
- dependency-name: core-js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/node from 15.12.2 to 15.12.5 (#2052)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.12.2 to 15.12.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump style-loader from 2.0.0 to 3.0.0 (#2040)

Bumps [style-loader](https://github.com/webpack-contrib/style-loader) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/webpack-contrib/style-loader/releases)
- [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md)
- [Commits](webpack-contrib/style-loader@v2.0.0...v3.0.0)

---
updated-dependencies:
- dependency-name: style-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @typescript-eslint/parser from 4.28.0 to 4.28.1 (#2081)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.28.0 to 4.28.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [#1916] Cypress test for display name edit (#2088)

* adding handles for cy test

* feat/1916-cypress-test-for-name-edit

* rebase

* fixed base url

* [#2074] Added subtitle to Chatplugin (#2087)

* [#2069] fix http client and chat plugin packages (#2070)

* fixed http client and chat plugin packages

* fixed build file chat plugin

* fixed build rules for the chat plugin

* fixed typing for chat plugin

* started adding docs

* fixed readme for packages

* updated doc for chat plugin and httpclient

* update conversations counter in real time (#2091)

* [#2073] Added powered by airy to Chatplugin (#2089)

* added powered by airy to chatplugin

* change position

* linting

Co-authored-by: Aitor Algorta <aitor@airy.co>

* [#661] Added possibility to connect Google via UI (#2092)

* Bump webpack from 5.40.0 to 5.41.1 (#2085)

Bumps [webpack](https://github.com/webpack/webpack) from 5.40.0 to 5.41.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.40.0...v5.41.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @typescript-eslint/eslint-plugin from 4.28.0 to 4.28.1 (#2084)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.28.0 to 4.28.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [#2093] Fixed moving avatar (#2094)

* Bump webpack from 5.41.1 to 5.42.0 (#2098)

Bumps [webpack](https://github.com/webpack/webpack) from 5.41.1 to 5.42.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.41.1...v5.42.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump preact from 10.5.13 to 10.5.14 (#2099)

Bumps [preact](https://github.com/preactjs/preact) from 10.5.13 to 10.5.14.
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](preactjs/preact@10.5.13...10.5.14)

---
updated-dependencies:
- dependency-name: preact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump camelcase-keys from 6.2.2 to 7.0.0 (#2083)

Bumps [camelcase-keys](https://github.com/sindresorhus/camelcase-keys) from 6.2.2 to 7.0.0.
- [Release notes](https://github.com/sindresorhus/camelcase-keys/releases)
- [Commits](sindresorhus/camelcase-keys@v6.2.2...v7.0.0)

---
updated-dependencies:
- dependency-name: camelcase-keys
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [#2071] Redesigned inputbar Chatplugin (#2095)

* redesigned inputbar chatplugin

* made changed accordingly

* improvements in the input bar

Co-authored-by: Aitor Algorta <aitor@airy.co>

* Fixes #2100 - link to up-to-date Rasa connector (#2101)

* Bump @types/react from 17.0.11 to 17.0.13 (#2097)

Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.11 to 17.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/node from 15.12.5 to 15.14.0 (#2096)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.12.5 to 15.14.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/node from 15.14.0 to 16.0.0 (#2103)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.14.0 to 16.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint from 7.29.0 to 7.30.0 (#2102)

Bumps [eslint](https://github.com/eslint/eslint) from 7.29.0 to 7.30.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v7.29.0...v7.30.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [#1970] Add issue templates (#2106)

* [#2051] Add instagram source (#2082)

* [#2014] Fix stable version file (#2107)

* [#2072] Chat Plugin: Emoji Selector (#2121)

* emoji selector for chat plugin wip

* loading emojipicker async wip 2

* emoji picker for cp wip 3

* refined naming, typing, and added styling

* unstaged unecessary files

* fixed error

* fixed paperplane svg

* [#1590] Refactor: Split chatplugin into library and app targets (#2120)

* Bump @types/react-window-infinite-loader from 1.0.3 to 1.0.4 (#2130)

Bumps [@types/react-window-infinite-loader](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-window-infinite-loader) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-window-infinite-loader)

---
updated-dependencies:
- dependency-name: "@types/react-window-infinite-loader"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @typescript-eslint/eslint-plugin from 4.28.1 to 4.28.2 (#2112)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.28.1 to 4.28.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.2/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/resize-observer-browser from 0.1.5 to 0.1.6 (#2135)

Bumps [@types/resize-observer-browser](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/resize-observer-browser) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/resize-observer-browser)

---
updated-dependencies:
- dependency-name: "@types/resize-observer-browser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Change endpoint for webhook to /twilio (#2123)

* [#2132] Allow deleting messages (#2136)

* Bump @types/react-router-dom from 5.1.7 to 5.1.8 (#2137)

Bumps [@types/react-router-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-router-dom) from 5.1.7 to 5.1.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-router-dom)

---
updated-dependencies:
- dependency-name: "@types/react-router-dom"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @typescript-eslint/parser from 4.28.1 to 4.28.2 (#2113)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.28.1 to 4.28.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump sass from 1.35.1 to 1.35.2 (#2141)

Bumps [sass](https://github.com/sass/dart-sass) from 1.35.1 to 1.35.2.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](sass/dart-sass@1.35.1...1.35.2)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/react-dom from 17.0.8 to 17.0.9 (#2146)

Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 17.0.8 to 17.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump cypress from 7.6.0 to 7.7.0 (#2145)

Bumps [cypress](https://github.com/cypress-io/cypress) from 7.6.0 to 7.7.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js)
- [Commits](cypress-io/cypress@v7.6.0...v7.7.0)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/react-redux from 7.1.16 to 7.1.18 (#2138)

Bumps [@types/react-redux](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-redux) from 7.1.16 to 7.1.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-redux)

---
updated-dependencies:
- dependency-name: "@types/react-redux"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [#2078] Add endpoint for uploading media (#2147)

* [#2149] UI crashes when filtering with unknown source involved  (#2152)

* fixed ui crash for unknown source

* added colorful ig icon

* release 0.26.0

Co-authored-by: Pascal Holy <pascal@airy.co>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christoph Proeschel <proeschel.christoph@gmail.com>
Co-authored-by: AudreyKj <38159391+AudreyKj@users.noreply.github.com>
Co-authored-by: Thorsten <thorsten@airy.co>
Co-authored-by: Christoph Pröschel <chris@airy.co>
Co-authored-by: Arman Jindal <58370547+armanjindal@users.noreply.github.com>
Co-authored-by: Ljupco Vangelski <ljupcovangelski@users.noreply.github.com>
Co-authored-by: Audrey Kadjar <audreykadjar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment