Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge branch 'develop' #1753

Merged
merged 5 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 20 additions & 31 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,86 +1,75 @@
# [1.141.0](https://github.com/SocialGouv/1000jours/compare/v1.140.1...v1.141.0) (2024-05-13)


### Features

* add contact type for widget epds ([#1747](https://github.com/SocialGouv/1000jours/issues/1747)) ([205bdc7](https://github.com/SocialGouv/1000jours/commit/205bdc74a9db8184297100ec464f7df1cdbe8d73))
- add contact type for widget epds ([#1747](https://github.com/SocialGouv/1000jours/issues/1747)) ([205bdc7](https://github.com/SocialGouv/1000jours/commit/205bdc74a9db8184297100ec464f7df1cdbe8d73))

## [1.140.1](https://github.com/SocialGouv/1000jours/compare/v1.140.0...v1.140.1) (2024-04-08)


### Bug Fixes

* add info dev (expoUpdates enabled) ([00d337c](https://github.com/SocialGouv/1000jours/commit/00d337cbe6070c97e1a2b413c7362351cb3640e3))
- add info dev (expoUpdates enabled) ([00d337c](https://github.com/SocialGouv/1000jours/commit/00d337cbe6070c97e1a2b413c7362351cb3640e3))

# [1.140.0](https://github.com/SocialGouv/1000jours/compare/v1.139.0...v1.140.0) (2024-04-01)


### Features

* **recosante:** add recosante widget on evaluation page ([#1742](https://github.com/SocialGouv/1000jours/issues/1742)) ([dafc7be](https://github.com/SocialGouv/1000jours/commit/dafc7bef7e5a43c2fe01452636baa1e856639dd6))
- **recosante:** add recosante widget on evaluation page ([#1742](https://github.com/SocialGouv/1000jours/issues/1742)) ([dafc7be](https://github.com/SocialGouv/1000jours/commit/dafc7bef7e5a43c2fe01452636baa1e856639dd6))

# [1.139.0](https://github.com/SocialGouv/1000jours/compare/v1.138.2...v1.139.0) (2024-03-25)


### Bug Fixes

* 🐛 Ajoute les liens de l'app ZéroAccident ([a75f778](https://github.com/SocialGouv/1000jours/commit/a75f77888ca32dbcdc4adfdc429c2c034b873203))

- 🐛 Ajoute les liens de l'app ZéroAccident ([a75f778](https://github.com/SocialGouv/1000jours/commit/a75f77888ca32dbcdc4adfdc429c2c034b873203))

### Features

* 🎸 Ajoute un champ 'note' pour l'annuaire 1000j blues ([c1e552c](https://github.com/SocialGouv/1000jours/commit/c1e552ce0e4660e1bfec45f590114081fd192cce))
- 🎸 Ajoute un champ 'note' pour l'annuaire 1000j blues ([c1e552c](https://github.com/SocialGouv/1000jours/commit/c1e552ce0e4660e1bfec45f590114081fd192cce))

## [1.138.2](https://github.com/SocialGouv/1000jours/compare/v1.138.1...v1.138.2) (2024-03-18)


### Bug Fixes

* 🐛 Politique de confidentialité 2024 ([5661675](https://github.com/SocialGouv/1000jours/commit/5661675fb24f367ab51b595fc109998bb7c1ed4f))
- 🐛 Politique de confidentialité 2024 ([5661675](https://github.com/SocialGouv/1000jours/commit/5661675fb24f367ab51b595fc109998bb7c1ed4f))

## [1.138.1](https://github.com/SocialGouv/1000jours/compare/v1.138.0...v1.138.1) (2024-03-04)


### Bug Fixes

* Expo build iOS ([1b5b9ff](https://github.com/SocialGouv/1000jours/commit/1b5b9ffad7ff804dda503188beb293ca62ca68fa))
- Expo build iOS ([1b5b9ff](https://github.com/SocialGouv/1000jours/commit/1b5b9ffad7ff804dda503188beb293ca62ca68fa))

# [1.138.0](https://github.com/SocialGouv/1000jours/compare/v1.137.0...v1.138.0) (2024-03-04)


### Features

* ajoute un champ dans la config pour activer zeroAccident ([c31e085](https://github.com/SocialGouv/1000jours/commit/c31e0853c852b559982e642851a9d14d9d3a52f4))
* ajoute un flag zeroAccident sur les articles ([29ee0fd](https://github.com/SocialGouv/1000jours/commit/29ee0fdc549103b7a68fca62b12c5db1a4b22e6c))
* zeroaaccident ([438aab0](https://github.com/SocialGouv/1000jours/commit/438aab05081a50bd0bdd80d5e93d5f16b6f0755d))
- ajoute un champ dans la config pour activer zeroAccident ([c31e085](https://github.com/SocialGouv/1000jours/commit/c31e0853c852b559982e642851a9d14d9d3a52f4))
- ajoute un flag zeroAccident sur les articles ([29ee0fd](https://github.com/SocialGouv/1000jours/commit/29ee0fdc549103b7a68fca62b12c5db1a4b22e6c))
- zeroaaccident ([438aab0](https://github.com/SocialGouv/1000jours/commit/438aab05081a50bd0bdd80d5e93d5f16b6f0755d))

# [1.137.0](https://github.com/SocialGouv/1000jours/compare/v1.136.0...v1.137.0) (2024-01-29)


### Features

* ajoute un flag zeroAccident sur les articles ([a782dc6](https://github.com/SocialGouv/1000jours/commit/a782dc618641ede29c43cf4f468d1adea67b13d5))
- ajoute un flag zeroAccident sur les articles ([a782dc6](https://github.com/SocialGouv/1000jours/commit/a782dc618641ede29c43cf4f468d1adea67b13d5))

# [1.136.0](https://github.com/SocialGouv/1000jours/compare/v1.135.5...v1.136.0) (2024-01-29)


### Features

* ajoute un champ dans la config pour activer zeroAccident ([bf2ce24](https://github.com/SocialGouv/1000jours/commit/bf2ce2443c03cda78f8826b5f6a66a2571beffd3))
- ajoute un champ dans la config pour activer zeroAccident ([bf2ce24](https://github.com/SocialGouv/1000jours/commit/bf2ce2443c03cda78f8826b5f6a66a2571beffd3))

## [1.135.5](https://github.com/SocialGouv/1000jours/compare/v1.135.4...v1.135.5) (2024-01-15)


### Bug Fixes

* 🐛 Corrige la redirection vers les articles depuis les tnd ([ad155a0](https://github.com/SocialGouv/1000jours/commit/ad155a00a61404e1fb291ad5f7df6e271da59aaa))
* Corrige les notifications articles et certaines redirections vers les articles ([e2ab03f](https://github.com/SocialGouv/1000jours/commit/e2ab03f01d8deeb992483018264480b5ba08608d))
* yarn berry + fetch + docker opti ([#1739](https://github.com/SocialGouv/1000jours/issues/1739)) ([204a176](https://github.com/SocialGouv/1000jours/commit/204a1768b78a743d666def2aa715e46299efc0cc))
* **ci:** restore from cnpg ([#1736](https://github.com/SocialGouv/1000jours/issues/1736)) ([8cb13d5](https://github.com/SocialGouv/1000jours/commit/8cb13d53d5a375f357b7ed165922621f1a32eb66))
* **cnpg:** disable preprod backups for real ([0a313f0](https://github.com/SocialGouv/1000jours/commit/0a313f028d3d80395b4d6bd5d78824eba7503d03))
* **cnpg:** use fixed name DB ([8f8796c](https://github.com/SocialGouv/1000jours/commit/8f8796cd82205d403b12636e4a0995941cff3df1))
* **restore:** use defaults recovery user ([#1738](https://github.com/SocialGouv/1000jours/issues/1738)) ([3cefc73](https://github.com/SocialGouv/1000jours/commit/3cefc73649ee5d292c29875bd638bfebd233fd79))
* 🐛 Corrige la navigation vers les articles depuis calendar ([5bcfd15](https://github.com/SocialGouv/1000jours/commit/5bcfd15e745a2e89ba06a44b8eb7eb19ee9df4fc))
- 🐛 Corrige la redirection vers les articles depuis les tnd ([ad155a0](https://github.com/SocialGouv/1000jours/commit/ad155a00a61404e1fb291ad5f7df6e271da59aaa))
- Corrige les notifications articles et certaines redirections vers les articles ([e2ab03f](https://github.com/SocialGouv/1000jours/commit/e2ab03f01d8deeb992483018264480b5ba08608d))
- yarn berry + fetch + docker opti ([#1739](https://github.com/SocialGouv/1000jours/issues/1739)) ([204a176](https://github.com/SocialGouv/1000jours/commit/204a1768b78a743d666def2aa715e46299efc0cc))
- **ci:** restore from cnpg ([#1736](https://github.com/SocialGouv/1000jours/issues/1736)) ([8cb13d5](https://github.com/SocialGouv/1000jours/commit/8cb13d53d5a375f357b7ed165922621f1a32eb66))
- **cnpg:** disable preprod backups for real ([0a313f0](https://github.com/SocialGouv/1000jours/commit/0a313f028d3d80395b4d6bd5d78824eba7503d03))
- **cnpg:** use fixed name DB ([8f8796c](https://github.com/SocialGouv/1000jours/commit/8f8796cd82205d403b12636e4a0995941cff3df1))
- **restore:** use defaults recovery user ([#1738](https://github.com/SocialGouv/1000jours/issues/1738)) ([3cefc73](https://github.com/SocialGouv/1000jours/commit/3cefc73649ee5d292c29875bd638bfebd233fd79))
- 🐛 Corrige la navigation vers les articles depuis calendar ([5bcfd15](https://github.com/SocialGouv/1000jours/commit/5bcfd15e745a2e89ba06a44b8eb7eb19ee9df4fc))

## [1.135.4](https://github.com/SocialGouv/1000jours/compare/v1.135.3...v1.135.4) (2024-01-15)

Expand Down
2 changes: 1 addition & 1 deletion back/strapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ARG NODE_HOME=/opt/$NODE_PACKAGE
ENV NODE_PATH $NODE_HOME/lib/node_modules
ENV PATH $NODE_HOME/bin:$PATH
RUN curl https://nodejs.org/dist/v$NODE_VERSION/$NODE_PACKAGE.tar.gz | tar -xzC /opt/
RUN npm i -g yarn
RUN npm i -g --ignore-scripts yarn

RUN apt-get update && \
apt-get install --no-install-recommends -y \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
},
"whatsapp": {
"type": "boolean"
},
"whatsapp_redirect_message": {
"type": "string"
}
}
}
1 change: 1 addition & 0 deletions back/strapi/api/reponses-epds/config/schema.graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module.exports = {
prenom: String
score_question_dix: String
telephone: String
langue: String
): Boolean

epdsContactConfirmed (
Expand Down
33 changes: 14 additions & 19 deletions back/strapi/api/reponses-epds/services/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,22 @@ const emailTemplate = (info) => ({
<ul>
${
info.email
? `
<li>à l'adresse suivante : <a href="mailto:<%- email %>"><%- email %></a>`
? ` <li>à l'adresse suivante : <a href="mailto:<%- email %>"><%- email %></a></li>`
: ""
}
${
info.telephone
? ` </li>
<li>au numéro suivant : <a href="tel:<%- telephone %>"><%- telephone %></a>`
: ""
}
${
info.moyen
? ` </li>
<li>préférence : <%- moyen %>`
: ""
}
${
info.horaires
? ` </li>
<li>horaires : <%- horaires %>`
? ` <li>au numéro suivant : <a href="tel:<%- telephone %>"><%- telephone %></a></li>`
: ""
}
${info.moyen ? ` <li>préférence : <%- moyen %></li>` : ""}
${info.horaires ? ` <li>horaires : <%- horaires %></li>` : ""}
${
info.score_question_dix
? `
<li>score à la question 10 "Il m’est arrivé de penser à me faire du mal" : <%- score_question_dix %> / 3`
? ` <li>score à la question 10 "Il m’est arrivé de penser à me faire du mal" : <%- score_question_dix %> / 3</li>`
: ""
}
</li>
${info.langue ? ` <li>langue: <%- langue %></li>` : ""}
</ul>
</p>

Expand Down Expand Up @@ -80,6 +67,12 @@ const emailTemplate = (info) => ({
- score à la question 10 "Il m’est arrivé de penser à me faire du mal" : <%- score_question_dix %> / 3`
: ``
}
${
info.langue
? `
- langue : <%- langue %>`
: ``
}

L'équipe 1000 premiers jours.`,
});
Expand All @@ -93,6 +86,7 @@ const contact = async ({
nombre_enfants = "ND",
score_question_dix = "ND",
telephone = "ND",
langue = "ND",
}) => {
if (!process.env["MAIL_SEND_TO"])
throw new Error("Le service mail n'est pas configuré");
Expand All @@ -106,6 +100,7 @@ const contact = async ({
prenom,
score_question_dix,
telephone,
langue,
};

try {
Expand Down
2 changes: 1 addition & 1 deletion front/src/components/menu/accessibility.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const Accessibility: FC = () => {
Pour en savoir plus sur la politique d’accessibilité numérique de l’État
:
</P>
<A url="http://references.modernisation.gouv.fr/accessibilite-numerique">
<A url="https://accessibilite.numerique.gouv.fr/">
Référentiel général d'amélioration de l'accessibilité
</A>
</ScrollView>
Expand Down
2 changes: 1 addition & 1 deletion front/src/components/menu/legalNotice.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const LegalNotice: FC = () => {
Pour en savoir plus sur la politique d’accessibilité numérique de l’État
:
</P>
<A url="http://references.modernisation.gouv.fr/accessibilite-numerique">
<A url="https://accessibilite.numerique.gouv.fr/">
Référentiel général d'amélioration de l'accessibilité
</A>

Expand Down

This file was deleted.

23 changes: 14 additions & 9 deletions front/src/utils/notifications/notification.util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ import { NotificationUtils, StorageUtils } from "..";
import { NotificationType } from "./notification.util";

describe("Notification utils", () => {
describe("Build Articles Notification Content", () => {
const CURRENT_STEP = {
debut: 0,
description: null,
fin: 90,
id: "6",
nom: "De 0 à 3 mois",
ordre: 6,
};
const CURRENT_STEP = {
debut: 0,
description: null,
fin: 90,
id: "6",
nom: "De 0 à 3 mois",
ordre: 6,
};

describe("Build Articles Notification Content", () => {
afterEach(() => {
void AsyncStorage.clear();
});
Expand Down Expand Up @@ -52,9 +52,14 @@ describe("Notification utils", () => {

it("buildArticlesNotificationContent is called with no articles to read (NB_ARTICLE_TO_READ = 0)", async () => {
const NB_ARTICLE_TO_READ = 0;
await StorageUtils.storeObjectValue(
StorageKeysConstants.currentStep,
CURRENT_STEP
);
const content = await NotificationUtils.buildArticlesNotificationContent(
NB_ARTICLE_TO_READ
);

const expected = {
body: Labels.article.notification.congrats.body,
data: {
Expand Down
Loading