- First commit to issue fork.
- @hooroomoo opened merge request.
- ๐บ๐ธUnited States tim.plunkett Philadelphia
Running Drupal\Tests\system\FunctionalJavascript\OffCanvasTest::testNarrowWidth locally I also see a failure.
core/themes/olivero/js/messages.js is trying to write to
Drupal.olivero
core/themes/olivero/js/navigation-utils.js definesDrupal.olivero
and they are running in that order!
I'm not sure the best way to get them in the correct order. - Status changed to Needs review
over 1 year ago 4:50pm 9 March 2023 - ๐บ๐ธUnited States tim.plunkett Philadelphia
I love that this surfaced and fixed a bug!
I'd mark it RTBC, but #10 is not addressed as this is not yet configurable. Is that still needed first?
- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
tim.plunkett โ credited bnjmnm โ .
- Status changed to Needs work
over 1 year ago 7:30pm 9 March 2023 - ๐บ๐ธUnited States tim.plunkett Philadelphia
Oh lol, Nightwatch tests are still failing. Glad I didn't RTBC :D
- Status changed to Needs review
over 1 year ago 6:03pm 13 March 2023 - Status changed to Needs work
over 1 year ago 6:39pm 13 March 2023 - ๐บ๐ธUnited States smustgrave
Reviewing MR 3609
Left a comment but why wouldn't olivero/global-styling not be there?
Also I see the new ajax_test routes but don't see the test that calls them? Unless there's something that loops through all the routes? But couldn't find that.
- ๐บ๐ธUnited States smustgrave
Also to echo what tim.plunkett said. This sounds like a great feature to get included!
- ๐บ๐ธUnited States tim.plunkett Philadelphia
The test routes were added in #4 but only for manual testing. You're right that we need an automated test to use them. Leaving the other response on the MR.
- Status changed to Needs review
over 1 year ago 1:50pm 16 March 2023 - ๐ซ๐ฎFinland lauriii Finland
Discussed with @ckrina who is one of the Usability topic maintainers. We agreed that this is a net-win as in all situations where user is triggering an action, and it fails to execute. Adding new error messages may make us discover some bugs in other systems but that's not the fault of the error, in fact it's the opposite since it will help us expose those use cases and work on the root cause.
Quoting an article from Nielsen Norman:
Good error message should include:
Explicit indication that something has gone wrong. The very worst error messages are those that don't exist. When users make mistakes and get no feedback, they're completely lost.
Human-readable language, instead of obscure codes or abbreviations such as "an error of type 2 has occurred."
Based on this, it would be great if we could still iterate on the specific wording of the message. I think we should at least try to remove mention of ajax since it's not language that users are accustomed to.
- Status changed to Needs work
over 1 year ago 2:59pm 17 March 2023 - ๐บ๐ธUnited States smustgrave
Moving to NW per #32.
Leaving the needs tests tag incase any additional coverage is needed.
- Status changed to Needs review
over 1 year ago 4:05pm 17 March 2023 - ๐บ๐ธUnited States hooroomoo
An AJAX system error has occurred. -> Oops, something went wrong. Check the console for more details.
Updated message string to remove the mention of AJAX and point to the console if the user wants more information.
- ๐บ๐ธUnited States tim.plunkett Philadelphia
Drupal\Tests\ckeditor5\FunctionalJavascript\MediaLibraryTest::testButton Failed asserting that a NULL is not empty.
I got this failure once in every 10 local test runs.
I think this is described here as well #3346122-4: ckeditor test failures causing pain for unrelated patches โ
Tests were added in
b1f1df3b - WIP: add test that currently fails
- Status changed to RTBC
over 1 year ago 6:30pm 17 March 2023 - ๐บ๐ธUnited States smustgrave
Get the same results as #34 using the new routes provided.
Points from #32 appear to be addressed.
Think
it would be great if we could still iterate on the specific wording of the message
could be a follow up?
- ๐บ๐ธUnited States tim.plunkett Philadelphia
+1 for RTBC, the wording changed in the last commit and I think it's shippable as-is
- Status changed to Needs work
over 1 year ago 7:57am 20 March 2023 - ๐ญ๐บHungary Gรกbor Hojtsy Hungary
Hm, the problem statement is this:
Currently ajax errors are only visible in the browser console. This is confusing for non-technical users because there's no indication in the UI that an error happened.
Looking at the error message proposed, I think "the console" would not be evident to a non-technical user. Is it a Drupal backend concept or in their command line terminal? I think "your browser's developer console" or something along those lines would be easier to google for. It would be nice if there would be a product agnostic page that we could link to, like https://balsamiq.com/support/faqs/browserconsole/ but not under Balsamiq (nothing against Balsamiq but you get the idea). Otherwise I think "your browser's developer console" makes it much more specific and is good basis to google for. I am not attached to these specific words, but IMHO "the console" is not enough for a non-technical user.
Rishabh Vishwakarma โ made their first commit to this issueโs fork.
- Status changed to Needs review
over 1 year ago 3:43pm 21 March 2023 - Status changed to RTBC
over 1 year ago 5:15pm 21 March 2023 - ๐บ๐ธUnited States smustgrave
Confirmed the message is now
Oops, something went wrong. Check your browser's developer console for more details.
- Status changed to Needs work
over 1 year ago 6:02pm 22 March 2023 - ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
It looks like there was a decision to make this configurable, which I don't see in the MR. Either that should be added, or someone can point out where that requirement changed and switch this back to RTBC.
- Status changed to RTBC
over 1 year ago 6:22pm 22 March 2023 - ๐ซ๐ฎFinland lauriii Finland
Reading it back, I realize that #32 may have been unclear. The reason I made that comment was to try to make a point that we shouldn't make it configurable because having these error messages are essential for UX. I discussed that with @ckrina as well to make sure that she didn't have concerns on that.
- ๐ณ๐ฟNew Zealand quietone
I agree that this is a step in the right direction.
I am concerned that the message is not helpful to a non technical user because it suggests that they learn how to use a technical tool. And they will need to search for how to do that for their browser. Instead can we change this to a message that they should contact the site admin?
- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
Refining that message content could potentially delay what is a very helpful improvement. I created a followup to focus on adjusting that language after this lands, which lets this feature get in while still providing us with a place to potentially improve that messaging.
๐ Determine if there is a better message for AJAX errors. Active
-
lauriii โ
committed e492ae34 on 10.1.x
Issue #2987444 by hooroomoo, lauriii, bnjmnm, alwaysworking, tim....
-
lauriii โ
committed e492ae34 on 10.1.x
- Status changed to Fixed
over 1 year ago 2:07pm 24 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 8:14pm 20 October 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
So I think this issue broke Javascript messages on batch forms. But there were no tests for that so it wasn't going to be caught.
Created ๐ Exceptions in batch no longer are shown on the page when Javascript is disabled Needs work we have a test there and are working on a fix. Any help would be appreciated.
- ๐ญ๐ทCroatia Aporie
Hi,
I might be in the wrong here, but why assuming that every Ajax response should return a 200 is the expected behavior for all websites.
Sometimes you might want your user to be able to click an ajax link which will return a 403 for example. Then you purposely display a message to your user that they are not allowed to perform the action.With this addition, websites have now a non-needed, non-user-friendly message displayed to users on expected 403.
Maybe a good addition would be to make this feature optional (as per improving the message in ๐ Determine if there is a better message for AJAX errors. Active )?