Currently the ApplicationController includes a bunch of functionality relating to notices, e.g.
noticeStack property (that holds the set of all current notifications)
showNotice() (shows a notice)
hideNotice() (hides a notice)
noticeHidden() (callback when a user acknowledges a notice)
noticesMoved() (manages the height of the notices container)
These could/should be moved out into a dedicated service/component for creating/tracking/showing/acknowledging notices; which would simplify the ApplicationController and allow it to focus on it's main job of managing the view stack (pushing/popping views).
Currently the
ApplicationController
includes a bunch of functionality relating to notices, e.g.noticeStack
property (that holds the set of all current notifications)showNotice()
(shows a notice)hideNotice()
(hides a notice)noticeHidden()
(callback when a user acknowledges a notice)noticesMoved()
(manages the height of the notices container)These could/should be moved out into a dedicated service/component for creating/tracking/showing/acknowledging notices; which would simplify the
ApplicationController
and allow it to focus on it's main job of managing the view stack (pushing/popping views).