Skip to content

UX/UI : Lorsque je consulte une candidature depuis l’onglet “candidat” d’une fiche candidat, je devrais revenir sur ce même onglet#5310

Merged
dejafait merged 4 commits into
masterfrom
dejafait/fix_navbar
Jan 20, 2025
Merged

UX/UI : Lorsque je consulte une candidature depuis l’onglet “candidat” d’une fiche candidat, je devrais revenir sur ce même onglet#5310
dejafait merged 4 commits into
masterfrom
dejafait/fix_navbar

Conversation

@dejafait

@dejafait dejafait commented Dec 23, 2024

Copy link
Copy Markdown
Contributor

https://www.notion.so/plateforme-inclusion/Lorsque-je-consulte-une-candidature-depuis-l-onglet-candidat-d-une-fiche-candidat-je-devrais-reve-126e8fa5c35b80dd87bbdf105a7856cb

🤔 Pourquoi ?

Les deux onglets de la page Candidat (voir screenshots ci-dessous) n'ayant pas d'URL propre, si on clique sur un lien puis qu'on revient en arrière, on revient systématiquement sur l'onglet par défaut (informations générales) et pas sur l'onglet secondaire (Candidatures) même si on était dessus avant de cliquer sur le lien.

🍰 Comment ?

On donne à chaque onglet son URL propre en séparant l'unique route actuelle en deux routes. Notez qu'on conserve une unique vue mais qu'on sépare son gabarit en deux.

Chaque route pointe vers son gabarit directement dans le urls.py. Pour cela j'ai d'abord tenté un path("details/<uuid:public_id>", views.JobSeekerDetailView.as_view(), {"template_name": "job_seekers_views/details.html"}, name="details") mais je n'ai pas réussi à le faire fonctionner en aval. Au final j'ai utilisé un simple path("details/<uuid:public_id>", views.JobSeekerDetailView.as_view(template_name="job_seekers_views/details.html"), name="details") qui fonctionne très bien.

💻 Captures d'écran

image image

@dejafait dejafait changed the title Lorsque je consulte une candidature depuis l’onglet “candidat” d’une fiche candidat, je devrais revenir sur ce meme onglet UX/UI : Lorsque je consulte une candidature depuis l’onglet “candidat” d’une fiche candidat, je devrais revenir sur ce meme onglet Dec 23, 2024
@dejafait dejafait marked this pull request as draft December 23, 2024 17:29
@dejafait dejafait added the bug label Dec 23, 2024
@dejafait dejafait force-pushed the dejafait/fix_navbar branch 2 times, most recently from eae5b00 to 87cce32 Compare December 23, 2024 17:32
@dejafait dejafait self-assigned this Dec 23, 2024
@dejafait dejafait added modifié Modifié dans le changelog. and removed bug labels Dec 23, 2024
@dejafait dejafait force-pushed the dejafait/fix_navbar branch 5 times, most recently from 292920f to 5865cec Compare December 26, 2024 09:49
@dejafait dejafait changed the title UX/UI : Lorsque je consulte une candidature depuis l’onglet “candidat” d’une fiche candidat, je devrais revenir sur ce meme onglet UX/UI : Lorsque je consulte une candidature depuis l’onglet “candidat” d’une fiche candidat, je devrais revenir sur ce même onglet Dec 26, 2024
@dejafait dejafait marked this pull request as ready for review December 26, 2024 10:24
@dejafait dejafait requested a review from leo-naeka December 26, 2024 10:25

@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.

👌

Comment thread itou/templates/job_seekers_views/job_applications.html Outdated
@dejafait dejafait force-pushed the dejafait/fix_navbar branch 2 times, most recently from ae28990 to da2b23f Compare January 13, 2025 10:47
@dejafait

Copy link
Copy Markdown
Contributor Author

@leo-naeka Nouvelle revue stp, j'ai utilisé un partiel comme discuté.

@dejafait dejafait requested a review from leo-naeka January 13, 2025 11:00

@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.

Tout bon :)

Nit : j'aurais éventuellement utilisé l'anglais pour la valeur de active_nav_tab : pour moi c'est du "code", pas du display… À toi de voir, pas bloquant

@dejafait dejafait force-pushed the dejafait/fix_navbar branch from da2b23f to 27d9753 Compare January 20, 2025 14:29
@dejafait dejafait added this pull request to the merge queue Jan 20, 2025
Merged via the queue into master with commit 643a321 Jan 20, 2025
@dejafait dejafait deleted the dejafait/fix_navbar branch January 20, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants