8000 Fixed #36255 -- Improved accessibility of the admin action button. by gtossou · Pull Request #19300 · django/django · GitHub
[go: up one dir, main page]

Skip to content

Fixed #36255 -- Improved accessibility of the admin action button. #19300

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

Closed
wants to merge 588 commits into from

Conversation

gtossou
Copy link
Contributor
@gtossou gtossou commented Mar 23, 2025

Trac ticket number

ticket-36255

Branch description

Rename Django Admin's "Go" button and remove its title attribute

Old naming
image

New naming
image

Checklist

  • This PR targets the main branch.
  • The commit message is written in past tense, mentions the ticket number, and ends with a period.
  • I have checked the "Has patch" ticket flag in the Trac system.
  • I have added or updated relevant tests.
  • I have added or updated relevant docs, including release notes if applicable.
  • I have attached screenshots in both light and dark modes for any UI changes.

@github-actions github-actions bot added the no ticket Based on PR title, no linked Trac ticket label Mar 23, 2025
Copy link
@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello! Thank you for your contribution 💪

As it's your first contribution be sure to check out the patch review checklist.

If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!

If you have any design or process questions then you can ask in the Django forum.

Welcome aboard ⛵️!

Copy link
Contributor
@sarahboyce sarahboyce left a comment

Choose a reason for hiding this comment

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

Thank you for this @gtossou ⭐ this looks good

My only concern is this means a number of our admin documentation images will be outdated (see docs/intro/_images and docs/ref/contrib/admin/_images).
Could you take a look at updating these?

Note this process is manual and not documented (this ticket is around improving that ticket-35380)

@sarahboyce sarahboyce changed the title Ticket 36255 Rename Django Admin's "Go" button and remove its title attribute. Fixed #36255 -- Improved accessibility of the admin action button. Mar 24, 2025
@github-actions github-actions bot removed the no ticket Based on PR title, no linked Trac ticket label Mar 24, 2025
@sarahboyce sarahboyce added the selenium Apply to have Selenium tests run on a PR label Mar 24, 2025
@gtossou
Copy link
Contributor Author
gtossou commented Mar 24, 2025

Thank you for this @gtossou ⭐ this looks good

My only concern is this means a number of our admin documentation images will be outdated (see docs/intro/_images and docs/ref/contrib/admin/_images). Could you take a look at updating these?

Note this process is manual and not documented (this ticket is around improving that ticket-35380)

Hello @sarahboyce thanks for the vigilance. Inded there are linked docs to update. I just made the changes. Can you please take a look? Thanks. It was pretty annoying to update them manually 😆 .I will take a look to the automatic generation ticket

Copy link
Contributor
@sarahboyce sarahboyce left a comment

Choose a reason for hiding this comment

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

Thank you for the updates!
Can you also look at the images in docs/ref/contrib/admin/_images?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you make the width of this one slightly larger so there is no scrollbar added?

@sarahboyce
Copy link
Contributor

After #18958 has been merged, we need to rebase onto main and update the screenshots again. @Antoliny0919 I'm not sure if perhaps you can help with this?

@Antoliny0919
Copy link
Contributor

After #18958 has been merged, we need to rebase onto main and update the screenshots again. @Antoliny0919 I'm not sure if perhaps you can help with this?

I was already thinking about it. 😏

Copy link
Contributor
@Antoliny0919 Antoliny0919 Mar 27, 2025

Choose a reason for hiding this comment

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

Thank you for pick this work @gtossou.
Here is the image reflecting up to 34917. 😎

docs/intro/_images

admin04t.png

admin04t

admin12t.png

admin12t

admin13t.png

admin13t

docs/ref/contrib/admin/_images

admin-actions.png

admin-actions

adding-actions-to-the-modeladmin.png

adding-actions-to-the-modeladmin

actions-as-modeladmin-methods.png

actions-as-modeladmin-methods

list-filter.png

list-filter

Copy link
Contributor Author
@gtossou gtossou Apr 4, 2025

Choose a reason for hiding this comment

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

Hi @Antoliny0919 thanks for images. did you generated them with selenium ?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, I applied the code to the test environment and took the screenshot myself.

@Antoliny0919
Copy link
Contributor
Antoliny0919 commented Apr 4, 2025

Hello! @gtossou

It looks perfect to me! But there seems to be a conflict
I think it might be caused by my commit. We’ll need to resolve this first.

@gtossou
Copy link
Contributor Author
gtossou commented Apr 4, 2025

Hello! @gtossou

It looks perfect to me! But there seems to be a conflict I think it might be caused by my commit. We’ll need to resolve this.

hmm... i thought a pull before would have resolved them

@Antoliny0919
Copy link
Contributor

Hello! @gtossou
It looks perfect to me! But there seems to be a conflict I think it might be caused by my commit. We’ll need to resolve this.

hmm... i thought a pull before would have resolved them

Have you updated your forked repository to the latest version? You can update it first, then pull the changes and resolve the conflicts. 😏

charettes and others added 14 commits April 4, 2025 13:27
…ecks.

Regression in bf7b17d.

Thanks Sage Abdullah for the report.
Regression in bf7b17d.

Thanks Sage Abdullah for the report.
…y key is defined.

This is to avoid confusion that a field is often associated with having
a single associated database column.
The usage of time.sleep() could result in the update_or_create() thread winning
the race to create the row if the backend takes a while to create a new
connection in the main thread.

Relying on threading.Event ensures that the flow of execution is systematically
yield back and forth between the main thread and the thread in charge of
performing the background update_or_create().
…nstances.

There is no need to call validate_ipv46_address() for
ipaddress.IPv4Address()/ipaddress.IPv6Address() instances since this
relies on trying to create these kind objects from strings, so they will
always be valid.
…and renderers.

Thank you Sarah Boyce, Carlton Gibson, Tim Schilling and Adam Johnson
for reviews.

Co-authored-by: Christophe Henry <contact@c-henry.fr>
Co-authored-by: David Smith <smithdc@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Matthias Kestenholz <mk@feinheit.ch>
cliff688 and others added 28 commits April 4, 2025 13:27
…presentations.

Ensured that rel_obj_attr and instance_attr return matching (pk, cls) tuples
in GenericForeignKey.get_prefetch_queryset(), preventing mismatches when
prefetching related objects where pk and get_prep_value() differ. Using
value_to_string() also makes this code compatible with composite primary keys.
…id's Message.

The `parse_header_parameters` function historically used Python's `cgi`
module  (now deprecated). In 34e2148,
the logic was inlined to work around this deprecation ( #33173). Later,
in d4d5427, the header parsing logic
was further cleaned up to align with `multipartparser.py` (#33697).

This change takes it a step further by replacing the copied `cgi` logic with
Python's `email.message.Message` API for a more robust and maintainable header
parsing implementation.

Thanks to Raphael Gaschignard for testing, and to Adam Johnson and Shai
Berger for reviews.

Co-authored-by: Ben Cail <bcail@crossway.org>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
docs.djangoproject.com had been updated to serve the object.inv file
from the default location, so the second tuple element can be None
(the "default" value).
… when to model is invalid.

Signed-off-by: saJaeHyukc <wogur981208@gmail.com>
…der in the admin on small screens.

Visual regression in b1324a6.
Forwardport of cc31b38 from stable/5.2.x.
…related fields.

With thanks to  Konrad Świat, Loïc Bistuer, Russell Keith-Magee,
and Mariusz Felisiak.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
…n navigation sidebar loading flicker."

This reverts commit 747b417 that caused
a visual regression when both navigation and filter sidebars are
visible.
… properly.

In the admin, when selecting related objects via the helpers defined in
`RelatedObjectLookups.js`, the `dismissRelatedLookupPopup` function was
attempting to access `window.relatedWindows`, which does not exist in
real execution, causing related lookup popups to remain open.
    
This change ensures that this code correctly accesses the module-local
`relatedWindows` by explicitly assigning it to `window.relatedWindows`.
    
Regression in 91bebf1.
    
Thanks Matthias Kestenholz for the report, the fix ideas, and testing.

Co-authored-by: Matthias Kestenholz <mk@feinheit.ch>
…ySet.update().

Co-authored-by: Andro Ranogajec <ranogaet@gmail.com>
…st_and_scheme() on Windows.

Thank you sw0rd1ight for the report.
…sforms and references.

Regression in 65ad4ad.

Refs #28900

Thanks Patrick Altman for the report.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
selenium Apply to have Selenium tests run on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0