#5179 - Refactor attach_message types

  • By
  • Added
  • 14 views
Identifier #5179
Issue type Feature request or suggestion
Title Refactor attach_message types
Status Open
Handling member Deleted
Addon core
Description There exists a colour in the theme wizard, warning_color . It is off-yellow. Originally, the colour was not used at all until I recently changed the "warn" buttons on forum posts to this colour.

Also, we could add a green "success" to easily visually indicate to the user their action was successful.

I think we should make use of this colour in Composr. Many UIs (Bootstrap, command terminals, logging systems) utilise multi-tier levels which include warn / warning and use a form of yellow colour. I think Composr should as well.

---

Proposal: Use the following types for attach_message:

inform - For general information (seed colour)
Example: You are running dev mode.

notice - For important information (seed colour)
Example: This product is low on stock.

warn - For very important information or user error (yellow)
Example: This product is out of stock; this content is not yet validated by staff; you did not fill out the form correctly; your password expired and you must change it now.

[new] error - For PHP / Composr errors (red, and make sure attach_message error handling uses this type instead of warn)
Example: Cannot find theme image; PHP errors

[new] success - For action successful messages (green)
Example: Your action was successful. Your profile has been updated.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated