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

feat(lba-2281): suppression traitements réponse recruteur "ne sais pas" #1819

Merged
merged 2 commits into from
Feb 5, 2025
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
2 changes: 0 additions & 2 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ fileignoreconfig:
checksum: 23f500afe4d0984a4680e387e6e67223bdbdc5d954e984f400451b26bac248ce
- filename: server/static/templates/mail-candidat-entretien.mjml.ejs
checksum: 53067858567e2878f5f65da06be9efc6902a691b36299167d54343ab30162e49
- filename: server/static/templates/mail-candidat-nsp.mjml.ejs
checksum: 203d57160c0cda492f4172d9651c2dea9b8d7b4b3ab0e25f80a24438e3f1e184
- filename: server/static/templates/mail-candidat-offre-emploi-lba.mjml.ejs
checksum: 3188f43c847d071acfb7a366748647ab88d821abb3e022830b82fd092db90f83
- filename: server/static/templates/mail-candidat-recruteur-lba.mjml.ejs
Expand Down
18 changes: 0 additions & 18 deletions server/src/services/application.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -831,24 +831,6 @@ export const sendMailToApplicant = async ({
})
break
}
case ApplicationIntention.NESAISPAS: {
mailer.sendEmail({
to: applicantEmail,
cc: email!,
subject: `Réponse de ${application.company_name} à la candidature de ${applicant.firstname} ${applicant.lastname}`,
template: getEmailTemplate("mail-candidat-nsp"),
data: {
...sanitizeApplicationForEmail(application),
...sanitizeApplicantForEmail(applicant),
partner,
...images,
email,
phone: removeHtmlTagsFromString(removeUrlsFromText(phone)),
comment: prepareMessageForMail(removeHtmlTagsFromString(company_feedback)),
},
})
break
}
case ApplicationIntention.REFUS: {
mailer.sendEmail({
to: applicantEmail,
Expand Down
92 changes: 0 additions & 92 deletions server/static/templates/mail-candidat-nsp.mjml.ejs

This file was deleted.

1 change: 0 additions & 1 deletion shared/constants/application.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export enum ApplicationIntention {
ENTRETIEN = "entretien",
NESAISPAS = "ne_sais_pas",
REFUS = "refus",
}

Expand Down
2 changes: 1 addition & 1 deletion ui/components/IntentionForm.tsx/IntentionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const IntentionForm = ({ company_recruitment_intention, id, token }: { co
<Box>
<IntensionFormNavigation />
{!["ok_sent", "canceled"].includes(sendingState) && (
<Flex direction="column" width="80%" maxWidth="992px" margin="auto" pt={12} alignItems="center" data-testid="SatisfactionFormSuccess">
<Flex direction="column" width="80%" maxWidth="992px" margin="auto" pt={12} alignItems="center" data-testid="IntentionFormSuccess">
<Box p={4} backgroundColor="#E1FEE8" fontWeight={700} color="#18753C" width="100%" maxWidth="800px">
<SuccessCircle width="20px" fillHexaColor="#18753C" mr={2} />
{text.confirmation}
Expand Down
2 changes: 1 addition & 1 deletion ui/components/IntentionForm.tsx/IntentionFormResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const IntensionFormResult = ({ intention, canceled = false }: { intention
<Text as="h1" fontSize="24px" fontWeight={700}>
Merci d&apos;avoir pris le temps d&apos;envoyer un message au candidat.
</Text>
{intention === ApplicationIntention.NESAISPAS || intention === ApplicationIntention.ENTRETIEN ? (
{intention === ApplicationIntention.ENTRETIEN ? (
<Text fontSize="20px" pt={4}>
Il dispose désormais de vos coordonnées pour poursuivre l&apos;échange.
</Text>
Expand Down
191 changes: 0 additions & 191 deletions ui/components/SatisfactionForm/SatisfactionForm.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions ui/components/SatisfactionForm/SatisfactionFormNavigation.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions ui/components/SatisfactionForm/SatisfactionFormSuccess.tsx

This file was deleted.

Loading