buerokratt / Buerokratt-Chatbot

1 stars 18 forks source link

Administrative User profile views and functionalities #27

Open rasmusei opened 2 years ago

rasmusei commented 2 years ago

AS AN Administrative User I WANT TO see and edit my profile SO THAT I can have a view of my profile info and setting and some possibilities to change them

Acceptance Criteria

image

GUI Story's:

DSL Story's:

turnerrainer commented 2 years ago

@rasmusei It kind of duplicates a lot of other issues, doesn't it?

rasmusei commented 2 years ago

@turnerrainer can you give ma an example of duplication?

helemand commented 1 year ago

Added new endpoints: GET /get-user-profile-settings

curl --location --request GET 'http://localhost:9091/cs-get-user-profile-settings' \
--header 'Cookie: testCookie' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userId": 1
}'
{
    "response": {
        "userId": 1,
        "forwardedChatPopupNotifications": true,
        "forwardedChatSoundNotifications": true,
        "forwardedChatEmailNotifications": true,
        "newChatPopupNotifications": true,
        "newChatSoundNotifications": true,
        "newChatEmailNotifications": true,
        "useAutocorrect": false
    }
}

POST /set-user-profile-settings

curl --location --request POST 'http://localhost:9091/cs-set-user-profile-settings' \
--header 'Cookie: testCookie' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userId": 1,
    "forwardedChatPopupNotifications": true,
    "forwardedChatSoundNotifications": true,
    "forwardedChatEmailNotifications": true,
    "newChatPopupNotifications": true,
    "newChatSoundNotifications": true,
    "newChatEmailNotifications": true,
    "useAutocorrect": false
}'
{
    "response": true
}
joonasroosalung commented 1 year ago

Updated get-user-profile-settings.sql in resql to work by id_code from user table instead of id in #25

janinakimtrohlev commented 1 year ago

BUG - In information is not showing user title. Should show in user information also user title. BUG - There is an email row but with no email info appearing, but user Rasmuss have his e-mail inserted and saved. Should show e-mail information.

Image

janinakimtrohlev commented 1 year ago

Checked and done.

janinakimtrohlev commented 5 months ago

BUG - Now when I change some settings it gives a lot of notification about new conversation. If the setting is changed, then should not come notification about new conversation