Open rasmusei opened 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.
@turnerrainer why it has to be signed by Bürokratt/RIA? Anyone can make a screenshot any time anyway.
@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.
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.
BUG - Downloading chat button is not functional. Same as trying to forward to email, "KINNITA" button is not functional.
@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
@varmoh Can you please check download? Because it is not working right now
@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?
@rasmusei yes on local its downloaded and content is shown
@KlviG please check it and check the logs
Leave out sending email to the End User in this stage
BUG - As End User I Downloaded chat. It is in PDF format. But I can´t open this. It gives error.
Also as we leave email sending function, please hide the button to send chat by email until we do the functionality.
@varmoh to validate file downloading part in dev
, should be working correctly according to @1AhmedYasser
@janinakimtrohlev please test it
The example of Chat History
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.
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
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.
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. Should be If setting is show CSA name it should show name in chat and also in downloaded chat.
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.
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.
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.
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.
@baha-a please list all repos that need to be deployed
Tested and done. Only can´t check and test e-mail sending, this function will be in the future.
~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~
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
chat ID
andemail
to send toDSL
Ruuter
/chat/download
to provide full chat history of End User's current chat session with chat statusended
- @turnerrainerData Mapper or Nodejs
/download/chat
- @turnerrainer/convert/pdf
with POST body defining the content and type of input (HTML) - @turnerrainer