buerokratt / Buerokratt-Chatbot

1 stars 14 forks source link

Possibility to configure Bürokratt's chat widget behavior and appearance #31

Open rasmusei opened 1 year ago

rasmusei commented 1 year ago

AS AN Administrator I WANT TO be able to configure Bürokratt's chat widget behavior and appearance SO THAT Bürokratt's chat widget is more visible for End Users

Acceptance Criteria

GUI

When clicking on Preview button, show End User's Chat Widget preview possibly with

PaulaMerle commented 1 year ago

If possible, also option to remove the widget from the web page should be added to admin.

rasmusei commented 1 year ago

Should be possible to activate/deactivate proactivity

janaliiv commented 1 year ago

Added the following Ruuter endpoints:

Public Ruuter: GET /cs-get-emergency-notice

Private Ruuter: GET /cs-get-emergency-notice POST /cs-set-emergency-notice

Example queries (replace URL and customJwtCookie with appropriate values if needed):

curl --location --request POST 'http://localhost:9091/cs-set-widget-config' \
--header 'Cookie: customJwtCookie=eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIiLCJmaXJzdE5hbWUiOiJtYXJ5IiwibGFzdE5hbWUiOiJtYXJ5IiwiaWRDb2RlIjoiRUU2MDAwMTAxOTkwNiIsImRpc3BsYXlOYW1lIjoibWFyeSIsImlzcyI6ImJ5ay5idWVyb2tyYXR0LmVlIiwiZXhwIjoxNjcwNDIzNTE2LCJsb2dpbiI6Im1hcnkiLCJpYXQiOjE2NzA0MTYzMTYsImp0aSI6IjUzZmViM2I0LWM0NTgtNGZiOC1hMmEyLTA2NzU0ZGQzYWNkZSIsImF1dGhvcml0aWVzIjpbIlJPTEVfQURNSU5JU1RSQVRPUiJdfQ.lmod2v_UmMmCxjx-Qjsv35OgwdAMWKha-cM_tejP4O5qFrMLoahUrnWxjk4rBzyI9y_4VegfPbC8nMg82QhDcGyH78N5gz2T_zatdYJZ0Ium_qD8QSyMDic2W38a0kW3Ksb4M_wiiaNSfk3vh829dvpcal0f6u2VI5Zb7iRbp3SVKkRKuhQssvQ42cyvNcw9fE8avDAwet1gBD7Ag82faHdHzWt1esDHC5aVDrUoofuAnNjACMMP3ZYLaPFOyu_hwTUHCQzDu1JUyoSzU5RmnQdFlkB0yGAyQ5dG1MYLuHDXiWlnR0cZ8huEpcIOyAPX1rAhbMQgmJQCcrgX4M8XAg' \
--header 'Content-Type: application/json' \
--data-raw '{
    "widgetProactiveSeconds": 5,
    "widgetDisplayBubbleMessageSeconds": 3,
    "widgetBubbleMessageText": "Küsi minult!",
    "widgetColor": "#12345",
    "isWidgetActive": true
}'
curl --location --request GET 'http://localhost:9091/cs-get-widget-config' \
--header 'Cookie: customJwtCookie=eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIiLCJmaXJzdE5hbWUiOiJtYXJ5IiwibGFzdE5hbWUiOiJtYXJ5IiwiaWRDb2RlIjoiRUU2MDAwMTAxOTkwNiIsImRpc3BsYXlOYW1lIjoibWFyeSIsImlzcyI6ImJ5ay5idWVyb2tyYXR0LmVlIiwiZXhwIjoxNjcwNDIzNTE2LCJsb2dpbiI6Im1hcnkiLCJpYXQiOjE2NzA0MTYzMTYsImp0aSI6IjUzZmViM2I0LWM0NTgtNGZiOC1hMmEyLTA2NzU0ZGQzYWNkZSIsImF1dGhvcml0aWVzIjpbIlJPTEVfQURNSU5JU1RSQVRPUiJdfQ.lmod2v_UmMmCxjx-Qjsv35OgwdAMWKha-cM_tejP4O5qFrMLoahUrnWxjk4rBzyI9y_4VegfPbC8nMg82QhDcGyH78N5gz2T_zatdYJZ0Ium_qD8QSyMDic2W38a0kW3Ksb4M_wiiaNSfk3vh829dvpcal0f6u2VI5Zb7iRbp3SVKkRKuhQssvQ42cyvNcw9fE8avDAwet1gBD7Ag82faHdHzWt1esDHC5aVDrUoofuAnNjACMMP3ZYLaPFOyu_hwTUHCQzDu1JUyoSzU5RmnQdFlkB0yGAyQ5dG1MYLuHDXiWlnR0cZ8huEpcIOyAPX1rAhbMQgmJQCcrgX4M8XAg'
curl --location --request GET 'http://localhost:9090/get-widget-config'
ceirowe commented 1 year ago

@rasmusei Prototype updated according to AC-s. !NB The field "proactive seconds" determines the animation iteration count, not duration in seconds (for better animation lifecycle)

janinakimtrohlev commented 11 months ago

BUG - Collor choice is not working right now. It shows pallet but it is not available to push and choose. Should be administrator can change Bürokratt's color (appearance), color palette and RGB options are displayed.

1AhmedYasser commented 11 months ago

@janinakimtrohlev Could you please split the bugs into separate comments so i can reference them in the PR

janinakimtrohlev commented 11 months ago

BUG - Animation is not working. I choose for example jump and push Save. But it doesn´t work. Also the same if i put shockwave and wiggle. Should be if i choose jump and save it then the widget should jump. The same with shockwave and wiggle.

janinakimtrohlev commented 11 months ago

@1AhmedYasser separated

1AhmedYasser commented 11 months ago

BUG - Collor choice is not working right now. It shows pallet but it is not available to push and choose. Should be administrator can change Bürokratt's color (appearance), color palette and RGB options are displayed.

@janinakimtrohlev Added Color Palette and removed manual input to avoid human error

1AhmedYasser commented 11 months ago

BUG - Animation is not working. I choose for example jump and push Save. But it doesn´t work. Also the same if i put shockwave and wiggle. Should be if i choose jump and save it then the widget should jump. The same with shockwave and wiggle.

@janinakimtrohlev Working on local side, Please Recheck it again, You have to make sure to set Proaktiivsusaeg to a value higher than 0, because it controls the animation duration in seconds

PS: Please refresh the bot page after every save to reflect the changes

janinakimtrohlev commented 10 months ago

BUG - in back-office I can change widget behavior and appearance and see the preview. But in widget doesn´t change. Should be if I change in back-office widget behavior and appearance it should be changed in widget.