Opened 3 months ago

Last modified 8 days ago

#36629 assigned Bug

In the admin m2m widget filter_vertical, the “choose all” button is missing.

Reported by: Antoliny Owned by: Nilesh Pahari
Component: contrib.admin Version: 5.2
Severity: Normal Keywords: filter_vertical
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: yes

Description

Currently, the “choose_all” button exists for filter_horizontal, but it is not available when using filter_vertical.

filter_horizontal


filter_vertical


I’m not exactly sure why the choose_all button doesn’t exist for filter_vertical.
I don’t think the “choose all” button has a significant impact on page height.
Unless there’s a specific reason, I believe the choose_all button should naturally exist for filter_vertical as well.

Additionally, the “choose all” button was also not present in versions 4.2 and 5.0.

5.0


4.2


Attachments (4)

vertical.png (84.8 KB ) - added by Antoliny 3 months ago.
horizontal.png (129.1 KB ) - added by Antoliny 3 months ago.
vertical_5.0.png (52.5 KB ) - added by Antoliny 3 months ago.
vertical_4.2.png (46.4 KB ) - added by Antoliny 3 months ago.

Download all attachments as: .zip

Change History (22)

by Antoliny, 3 months ago

Attachment: vertical.png added

by Antoliny, 3 months ago

Attachment: horizontal.png added

by Antoliny, 3 months ago

Attachment: vertical_5.0.png added

by Antoliny, 3 months ago

Attachment: vertical_4.2.png added

comment:1 by Alex Hatfield, 3 months ago

Owner: set to Alex Hatfield
Status: newassigned

comment:2 by Alex Hatfield, 3 months ago

Bug observed in Django 5.2.4 and 5.1.12 -> indicating this is not a regression issue, so shifting focus to addressing and implementing a fix.

in reply to:  2 comment:3 by Antoliny, 3 months ago

Replying to Alex Hatfield:

Bug observed in Django 5.2.4 and 5.1.12 -> indicating this is not a regression issue, so shifting focus to addressing and implementing a fix.

Hello Alex, thank you for choosing to work on this.
However, this ticket has not been accepted yet, so it’s fine to start after it has been accepted :)

comment:4 by Sarah Boyce, 3 months ago

Triage Stage: UnreviewedAccepted

Perhaps this was because the buttons were not responsive (#35924), and so it makes sense to include these.
I think filter_vertical should be roughly equivalent to the mobile view of filter_horizontal

comment:5 by Alex Hatfield, 3 months ago

Owner: Alex Hatfield removed
Status: assignednew

Hi Antoliny, thanks for the comment - apologies for causing any confusion, will be sure to wait for acceptance next time.
I haven't been able to make any progress so deassigning myself. I believe I've done this correctly but please let me know if not (apologies this is my first ticket).

in reply to:  5 comment:6 by Antoliny, 3 months ago

Replying to Alex Hatfield:

Hi Antoliny, thanks for the comment - apologies for causing any confusion, will be sure to wait for acceptance next time.
I haven't been able to make any progress so deassigning myself. I believe I've done this correctly but please let me know if not (apologies this is my first ticket).

No worries Alex, thank you for giving this ticket a try!
It’s totally fine to start working before accepted — I just mentioned it because I didn’t want your efforts to go to waste in case it didn’t get accepted.
You’re welcome to pick this up again anytime! (Now that it’s accepted, as long as no one else has taken over!)

comment:7 by Mridul, 3 months ago

Owner: set to Mridul
Status: newassigned

in reply to:  7 comment:8 by Md. Miftahul Kabir, 2 months ago

Replying to Mridul:
Hello Mridul, can I change the owner to me? I already solved this ticket for my personal practice and I was able to solve the issue. If you think it's okay then I can change the owner status to me and create a pull request.
Thank you

comment:9 by Mridul, 2 months ago

Hey,
Yes, no problem please feel free to go agead and do that

comment:10 by Md. Miftahul Kabir, 2 months ago

Owner: changed from Mridul to Md. Miftahul Kabir

comment:11 by Md. Miftahul Kabir, 2 months ago

Has patch: set

comment:12 by Antoliny, 2 months ago

Needs tests: set

comment:13 by Nilesh Pahari, 13 days ago

Hi! Since this has been open for a while, can I pick it up? I’m new to the codebase and this would be my first contribution.

comment:14 by Nilesh Pahari, 12 days ago

Owner: changed from Md. Miftahul Kabir to Nilesh Pahari

comment:15 by Nilesh Pahari, 11 days ago

Hi,
It looks like Md. Miftahul Kabir already fixed the issues and only the tests are needed, should I create a new PR adding tests along with the code written by Md. Miftahul Kabir and mention him?

Last edited 11 days ago by Nilesh Pahari (previous) (diff)

comment:16 by Jacob Walls, 11 days ago

Yes, please add co-authored-by in the commit message, check git log for examples or see online tutorials.

comment:18 by Nilesh Pahari, 8 days ago

Needs tests: unset
Note: See TracTickets for help on using tickets.
Back to Top