Skip to content
Snippets Groups Projects
Commit a9d3ca7f authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Fix error in nav + add feedback part

parent 9b74ab10
No related branches found
No related tags found
No related merge requests found
# Feedback
Users can send a feedback in the application, the feedback's receiver is defined in the _FeedbackModal component_
## Add mail attachments
The user has the possibility to add an image to a feedback.
The email informations are created in the _sendEmail_ function and the mailData respects this scheme :
```js
const mailData = {
mode: "from",
to: [{ name: "Support", email: "receiver-email" }],
subject: "Your subject",
parts: [{ type: "text/plain", body: mailContent }],
attachments: [{ filename: "test.png", content: "base64file" }],
};
```
It is important that your file is sent base64 encoded to the sendmail job and with the _data...base64_ headers removed, otherwise it will be unreadable.
In order to do this, we use a reader to read the file as Data URL
```js
reader.readAsDataURL(file);
```
and then apply to the result so we send only the encoded part without its headers.
```js
split(",")[1];
```
......@@ -45,10 +45,9 @@ nav:
- Description: ecolyo/application/description.md
- Redux: ecolyo/application/redux.md
- Scaffolding: ecolyo/application/scaffolding.md
- Services: ecolyo/application/services.md
- Gitflow: ecolyo/application/gitflow.md
- Deploy: ecolyo/application/deploy.md
- Services:
- Services:
- Description: ecolyo/services/index.md
- Monthly report notification: ecolyo/services/monthly_report_notification.md
- Aggregator usage events: ecolyo/services/aggregator_usage_events.md
......@@ -60,6 +59,7 @@ nav:
- Profile Type: ecolyo/functionalities/profile_type.md
- Analysis: ecolyo/functionalities/analysis.md
- Usage events tracking: ecolyo/functionalities/usage_events_tracking.md
- Feedback: ecolyo/functionalities/feedback.md
- Pilote:
- Pilote - TS - Back:
- Index: pilote/Pilote - TS - Back/index.md
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment