Skip to content

Commit e33cd71

Browse files
committed
doc
1 parent 88c50c5 commit e33cd71

File tree

1 file changed

+121
-0
lines changed

1 file changed

+121
-0
lines changed

docs/messages-guidelines.md

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
2+
# Error and Warning Message Guidelines
3+
4+
- These guidelines ensure that messages are user-friendly, clear, and helpful while maintaining a professional tone. 🚀
5+
- Originated from [guidelines](https://wiki.speag.com/projects/SuperMash/wiki/Concepts/GUI) by @eofli and refined with ChatGPT
6+
- Here’s the fully expanded and rewritten list of **error and warning message guidelines**, each with:
7+
- A **guideline**
8+
- A **rationale**
9+
- A ❌ **bad example**
10+
- A ✅ **good example**
11+
- A **reference**
12+
13+
---
14+
15+
### **1. Be Clear and Concise**
16+
- **Guideline:** Use straightforward language to describe the issue without unnecessary words.
17+
- **Rationale:** Users can quickly understand the problem and take corrective action when messages are simple and to the point.
18+
-**Bad Example:**
19+
`"An error has occurred due to an unexpected input that couldn't be parsed correctly."`
20+
-**Good Example:**
21+
`"We couldn't process your request. Please check your input and try again."`
22+
- **[Reference](https://uxwritinghub.com/error-message-examples/)**
23+
24+
---
25+
26+
### **2. Provide Specific and Actionable Information**
27+
- **Guideline:** Clearly state what went wrong and how the user can fix it.
28+
- **Rationale:** Specific guidance helps users resolve issues efficiently, reducing frustration.
29+
-**Bad Example:**
30+
`"Something went wrong."`
31+
-**Good Example:**
32+
`"Your session has expired. Please log in again to continue."`
33+
- **[Reference](https://www.nngroup.com/articles/error-message-guidelines/)**
34+
35+
---
36+
37+
### **3. Avoid Technical Jargon**
38+
- **Guideline:** Use plain language instead of technical terms or codes.
39+
- **Rationale:** Non-technical users may not understand complex terminology, hindering their ability to resolve the issue.
40+
-**Bad Example:**
41+
`"Error 429: Too many requests per second."`
42+
-**Good Example:**
43+
`"You’ve made too many requests. Please wait a moment and try again."`
44+
- **[Reference](https://cxl.com/blog/error-messages/)**
45+
46+
---
47+
48+
### **4. Use a Polite and Non-Blaming Tone**
49+
- **Guideline:** Frame messages in a way that doesn't place blame on the user.
50+
- **Rationale:** A respectful tone maintains a positive user experience and encourages users to continue using the application.
51+
-**Bad Example:**
52+
`"You entered the wrong password."`
53+
-**Good Example:**
54+
`"The password doesn't match. Please try again."`
55+
- **[Reference](https://atlassian.design/content/writing-guidelines/writing-error-messages/)**
56+
57+
---
58+
59+
### **5. Avoid Negative Words and Phrases**
60+
- **Guideline:** Steer clear of words like "error," "failed," "invalid," or "illegal."
61+
- **Rationale:** Positive language reduces user anxiety and creates a more supportive experience.
62+
-**Bad Example:**
63+
`"Invalid email address."`
64+
-**Good Example:**
65+
`"The email address format doesn't look correct. Please check and try again."`
66+
- **[Reference](https://atlassian.design/content/writing-guidelines/writing-error-messages/)**
67+
68+
---
69+
70+
### **6. Place Messages Appropriately**
71+
- **Guideline:** Display error messages near the relevant input field or in a clear, noticeable location.
72+
- **Rationale:** Proper placement ensures users notice the message and understand where the issue occurred.
73+
-**Bad Example:**
74+
Showing a generic "Form submission failed" message at the top of the page.
75+
-**Good Example:**
76+
Placing "Please enter a valid phone number" directly below the phone input field.
77+
- **[Reference](https://www.smashingmagazine.com/2022/08/error-messages-ux-design/)**
78+
79+
---
80+
81+
### **7. Use Inline Validation When Possible**
82+
- **Guideline:** Provide real-time feedback as users interact with input fields.
83+
- **Rationale:** Inline validation allows users to correct errors immediately, enhancing the flow and efficiency of the interaction.
84+
-**Bad Example:**
85+
Waiting until form submission to show all validation errors.
86+
-**Good Example:**
87+
Displaying "Password must be at least 8 characters" while the user types.
88+
- **[Reference](https://cxl.com/blog/error-messages/)**
89+
90+
---
91+
92+
### **8. Avoid Using All-Caps and Excessive Punctuation**
93+
- **Guideline:** Refrain from writing messages in all capital letters or using multiple exclamation marks.
94+
- **Rationale:** All-caps and excessive punctuation can be perceived as shouting, which may frustrate users.
95+
-**Bad Example:**
96+
`"INVALID INPUT!!!"`
97+
-**Good Example:**
98+
`"This input doesn't look correct. Please check and try again."`
99+
- **[Reference](https://uxwritinghub.com/error-message-examples/)**
100+
101+
---
102+
103+
### **9. Use Humor Sparingly**
104+
- **Guideline:** Incorporate light-hearted language only when appropriate and aligned with the application's tone.
105+
- **Rationale:** While humor can ease tension, it may not be suitable for all users or situations and can sometimes be misinterpreted.
106+
-**Bad Example:**
107+
`"Oopsie daisy! You broke something!"`
108+
-**Good Example:**
109+
`"Something went wrong. Try again, or contact support if the issue continues."`
110+
- **[Reference](https://cxl.com/blog/error-messages/)**
111+
112+
---
113+
114+
### **10. Offer Alternative Solutions or Support**
115+
- **Guideline:** If the user cannot resolve the issue independently, provide a way to contact support or access help resources.
116+
- **Rationale:** Offering support options ensures users don't feel stranded and can seek help to resolve their issues.
117+
-**Bad Example:**
118+
`"Access denied."`
119+
-**Good Example:**
120+
`"You don't have permission to view this page. Contact support if you think this is a mistake."`
121+
- **[Reference](https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-error-handling-guidelines/)**

0 commit comments

Comments
 (0)