Skip to content

Prescripteur : amélioration de la modale confirmant qu'un candidat existe déjà avec ce NIR ou cet email [GEN-2198]#5537

Merged
EwenKorr merged 3 commits into
masterfrom
ewen/modale-existing-jobseeker
Feb 19, 2025
Merged

Prescripteur : amélioration de la modale confirmant qu'un candidat existe déjà avec ce NIR ou cet email [GEN-2198]#5537
EwenKorr merged 3 commits into
masterfrom
ewen/modale-existing-jobseeker

Conversation

@EwenKorr

@EwenKorr EwenKorr commented Feb 3, 2025

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

Lorsqu'on insère un NIR ou une adresse mail au début du parcours de création de compte candidat, une modale apparaît lorsqu'un candidat correspond à ce NIR ou cette adresse email.

Dans le cas d'une création de compte candidat sans candidature, il a plusieurs sous-cas :

  • le candidat existe déjà et est présent dans la liste "Mes candidats"
  • le candidat existe déjà et n'est pas présent dans la liste

La présente PR ajoute ces deux cas à cette modale.

🏝️ Comment tester ?

  • en tant que prescripteur (habilité ou non), créer un compte candidat depuis la liste de "Mes candidats" grâce au bouton dédié
  • insérer le NIR d'un compte existant
    • soit absent de la liste Mes candidats
    • soit présent dans la liste parce que créé par l'utilisateur en cours
    • soit présent dans la liste parce que créé par un membre de l'organisation en cours
    • soit présent dans la liste parce que l'utilisateur en cours a postulé pour lui
  • même chose avec l'adresse email
  • Consulter le profil ou Postuler et vérifier qu'on arrive au bon endroit

💻 Captures d'écran

image

@EwenKorr EwenKorr added the modifié Modifié dans le changelog. label Feb 3, 2025
@EwenKorr EwenKorr self-assigned this Feb 3, 2025
@EwenKorr EwenKorr force-pushed the ewen/modale-existing-jobseeker branch 2 times, most recently from 16b68b8 to f631b74 Compare February 6, 2025 09:18
Comment thread itou/www/job_seekers_views/views.py Outdated
@EwenKorr EwenKorr force-pushed the ewen/modale-existing-jobseeker branch from f631b74 to 6520bef Compare February 6, 2025 09:41
@EwenKorr EwenKorr marked this pull request as ready for review February 6, 2025 10:31
@EwenKorr EwenKorr added the 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC label Feb 6, 2025
@EwenKorr EwenKorr changed the title Prescripteur : amélioration de la modale confirmant qu'un candidat existe déjà avec ce NIR ou cet email Prescripteur : amélioration de la modale confirmant qu'un candidat existe déjà avec ce NIR ou cet email [GEN-2198] Feb 6, 2025
@notion-workspace

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Feb 6, 2025

Copy link
Copy Markdown

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

Comment thread itou/www/job_seekers_views/views.py Outdated
@hellodeloo hellodeloo self-requested a review February 6, 2025 11:13

@hellodeloo hellodeloo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niveau html/css/theme, c'es tout bon 👍

@leo-naeka leo-naeka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je livre déjà ces commentaires, dans l'attente de la reprise avec une méthode unique pour récupérer la liste de ses candidats ;)

Comment thread itou/templates/job_seekers_views/step_check_job_seeker_nir.html
Comment thread itou/www/job_seekers_views/views.py Outdated
Comment thread tests/www/job_seekers_views/test_create_or_update.py Outdated
@EwenKorr EwenKorr force-pushed the ewen/modale-existing-jobseeker branch 2 times, most recently from f539af9 to e85f492 Compare February 17, 2025 15:24
@EwenKorr EwenKorr marked this pull request as draft February 17, 2025 16:01
@EwenKorr EwenKorr force-pushed the ewen/modale-existing-jobseeker branch from e85f492 to e3ecadd Compare February 18, 2025 07:27
Comment thread itou/users/models.py Outdated
Comment thread itou/users/models.py Outdated
@EwenKorr EwenKorr force-pushed the ewen/modale-existing-jobseeker branch 4 times, most recently from 06b5470 to 56c71ac Compare February 18, 2025 14:52
@EwenKorr EwenKorr marked this pull request as ready for review February 18, 2025 14:58

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'imagine que celui-ci tu peux le supprimer ?

This is used to get a list of a user's job seeker ids (ie. job seekers
created by the user, or by the current organization, or for whom the
user has applied).

This logic was located in a view in job_seekers_views but is better in
the ItouUserManager, in order to be used as
`User.objects.linked_job_seeker_ids(user, organization)`
Information other that the public_id will be used.
Comment thread itou/templates/job_seekers_views/step_check_job_seeker_nir.html Outdated
Comment thread itou/templates/job_seekers_views/step_check_job_seeker_nir.html Outdated
In CheckNIR or SearchByEmail, we display a modal when a job seeker
matches the NIR or email. There are multiple cases, and the wording
should reflect them:
- in the context of a job application
- GPS
- standalone creation, when a job seeker isn't in the user's list
- standalone creation, when a job seeker is already in the user's list
@EwenKorr EwenKorr force-pushed the ewen/modale-existing-jobseeker branch from 56c71ac to d954b64 Compare February 18, 2025 15:52
@EwenKorr EwenKorr added this pull request to the merge queue Feb 19, 2025
Merged via the queue into master with commit c0abc20 Feb 19, 2025
@EwenKorr EwenKorr deleted the ewen/modale-existing-jobseeker branch February 19, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants