Skip to content

Commit

Permalink
feat(candidate):allow candidate to show only MCF compatible AAPs
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreavizou committed Nov 13, 2024
1 parent 2638550 commit d48189d
Show file tree
Hide file tree
Showing 4 changed files with 434 additions and 117 deletions.
280 changes: 261 additions & 19 deletions packages/reva-candidate/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/reva-candidate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"devDependencies": {
"@graphql-codegen/cli": "^5.0.3",
"@graphql-codegen/client-preset": "4.5.0",
"@parcel/watcher": "^2.4.1",
"@parcel/watcher": "^2.5.0",
"@types/node": "^22",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function SetOrganism() {
string | undefined
>();
const [organismSearchPmr, setOrganismSearchPmr] = useState<boolean>(false);
const [organismSearchMcf, setOrganismSearchMcf] = useState<boolean>(false);

const { getRandomOrganismsForCandidacy, selectOrganism } = useSetOrganism({
candidacyId: candidacy.id || "",
Expand All @@ -52,6 +53,7 @@ export default function SetOrganism() {
: undefined,
pmr: organismSearchPmr,
zip: organismSearchZip,
isMcfCompatible: organismSearchMcf,
},
});

Expand Down Expand Up @@ -108,7 +110,14 @@ export default function SetOrganism() {
data-test={`certificates`}
displayBackToHome
>
<h2 className="mt-6 mb-2">Choisissez votre accompagnateur</h2>
<h1 className="mt-6 mb-2">Choix de l'accompagnateur</h1>
<p className="text-xl my-6">
Choisissez votre accompagnateur parmi toute la liste. Vous pouvez
choisir de réaliser votre accompagnement à distance ou sur site. Si vous
souhaitez utiliser votre Compte Personnel de Formation (CPF) pour
financer votre parcours, choisissez un accompagnateur référencé sur Mon
Compte Formation (MCF).
</p>

<div className="mt-6 lg:mb-14 lg:px-10 pb-10 lg:py-8 lg:shadow-lifted border-b lg:border-b-4 lg:border-[#FFA180]">
<h3>Recherchez par nom</h3>
Expand All @@ -127,13 +136,15 @@ export default function SetOrganism() {
setOrganismSearchRemote(filters.organismSearchRemote);
setOrganismSearchZip(filters.organismSearchZip);
setOrganismSearchPmr(filters.organismSearchPmr);
setOrganismSearchMcf(filters.organismSearchMcf);
}}
filters={{
organismSearchText,
organismSearchRemote,
organismSearchOnsite,
organismSearchZip,
organismSearchPmr,
organismSearchMcf,
}}
/>
</div>
Expand Down
Loading

0 comments on commit d48189d

Please sign in to comment.