View Issue Details

IDProjectCategoryView StatusLast Update
5179Composrcorepublic2023-01-27 20:34
ReporterPDStig Assigned ToGuest  
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary5179: Refactor attach_message types
DescriptionThere 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.
TagsNo tags attached.
Attach Tags
Time estimation (hours)2.5
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

PDStig

2023-01-27 20:34

administrator   ~7886

After realizing the warn type has error-logging, I modified this issue.

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

Date Modified Username Field Change
2022-12-20 16:52 PDStig New Issue
2022-12-20 20:49 PDStig Description Updated
2022-12-20 21:08 Chris Graham Time estimation (hours) => 2.5
2022-12-20 21:09 Chris Graham Category General => core
2023-01-27 20:33 PDStig Summary Make use of the warning colour in attach message; add a "danger" type => Refactor attach_message types
2023-01-27 20:33 PDStig Description Updated
2023-01-27 20:34 PDStig Note Added: 0007886