Feature #89
User notifications and flash messages
Status: | CLOSED | Start date: | 05/04/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-nethgui | |||
Target version: | Phi | |||
Resolution: | NEEDINFO: |
Description
Define an API to display informational and error messages to the User.
Related issues
Associated revisions
Refs #89. Added NotificationArea class.
Replaces ValidationReport (but implements ValidationReportInterface).
- Added panel()
renderer.
- Disabled nethgui.js
Refs #89. Added NethGui_Core_NotificationCarrier
argument to NethGui_Core_RequestHandlerInterface::process().
Refs #89. Added Notification worker module.
Notification core module removes the dialog messages from the user session.
Refs #89. Added DialogBox class.
DialogBoxes can be transient or persistent.
A persistent dialog box is stored into the User session data,
waiting for the User to dismiss it, by clicking on one of its buttons
(actions).
A transient dialog box does not have any button and is displayed until is dismissed or the interface is refreshed.
Dialog boxes are managed by NotificationArea module.
Refs #89. DialogBox: changed Xhtml renderer to embed array values in hidden INPUT tags.
Refs #89. DialogBox API revision:
Removed showDialog
from NotificationCarrierInterface: showDialogBox
method is now invoked directly on User object.
Refs #89. addValidationError(): Support for both string and array as `message` argument.
History
#1 Updated by Davide Principi over 10 years ago
- Status changed from NEW to ON_DEV
- Assignee set to Davide Principi
#2 Updated by Davide Principi over 10 years ago
- Priority changed from Normal to High
- Start date set to 05/06/2011
#3 Updated by Davide Principi over 10 years ago
- % Done changed from 0 to 10
#4 Updated by Davide Principi about 10 years ago
- Status changed from ON_DEV to CLOSED
- Start date set to 05/04/2011
- % Done changed from 0 to 100
- Estimated time set to 24.00
A Module receives an object implementing NethGui_Core_NotificationCarrierInterface
during process()
.
Through that object a dialog box can be shown to the User calling its showDialog()
method.