-
Notifications
You must be signed in to change notification settings - Fork 25
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
Candidature: conserver le mode d'affichage (Tableau/Liste) quand on efface tous les filtres #5435
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tu pourrais vérifier que le lien de reset contient ce query param ?
When removing all filter from table view, users expect to stay in table view.
e83ace4
to
cd4a256
Compare
J'ai snapshoté :) |
@@ -10,15 +10,15 @@ | |||
{% if btn_dropdown_filter|default:False %} | |||
<div class="ms-md-auto" id="apply-list-filter-counter"{% if request.htmx %} hx-swap-oob="true"{% endif %}> | |||
{% if filters_counter > 0 %} | |||
<a href="{{ reset_url }}" class="btn btn-ico btn-dropdown-filter" aria-label="Réinitialiser {{ filters_counter|pluralizefr:"le filtre actif,les filtres actifs" }}"> | |||
<a href="{{ reset_url }}?display={{ display_kind }}" class="btn btn-ico btn-dropdown-filter" aria-label="Réinitialiser {{ filters_counter|pluralizefr:"le filtre actif,les filtres actifs" }}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi ne pas avoir utilisé un URL dédié ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avec un {% url_add_query list_url display=display_kind as reset_url %}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non, je pensais changer directement le path
plutôt qu’un query param. Ça permet de retenir la vue en cours sans tricher.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah oui, mais c'est plus impactant cela 😅 .
Avec la vue tableau qui va passer par défaut (et du coup la vue liste qui serait en sursis ?), je ne vais pas me précipiter 👀
🤔 Pourquoi ?
Actuellement, quand on se met en mode tableau et qu'on ajoute des filtres (ou dans l'autre sens), si on enlève ensuite les filtres avec le bouton "Effacer tout", on est rebasculé en mode liste.
Pas trop d'idée de test par contre...
🍰 Comment ?
🚨 À vérifier
🏝️ Comment tester
💻 Captures d'écran