-
Improvement
-
Resolution: Fixed
-
Minor
-
2.3
-
MOODLE_23_STABLE
-
MOODLE_31_STABLE
-
MDL-30811-master -
We often need to display information to users about an action that has just been performed.
Often when we do this, we make use of the redirect() function and an intermediary page is displayed to users with an optional "Continue" link before they are redirected.
This kind of interruption in the user workflow can be damaging to the user interaction, to the overall user experience, and to productivity as a whole.
One example of where this is currently present is within the forum module. Whenever a user posts a new post they are given this intermediary page and must click, or wait, before they continue.
I propose that we add a notification system which interacts with the session to allow messages to be created before a redirect, and displayed after the redirect completes.
This will improve the user experience considerably in my opinion.
This kind of user notification can also be used to remove a number of workarounds in Moodle where we append a URL parameter to ensure that a message is displayed after the redirect, or even where the message itself is added to the URL. An example of where we currently do this in core can be seen at https://github.com/moodle/moodle/blob/master/admin/tool/task/scheduledtasks.php#L89 and line 111 of the same file.
A session message would also mean that where change are made deep in the API, information can be presented to users. An example of this recently is in MDL-49146, in which the activity in a single_activity course format is unhidden whenever a user tries to hide it. This information cannot currently be presented to the user and may lead to confusion when they are unable to hide the activity.
This was discussed at https://moodle.org/mod/forum/discuss.php?d=328161
- blocks
-
MDL-53113 Remove deprecated \core\output\notification constants following MDL-30811
- Closed
-
MDL-53055 Notify editors about h1, h2 usage and automatic conversion happening
- Closed
-
MDL-53254 Replace as much as possible in tag management with inplace editable
- Closed
- caused a regression
-
MDL-53717 Notice: Trying to get property of non-object while installing site.
- Closed
-
MDL-54787 Redirect-related debugging message shown when doing a quiz regrade
- Closed
-
MDL-53786 Revert deprecation of $OUTPUT->notify_*
- Closed
-
MDL-62678 Unnecessary AJAX request core_fetch_notifications on all pages
- Closed
- duplicates
-
MDL-6470 Standard Message API (code included)
- Closed
- has a non-specific relationship to
-
MDL-53274 Throw exception (in developer mode) if page context is not set, otherwise it is not noticeable in AJAX calls
- Closed
- has been marked as being related by
-
MDL-41648 Assignment and Grade notifications use 'error' class rather than 'notifyproblem'
- Closed