buerokratt / Buerokratt-Chatbot

1 stars 16 forks source link

Forward/download finished chat #4

Open rasmusei opened 2 years ago

rasmusei commented 2 years ago

~AS AN End User~ ~I WANT TO be able to forward finished chats to my email or download it to my device~ ~SO THAT I can read it later and/or keep it as a proof when needed~

User story updated 13.10.2023

AS AN End User I WANT TO download my finished chats SO THAT I can read it later and/or keep it as a proof when needed

Acceptance Criteria

PDF file AC

GUI

DSL

Ruuter

Data Mapper or Nodejs

turnerrainer commented 2 years ago

@rasmusei I strongly suggest not to send conversations to any email addresses provided by the End User. These emails would be sent and signed by Bürokratt / RIA, making it a great tool for anyone with not the greatest intentions.

rasmusei commented 1 year ago

@turnerrainer why it has to be signed by Bürokratt/RIA? Anyone can make a screenshot any time anyway.

turnerrainer commented 1 year ago

@turnerrainer why it has to be signed by Bürokratt/RIA? Anyone can make a screenshot any time anyway.

@rasmusei we are talking about different things.

helemand commented 1 year ago

GET download-chat

curl --location --request POST 'http://localhost:9090/download-chat' \
--header 'Cookie: testCookie' \
--header 'Content-Type: application/json' \
--data-raw '{
    "chatId": "da887028-e0ff-489a-b1b9-927a11c5bfa6"
}'

Responds with PDF file.

sergeirudz commented 1 year ago

PR: https://github.com/buerokratt/Chat-Widget/pull/19

ffrose commented 1 year ago

BUG - Downloading chat button is not functional. Same as trying to forward to email, "KINNITA" button is not functional.

1AhmedYasser commented 1 year ago

@turnerrainer @varmoh Downloading Chat is working on the local side, please recheck the data mapper to be on the latest version and try again, as for the email forward, posted the topic on teams

janinakimtrohlev commented 1 year ago

@varmoh Can you please check download? Because it is not working right now

rasmusei commented 1 year ago

@1AhmedYasser when I download the chat, it creates a PDF file, but it's broken and cannot be opened. If you try it on the local side, does your file open and have some content?

1AhmedYasser commented 1 year ago

@rasmusei yes on local its downloaded and content is shown

rasmusei commented 1 year ago

@KlviG please check it and check the logs

rasmusei commented 1 year ago

Leave out sending email to the End User in this stage

janinakimtrohlev commented 11 months ago

BUG - As End User I Downloaded chat. It is in PDF format. But I can´t open this. It gives error.

Image

Also as we leave email sending function, please hide the button to send chat by email until we do the functionality.

turnerrainer commented 10 months ago

@varmoh to validate file downloading part in dev, should be working correctly according to @1AhmedYasser

rasmusei commented 10 months ago

@janinakimtrohlev please test it

janinakimtrohlev commented 9 months ago

The example of Chat History

chat-history .pdf

janinakimtrohlev commented 8 months ago

BUG - right now if as End User I close the chat and want to download it, then it download it , but after it opening it gives an error.

Image

1AhmedYasser commented 8 months ago

BUG - right now if as End User I close the chat and want to download it, then it download it , but after it opening it gives an error.

Working on local side, need to check with @varmoh on dev environment @varmoh please also make sure to rebuild data mapper to the latest changes because the latest bahaa pr on this task changes parts of it in this PR https://github.com/buerokratt/DataMapper/pull/22

Screenshot 2024-01-31 at 9 30 51 PM
janinakimtrohlev commented 8 months ago

I tested and I can download the chat and open it. It's okey with that. But there is another BUG. BUG - In settings i Put to show CSA title and name. In chat it shows normally, but if I download the chat it shows only title. Should be if it is putted to show title and name, then in downloaded chat it should also show them.

janinakimtrohlev commented 7 months ago

BUG - I put the setting to show CSA name. In chat it shows name, but if I download chat it shows CSA title. Not name. Image Should be If setting is show CSA name it should show name in chat and also in downloaded chat.

janinakimtrohlev commented 7 months ago

BUG - I put the setting to show CSA name and title. In chat it shows name and title, but if I download chat it shows only CSA title without name.

Image

Should be If setting is show CSA name and show CSA title it should show name and title in chat and also in downloaded chat.

janinakimtrohlev commented 7 months ago

BUG - If I download a chat as End User it shows me in pdf CSA title. But in setting is put show CSA name. It shows right in widget (shows CSA name). Should be If in setting is show CSA name it should show CSA name not only in widget but also in Downloaded pdf format should shows CSA name, not title.

janinakimtrohlev commented 7 months ago

BUG - If I download a chat as End User it shows me in pdf CSA title. But in setting is put show CSA name and title. It shows right in widget (shows CSA name and title). Should be If in setting is show CSA name and show CSA title, it should show CSA name and title not only in widget, but also in Downloaded pdf format should shows CSA name and title.

turnerrainer commented 7 months ago

@baha-a please list all repos that need to be deployed

janinakimtrohlev commented 7 months ago

Tested and done. Only can´t check and test e-mail sending, this function will be in the future.