Skip to content

UX/UI: Mise en avant du bouton "Postuler pour ce candidat"#5096

Merged
hellodeloo merged 2 commits intomasterfrom
deloo/add-introjs-to-job-seeker-list
Nov 28, 2024
Merged

UX/UI: Mise en avant du bouton "Postuler pour ce candidat"#5096
hellodeloo merged 2 commits intomasterfrom
deloo/add-introjs-to-job-seeker-list

Conversation

@hellodeloo
Copy link
Copy Markdown
Contributor

@hellodeloo hellodeloo commented Nov 14, 2024

🤔 Pourquoi ?

Mettre en avant la nouvelle fonctionnalité pour "Postuler pour un candidat"

@hellodeloo hellodeloo self-assigned this Nov 14, 2024
@hellodeloo hellodeloo added the ajouté Ajouté dans le changelog. label Nov 14, 2024
@hellodeloo hellodeloo marked this pull request as draft November 14, 2024 17:40
@notion-workspace
Copy link
Copy Markdown

@hellodeloo hellodeloo changed the title Deloo/add introjs to job seeker list UX/UI: Mise en avant du bouton "Postuler pour ce candidat" Nov 14, 2024
@hellodeloo hellodeloo force-pushed the deloo/add-introjs-to-job-seeker-list branch 6 times, most recently from 4ccb4c7 to c9eb2f7 Compare November 15, 2024 15:38
@hellodeloo hellodeloo added the 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC label Nov 15, 2024
@hellodeloo hellodeloo marked this pull request as ready for review November 15, 2024 15:50
@github-actions
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Member

@francoisfreitag francoisfreitag left a comment

Choose a reason for hiding this comment

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

A-t-on une stratégie pour retirer ces éléments de présentation ?

Comment thread itou/templates/apply/includes/eligibility_badge.html Outdated
Comment thread itou/templates/apply/includes/eligibility_badge.html Outdated
Comment thread itou/templates/job_seekers_views/list.html Outdated
Comment thread itou/templates/job_seekers_views/list.html Outdated
Comment thread itou/templates/job_seekers_views/includes/list_results.html Outdated
@hellodeloo
Copy link
Copy Markdown
Contributor Author

hellodeloo commented Nov 18, 2024

A-t-on une stratégie pour retirer ces éléments de présentation ?

@francoisfreitag Oui, on en a parlé ce matin. Y'a une carte (avec une date) pour retirer l'introjs qui arrive.

@EwenKorr
Copy link
Copy Markdown
Contributor

EwenKorr commented Nov 18, 2024

C'est joli ! J'espère que ça ne va pas revenir régulièrement (nouveau navigateur par exemple).
Est-ce que ça ne vaudrait pas le coup d'enregistrer en bdd les tutos effectués ?

Edit : Suite à la réponse au-dessus, c'est ok alors !

Comment thread itou/templates/job_seekers_views/list.html Outdated
@francoisfreitag francoisfreitag force-pushed the deloo/add-introjs-to-job-seeker-list branch from 8c64db2 to ca35455 Compare November 19, 2024 12:43
Comment on lines +68 to +69
let introJsDone = localStorage.getItem('introJsBtnPostuler') === 'done';
if (introJsDone) return;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Pourquoi ne pas utiliser le cookie? Pour éviter de l’envoyer au serveur?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

À moins que je me trompe, localStorage n'envoie rien au serveur, tout comme les cookies

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Les cookies sont envoyés au serveur, pas le localStorage.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah je croyais les deux. Sinon, why localStorage ? Question d'habitude, je dirais. Si tu préfères cookie, je peux passer en cookie

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Il me semble qu’une version précédente utilisait https://introjs.com/docs/tour/options#dontshowagaincookie. Comme la lib propose de stocker la préférence pour nous, j’aurais tendance à lui déléguer le problème 🤷

Copy link
Copy Markdown
Contributor Author

@hellodeloo hellodeloo Nov 19, 2024

Choose a reason for hiding this comment

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

Oui mais je ne peux pas utiliser leur système de cookie sans afficher la case à cocher "ne plus afficher" (ce qu'on ne veut pas). Du coup, j'ai refait en version cookie (durée de vie a 90 jours, car on doit retirer l'introjs a 90 jours, donc aide mémoire si jamais on oublie de la faire)

@hellodeloo hellodeloo force-pushed the deloo/add-introjs-to-job-seeker-list branch from ca35455 to adc9757 Compare November 19, 2024 17:00
Copy link
Copy Markdown
Member

@francoisfreitag francoisfreitag left a comment

Choose a reason for hiding this comment

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

Ça m’a l’air bien, j’ai poussé quelques améliorations JS. Tu peux les squash si elles te conviennent et merger.

doneLabel: 'Fin',
steps: [{
title: 'Postulez directement pour ce candidat !',
element: document.querySelector('#introJsBtnPostuler'),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Un peu plus clair et plus rapide.

Suggested change
element: document.querySelector('#introJsBtnPostuler'),
element: document.getElementById('introJsBtnPostuler'),

@hellodeloo hellodeloo force-pushed the deloo/add-introjs-to-job-seeker-list branch from 412c4b6 to b6e8420 Compare November 28, 2024 16:43
@hellodeloo hellodeloo added this pull request to the merge queue Nov 28, 2024
Merged via the queue into master with commit f32791e Nov 28, 2024
@hellodeloo hellodeloo deleted the deloo/add-introjs-to-job-seeker-list branch November 28, 2024 17:05
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 ajouté Ajouté dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants