1) The little icon on the right corner is way too small I think and also
far away from the element's inner content (see
[https://ant.design/components/collapse] for a possible alternative).
2) The element does not stand out in a way that it indicates it's
interactive. It could have e.g. a border to separate it from the
background.
Also the elements are not selectable via keyboard and the tab button.
Example: [https://django-admin-
tests.netlify.app/django_admin_tests/v5.1/english/defaults/500/]
--
Ticket URL: <https://code.djangoproject.com/ticket/35137>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "stacktrace-error.png" added.
Old description:
> On the debug page for a server error the collapsible elements in the
> traceback view do not clearly indicate that they are in fact interactive:
>
> 1) The little icon on the right corner is way too small I think and also
> far away from the element's inner content (see
> [https://ant.design/components/collapse] for a possible alternative).
>
> 2) The element does not stand out in a way that it indicates it's
> interactive. It could have e.g. a border to separate it from the
> background.
>
> Also the elements are not selectable via keyboard and the tab button.
>
> Example: [https://django-admin-
> tests.netlify.app/django_admin_tests/v5.1/english/defaults/500/]
New description:
On the debug page for a server error the collapsible elements in the
traceback view do not clearly indicate that they are in fact interactive:
1) The little icon on the right corner is way too small I think and also
far away from the element's inner content (see
[https://ant.design/components/collapse] for a possible alternative).
2) The element does not stand out in a way that it indicates it's
interactive. It could have e.g. a border to separate it from the
background.
Also the elements are not selectable via keyboard and the tab button.
Example: [https://django-admin-
tests.netlify.app/django_admin_tests/v5.1/english/defaults/500/]
[[Image(https://code.djangoproject.com/attachment/ticket/35137/stacktrace-
error.png)]]
--
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:1>
Old description:
> [[Image(https://code.djangoproject.com/attachment/ticket/35137
> /stacktrace-error.png)]]
New description:
On the debug page for a server error the collapsible elements in the
traceback view do not clearly indicate that they are in fact interactive:
1) The little icon on the right corner is way too small I think and also
far away from the element's inner content (see
[https://ant.design/components/collapse] for a possible alternative).
2) The element does not stand out in a way that it indicates it's
interactive. It could have e.g. a border to separate it from the
background.
Also the elements are not selectable via keyboard and the tab button.
Example: [https://django-admin-
tests.netlify.app/django_admin_tests/v5.1/english/defaults/500/]
--
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:2>
* type: Cleanup/optimization => Bug
Old description:
> On the debug page for a server error the collapsible elements in the
> traceback view do not clearly indicate that they are in fact interactive:
>
> 1) The little icon on the right corner is way too small I think and also
> far away from the element's inner content (see
> [https://ant.design/components/collapse] for a possible alternative).
>
> 2) The element does not stand out in a way that it indicates it's
> interactive. It could have e.g. a border to separate it from the
> background.
>
> Also the elements are not selectable via keyboard and the tab button.
>
> Example: [https://django-admin-
> tests.netlify.app/django_admin_tests/v5.1/english/defaults/500/]
New description:
[[Image(https://code.djangoproject.com/raw-attachment/ticket/35137
/stacktrace-error.png)]]
On the debug page for a server error the collapsible elements in the
traceback view do not clearly indicate that they are in fact interactive:
1) The little icon on the right corner is way too small I think and also
far away from the element's inner content (see
[https://ant.design/components/collapse] for a possible alternative).
2) The element does not stand out in a way that it indicates it's
interactive. It could have e.g. a border to separate it from the
background.
Also the elements are not selectable via keyboard and the tab button.
Example: [https://django-admin-
tests.netlify.app/django_admin_tests/v5.1/english/defaults/500/]
--
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:3>
* cc: Thibaud Colas, Tom Carrick, Sarah Abderemane (added)
* type: Bug => Cleanup/optimization
* version: 5.0 => dev
* component: Uncategorized => Error reporting
* stage: Unreviewed => Accepted
Comment:
Accepting on the basis that I have used Django for more than 15 years and
I did not know this existed!!!
I agree that improving the discoverability of this feature would certainly
be a positive thing for the framework.
Denis, would you like to prepare a patch? I would suggest to first reach
out to the Django Accessibility Team
([https://forum.djangoproject.com/c/internals/accessibility/26 via the
Django forum]) to agree on a proper accessible design fix. Thank you!
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:4>
Comment (by Denis Anuschewski):
Hey Natalia.
Thx, will do that.
Shout out to Thibaud Colas who 1st found this behaviour.
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:5>
Comment (by Denis Anuschewski):
https://forum.djangoproject.com/t/usability-of-server-error-traceback-
collapsibles/27322
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:6>
Note there are three separate issues here:
1. Bug: the current implementation is unusable for keyboard and voice
control users due to adding interactivity to list item elements.
2. Somewhere between a bug and a usability fail: placing the "this is
collapsible" signifier all the way to the right means it’s more or less
impossible to spot for users of screen magnification
3. And usability issue – it’s hard to understand this is interactive.
I’d recommend fixing them all at once by introducing a "toggle" button to
the left of the line number, so we can solve the issue at hand without
reinventing the current designs. That button will be focusable and can
either have a visible "toggle" label or icon + tooltip, plus hover styles
(see for example
[https://github.com/django/django/commit/3f6d939c62efd967f548c27a265748cc2cc47ca5
how GitHub does it]).
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:7>
Another suggestion for a simple solution:
Adapt the icon for the collapsible link "Local vars" just under the gray
error box (placed on the left of the line number just like Thibaud
mentioned).
Plus implement a thin border to let the box stand out more.
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:8>
Hay!
Have a look at this quick prototype
Notable Additions :
Hovering Messages
[[Image(file:///home/prometheus/Pictures/hover-expand.png)]]
[[Image(file:///home/prometheus/Pictures/hover-collaspe.png)]]
And a Button on the left side to indicate that the element is interactable
:
[[Image(file:///home/prometheus/Pictures/button-expand.png)]]
[[Image(file:///home/prometheus/Pictures/button-collaspe.png)]]
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:9>
* owner: nobody => Abhijeet Singh
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:10>
* cc: Abhijeet Singh (added)
* has_patch: 0 => 1
Comment:
I created a PR: https://github.com/django/django/pull/17784
--
Ticket URL: <https://code.djangoproject.com/ticket/35137#comment:11>