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

UX/UI : Limiter la sélection rapide à un candidat dans la liste des PASS IAE et salariés [GEN-1687] #4345

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

francoisfreitag
Copy link
Contributor

@francoisfreitag francoisfreitag commented Jul 2, 2024

🤔 Pourquoi ?

Le thème casse partiellement le MultipleChoiceField, utilisons plutôt le composant de sélection d’un seul élément.
Dans tous les cas, les utilisateurs utilisent le widget pour accéder rapidement à un candidat, et non pour limiter les éléments présents dans la liste à un ensemble de candidats.

🏝️ Comment tester

  1. Se connecter en tant que l’EI
  2. http://localhost:8000/approvals/list
  3. Utiliser le filtre de salarié

💻 Captures d'écran

image

@@ -42,10 +42,10 @@ class ApprovalExpiry(TextChoices):


class ApprovalForm(forms.Form):
users = forms.MultipleChoiceField(
Copy link
Contributor

Choose a reason for hiding this comment

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

le champ s'appelle user sur les PASS, est-ce qu'on veut vraiment renommer ici ?
Ou est-ce qu'il faudrait un jour renommer Approval.user en Approval.job_seeker

Copy link
Contributor

Choose a reason for hiding this comment

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

Le renommage de Approval.user en Approval.job_seeker serait à mon avis une bonne chose mais à faire de nuit 😬

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On pourrait renommer Approval.job_seeker à mon avis, ce serait plus clair.

@@ -42,10 +42,10 @@ class ApprovalExpiry(TextChoices):


class ApprovalForm(forms.Form):
users = forms.MultipleChoiceField(
Copy link
Contributor

Choose a reason for hiding this comment

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

Le renommage de Approval.user en Approval.job_seeker serait à mon avis une bonne chose mais à faire de nuit 😬

The select multiple widget is partially broken with the itou-theme.
In most places, users actually just want to quickly navigate to a single
entry in the list. Simplify the UI and remove bugs by using a
ChoiceField instead of a MultipleChoiceField.
@francoisfreitag francoisfreitag added this pull request to the merge queue Jul 2, 2024
Merged via the queue into master with commit 012fbc2 Jul 2, 2024
11 checks passed
@francoisfreitag francoisfreitag deleted the ff/select-pass branch July 2, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants