From 2cdda0ca60e9c1218975d3844cdec91dc5ee4c4d Mon Sep 17 00:00:00 2001 From: Guillaume Cauchois Date: Tue, 17 Dec 2024 12:07:53 +0100 Subject: [PATCH 1/2] feat(Refering): wording helpNeed in refering context --- .../referer/forms/formReferingExpectations.ts | 8 ++- src/constants/helps.tsx | 71 +++++++++++++++++++ 2 files changed, 76 insertions(+), 3 deletions(-) diff --git a/src/components/backoffice/referer/forms/formReferingExpectations.ts b/src/components/backoffice/referer/forms/formReferingExpectations.ts index 89a6241d..747a02a9 100644 --- a/src/components/backoffice/referer/forms/formReferingExpectations.ts +++ b/src/components/backoffice/referer/forms/formReferingExpectations.ts @@ -1,6 +1,8 @@ import { FormSchema } from 'src/components/forms/FormSchema'; -import { HelpValue, ParametresHelpCardContents } from 'src/constants/helps'; -import { USER_ROLES } from 'src/constants/users'; +import { + HelpValue, + ReferingCandidateHelpCardContents, +} from 'src/constants/helps'; export const formReferingExpectations: FormSchema<{ helpNeeds: HelpValue[]; @@ -11,7 +13,7 @@ export const formReferingExpectations: FormSchema<{ id: 'helpNeeds', name: 'helpNeeds', component: 'select-list', - options: ParametresHelpCardContents[USER_ROLES.CANDIDATE], + options: ReferingCandidateHelpCardContents, showLabel: false, isRequired: true, isMulti: true, diff --git a/src/constants/helps.tsx b/src/constants/helps.tsx index 8612f0d2..e928499e 100644 --- a/src/constants/helps.tsx +++ b/src/constants/helps.tsx @@ -108,6 +108,77 @@ export const ParametresHelpCardTitles: { }, } as const; +export const ReferingCandidateHelpCardContents: (FilterConstant & { + icon: React.ReactNode; + description: string; +})[] = [ + { + icon: ( + Poignée de main + ), + value: 'tips', + label: 'Demander des conseils aux membres de la communauté', + description: + "Recevoir des conseils personnalisés et un accompagnement de la part de nos coachs pour l'aider dans son parcours professionnel.", + }, + { + icon: ( + Mallette + ), + value: 'interview', + label: 'Se préparer aux entretiens d’embauche', + description: + 'Se préparer à ses entretiens grâce aux conseils et au soutien des coachs Entourage Pro.', + }, + { + icon: ( + CV + ), + value: 'cv', + label: 'Réaliser son CV et ses lettres de motivation', + description: + 'Profiter de l’expertise des coachs Entourage Pro pour concevoir un CV et des lettres de motivation qui valorisent ses atouts et compétences.', + }, + { + icon: ( + Disscution + ), + value: 'event', + label: 'Se rencontrer et échanger avec les membres de la communauté', + description: + "Rejoindre notre communauté lors d'événements pour partager ses expériences, apprendre des autres et tisser des liens professionnels précieux.", + }, + { + icon: ( + Réseaux sociaux + ), + value: 'network', + label: 'Faire grandir son réseau professionnel', + description: + "Multiplier les opportunités professionnelles en entrant en lien avec des professionnels qui peuvent le soutenir et lui ouvrir des portes sur le marché de l'emploi.", + }, +]; + export const ParametresHelpCardContents: { [K in NormalUserRole]: (FilterConstant & { icon: React.ReactNode; From 00697ec9415008d0c076014d8dffa1c23d913874 Mon Sep 17 00:00:00 2001 From: Guillaume Cauchois Date: Wed, 18 Dec 2024 16:36:50 +0100 Subject: [PATCH 2/2] fix: ReferedCandidateHelpCardContents --- .../backoffice/referer/forms/formReferingExpectations.ts | 4 ++-- src/constants/helps.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/backoffice/referer/forms/formReferingExpectations.ts b/src/components/backoffice/referer/forms/formReferingExpectations.ts index 747a02a9..022d68de 100644 --- a/src/components/backoffice/referer/forms/formReferingExpectations.ts +++ b/src/components/backoffice/referer/forms/formReferingExpectations.ts @@ -1,7 +1,7 @@ import { FormSchema } from 'src/components/forms/FormSchema'; import { HelpValue, - ReferingCandidateHelpCardContents, + ReferedCandidateHelpCardContents, } from 'src/constants/helps'; export const formReferingExpectations: FormSchema<{ @@ -13,7 +13,7 @@ export const formReferingExpectations: FormSchema<{ id: 'helpNeeds', name: 'helpNeeds', component: 'select-list', - options: ReferingCandidateHelpCardContents, + options: ReferedCandidateHelpCardContents, showLabel: false, isRequired: true, isMulti: true, diff --git a/src/constants/helps.tsx b/src/constants/helps.tsx index e928499e..37dc1ae2 100644 --- a/src/constants/helps.tsx +++ b/src/constants/helps.tsx @@ -108,7 +108,7 @@ export const ParametresHelpCardTitles: { }, } as const; -export const ReferingCandidateHelpCardContents: (FilterConstant & { +export const ReferedCandidateHelpCardContents: (FilterConstant & { icon: React.ReactNode; description: string; })[] = [