New user notifications in the new dashboard

We have completely redone the messages system. Expecting an endpoint with users notifications in the future (yeah, i know...), we have created a notifications collection and its notification model. Due to the fact that the new endpoint is not done, we still need a logic to check if an alert has to be displayed (it is done within user notifications view).