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

Implements the configuration #10

Merged
merged 51 commits into from Apr 19, 2022
Merged

Implements the configuration #10

merged 51 commits into from Apr 19, 2022

Commits on Jul 13, 2021

  1. Fix problem where error notification returned a object and not just text

    also added the use of `ApiGenericError` for errors when the API didn't provide one
    Gerben-T committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    9b777de View commit details
    Browse the repository at this point in the history
  2. Add context providers

    also handle/show errors in chat
    also remove axe-core (doesn't work and keeps throwing errors)
    Gerben-T committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    5eb9778 View commit details
    Browse the repository at this point in the history
  3. Add tests for ui errors

    Gerben-T committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    59bb371 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Working changing language

    Gerben-T committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    393aa6d View commit details
    Browse the repository at this point in the history
  2. No need for contextType

    Gerben-T committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    5eea332 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2021

  1. Configuration menu
    Copy the full SHA
    dfc02eb View commit details
    Browse the repository at this point in the history
  2. Make window.parleySettings reactive using Proxies

    also; moved/renamed context.js => Scripts/Context.js
    also; add a Logger for logging stuff with log levels
    Gerben-T committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    13560b5 View commit details
    Browse the repository at this point in the history
  3. When language changes, make sure the interfaceTexts overrides stay th…

    …e same
    
    when overriding interfaceTexts using `window.parleySettings.runOptions.interfaceTexts` and switching language, we don't want your custom overrides to get replaced by the InterfaceText.{language} defaults
    Gerben-T committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    fea4039 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. Configuration menu
    Copy the full SHA
    fc28de2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50e1139 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3542aa0 View commit details
    Browse the repository at this point in the history
  4. When infoText setting changes, the UI needs to change as well

    Also; fixed issue where proxy would keep triggering `setState()` after being unmounted
    Also; added eslint plugin to remove unused imports
    Gerben-T committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    4854e68 View commit details
    Browse the repository at this point in the history
  5. When placeholderMessenger setting changes, the UI needs to change as …

    …well
    
    Also; added plugin to disallow `.only` tests
    Gerben-T committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    f274f05 View commit details
    Browse the repository at this point in the history
  6. Add some comments

    Gerben-T committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    2fd3d07 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2021

  1. Change how Proxy works to make it more robust and easier to understand

    Also; renamed v1 props to v2 in InterfaceTexts
    Also; moved some functions around
    Also; added jsdocs
    Also; fixed issue where errorNotfication render gave an error that it didn't exist
    Gerben-T committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    f239f7c View commit details
    Browse the repository at this point in the history
  2. Add workingHours (weekdays) and hideChatOutsideWorkingHours (hideChat…

    …AfterBusinessHours) settings
    
    Also; made them hide the Launcher if we are outside working hours and hideChatxxx is true
    Also; Copied the script from v1 that checks if we are inside/outside working hours
    Gerben-T committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    dcc72dd View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2021

  1. Add mobile recognition

    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    328bc5b View commit details
    Browse the repository at this point in the history
  2. Add device version to state

    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    35b2e1d View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2021

  1. Configuration menu
    Copy the full SHA
    4e2024c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cce605d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    13b9f5a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    40fb743 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0e72bcc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5eaea6f View commit details
    Browse the repository at this point in the history
  7. Remove todo comments

    Gerben-T committed Jul 23, 2021
    Configuration menu
    Copy the full SHA
    d476092 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2021

  1. Merge branch 'master' of github.com:parley-messaging/web-library into…

    … feature/config
    
    � Conflicts:
    �	.eslintrc.json
    �	.postcssrc.json
    �	index.html
    �	package-lock.json
    �	package.json
    �	src/UI/App.jsx
    �	src/UI/Buttons/HeaderButton.jsx
    �	src/UI/Launcher.jsx
    �	src/UI/index.jsx
    Gerben-T committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    1657bb0 View commit details
    Browse the repository at this point in the history
  2. Set stylelint config path to auto-detect

    somehow Phpstorm was messing up the path (probably because of a new update..)
    Gerben-T committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    be4d769 View commit details
    Browse the repository at this point in the history
  3. Remove unused css

    Gerben-T committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    58cc022 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

  1. Rename referer to referrer if we are talking about anything other tha…

    …n the HTTP header / Api payload
    Gerben-T committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    e8fd421 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f658935 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2022

  1. Configuration menu
    Copy the full SHA
    cca9791 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1da31a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    44a5922 View commit details
    Browse the repository at this point in the history
  4. Remove eslint rule prefer-promise-reject-errors

    We don't need to throw an Error here with a stack trace because the API made the error so there is no stack trace that points to the API..
    Gerben-T committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    78f37f9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5e43a14 View commit details
    Browse the repository at this point in the history
  6. fix typo

    Gerben-T committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    b91f9df View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0305f85 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5bc92b0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    846e863 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9f434e6 View commit details
    Browse the repository at this point in the history
  11. Add missing tests so we reach ~99% code coverage

    I can't test line 92 on workingHours.js because it checks the current date and to change that i need to change the system time..
    Gerben-T committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    9277f6f View commit details
    Browse the repository at this point in the history
  12. Install light-server to serve code coverage page with live reload

    Couldn't use `parcel serve` for this because the index.html page contained multiple assets
    Gerben-T committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    97f835e View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. Configuration menu
    Copy the full SHA
    ce694ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    15e18dd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    035174c View commit details
    Browse the repository at this point in the history
  4. Add an extra test which tests the false part of the `format [day, s…

    …tart, end, false]` office hours format
    Gerben-T committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    3655d2a View commit details
    Browse the repository at this point in the history
  5. Merge branch 'master' of github.com:parley-messaging/web-library into…

    … feature/config
    
    � Conflicts:
    �	.postcssrc.json
    �	index.html
    �	index.js
    �	package-lock.json
    �	package.json
    �	src/Api/Api.js
    �	src/UI/App.jsx
    �	src/UI/index.jsx
    Gerben-T committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    997ff5c View commit details
    Browse the repository at this point in the history
  6. Add storagePrefix to state

    Gerben-T committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    18a4c43 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2022

  1. Use componentDidUpdate() instead of shouldComponentUpdate() becau…

    …se it is a better place for these checks
    Gerben-T committed Apr 15, 2022
    Configuration menu
    Copy the full SHA
    031b55d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3324062 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2022

  1. Forgot to change copied test

    Also ignore gitlink
    Gerben-T committed Apr 19, 2022
    Configuration menu
    Copy the full SHA
    afbb281 View commit details
    Browse the repository at this point in the history