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

[FEATURE] Conditionner l'affichage du bloc en fonction de si la complémentaire sélectionnée possède un référentiel externe (PIX-12215) #8829

Conversation

mcampourcy
Copy link
Contributor

🦄 Problème

Nous voulons faire porter la notion d’inscription d’un candidat à une certif Pix coeur de manière détachée d’une certif complémentaire. Mais aujourd’hui nous assumons qu’un candidat passe toujours un pix coeur.

🤖 Proposition

Lors de l’appel /api/certification-point-of-contacts/me, on retourne actuellement les habilitations du centre de certification. Les habilitations sont les certification complémentaire auquel le centre à le droit de faire passer des certifications aux candidats :

const user = {
  habilitations: [
      { id: 0, label: 'Certif complémentaire 1', key: 'COMP_1', hasComplementaryReferential: false },
       { id: 1, label: 'Certif complémentaire 2', key: 'COMP_2', hasComplementaryReferential: true },
  ]
}

Dans la modale d’ajout de candidat, ajouter cette information au conditionnement du bloc qui propose de passer une certification complémentaire seule ou avec le coeur. Ne pas afficher le bloc pour les certifications complémentaire n’ayant pas de référentiel externe (comme le CléA)

🌈 Remarques

Pour rappel, le bloc est conditionné par deux informations :

  • le fait d'être pilote Séparation Pix/Pix+
  • que la certification complémentaire sélectionnée ai un référentiel externe pour la passer seule (hasComplementaryReferential)

💯 Pour tester

  • Se connecter sur Pix Certif avec [email protected]
  • Choisir une session existante > onglet candidats > ajouter un candidat via la modale
  • Constater qu'on voit bien les certifications complémentaires, rien de plus
  • Passer dans l'autre centre de certification, qui est pilote
  • Créer une session puis ajouter un candidat
  • Dans "Certification complémentaire", la sélection de "Aucune" et "CléA" ne doit apporter aucun changement.
  • La sélection des autres certifications complémentaires (PixX Droit, PixX Edu 1er et 2nd degré), le nouveau bloc doit s'afficher.
Capture d’écran 2024-05-03 à 10 51 00

@pix-bot-github
Copy link

Une fois les applications déployées, elles seront accessibles via les liens suivants :

Les variables d'environnement seront accessibles via les liens suivants :

@mcampourcy mcampourcy force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch from 9ae69ca to 6706d8a Compare May 3, 2024 09:14
@mcampourcy mcampourcy changed the base branch from dev to pix-12214-is-certif-center-complementary-pilot May 3, 2024 09:15
@mcampourcy mcampourcy force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch from 6706d8a to a7a6793 Compare May 3, 2024 09:21
@mcampourcy mcampourcy force-pushed the pix-12214-is-certif-center-complementary-pilot branch from 4ccf514 to a8c332e Compare May 3, 2024 09:23
@mcampourcy mcampourcy force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch 2 times, most recently from f9a8dcd to 61b8c1f Compare May 3, 2024 09:30
@mcampourcy mcampourcy changed the base branch from pix-12214-is-certif-center-complementary-pilot to dev May 3, 2024 09:34
@mcampourcy mcampourcy force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch 2 times, most recently from d024670 to 74d0004 Compare May 3, 2024 09:41
@Steph0 Steph0 force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch from 74d0004 to 954379f Compare May 3, 2024 09:43
@mcampourcy mcampourcy force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch 4 times, most recently from 397aa3d to 931527b Compare May 3, 2024 09:56
@mcampourcy mcampourcy changed the base branch from dev to pix-12214-is-certif-center-complementary-pilot May 3, 2024 09:56
@mcampourcy mcampourcy force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch from 931527b to 2c2118f Compare May 3, 2024 09:59
@mcampourcy mcampourcy marked this pull request as ready for review May 3, 2024 10:01
@mcampourcy mcampourcy force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch 4 times, most recently from d7cde46 to 2505ea0 Compare May 3, 2024 13:44
@Steph0 Steph0 force-pushed the pix-12214-is-certif-center-complementary-pilot branch from a8c332e to ea72ddd Compare May 6, 2024 08:59
Base automatically changed from pix-12214-is-certif-center-complementary-pilot to dev May 6, 2024 09:05
@Steph0 Steph0 force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch from 2505ea0 to e8ca5a0 Compare May 6, 2024 09:08
@aceol
Copy link
Contributor

aceol commented May 6, 2024

Test func presque OK! Si on selectionne ensuite CléA le bloc disparait, si on selectionne aucune le bloc reste

@mcampourcy mcampourcy force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch 3 times, most recently from 87efd19 to 87947d0 Compare May 7, 2024 09:22
@AndreiaPena
Copy link
Member

AndreiaPena commented May 10, 2024

Remarque : La question reste visible alors que la modale est fermé. Changer la valeur du booléen lors de la fermeture de la modale.

(ajout d'une ligne dans la closeModal, à confirmer avec l'équipe)

Enregistrement.de.l.ecran.2024-05-10.a.10.19.24.mov

@AndreiaPena AndreiaPena force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch 2 times, most recently from da4a102 to 763a337 Compare May 13, 2024 07:53
@pix-service-auto-merge pix-service-auto-merge force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch 2 times, most recently from 05aa0d7 to 27f2e49 Compare May 13, 2024 09:12
Steph0 and others added 3 commits May 13, 2024 09:18
…-contact database request

Co-authored-by: mcampourcy <[email protected]>
Co-authored-by: Steph0 <[email protected]>
…fication point of contact repository

Co-authored-by: mcampourcy <[email protected]>
@pix-service-auto-merge pix-service-auto-merge force-pushed the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch from 27f2e49 to 6951f32 Compare May 13, 2024 09:18
@pix-service-auto-merge pix-service-auto-merge merged commit 2a3c1c6 into dev May 13, 2024
4 of 7 checks passed
@pix-service-auto-merge pix-service-auto-merge deleted the pix-12215-display-complementary-alone-options-when-complementary-certfication-has-external-referential branch May 13, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants