Ignite rocketboost.rs

Notifications

The panel tells the user what happened with a message, and with the errors on a form.

Flash messages

After a change, the panel redirects to the list and shows one message above the content:

  • Record created. after a create.
  • Changes saved. after an update.
  • Record deleted. after a delete.

A message shows once, on the next page the user loads. It is kept in a signed cookie, so the server holds no state for it.

Form errors

A form that does not validate shows its messages under the fields, and keeps the values the user typed. See Forms.

A value that clashes with a unique index, such as a second user with the same email, shows Email is already taken. under its field. See Forms.

Sign-in errors

A wrong email or password shows The email or password is incorrect. on the sign-in page. Too many attempts show Too many sign-in attempts. Try again in N seconds. with status 429. See Panel.

Expired forms

A form whose security token is missing or wrong shows the Page Expired page, with status 419. Reload the page and try again.

Server errors

A row that does not exist gets a 404 page. A database error gets a 500 page, and the error is logged, not shown to the user.

Not built yet

  • Your own messages. The panel sets its three messages itself. An app cannot set a flash message in v1.
  • Toasts. Messages appear in the page and do not fade away.