qfai 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/validators/designSlopPatterns.json +56 -0
- package/dist/cli/index.cjs +435 -82
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +424 -71
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.cjs +393 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.mjs +393 -40
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "SLP-01",
|
|
4
|
+
"category": "generic-shell",
|
|
5
|
+
"tier": 3,
|
|
6
|
+
"scopes": ["03_Story-Workshop.md", "05_Examples.md"],
|
|
7
|
+
"match": "\\b(generic dashboard|placeholder text|lorem ipsum)\\b",
|
|
8
|
+
"message": "Generic dashboard shell pattern detected",
|
|
9
|
+
"guidance": "Replace with domain-specific UI structure"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "SLP-02",
|
|
13
|
+
"category": "stock-imagery",
|
|
14
|
+
"tier": 3,
|
|
15
|
+
"scopes": ["03_Story-Workshop.md", "05_Examples.md"],
|
|
16
|
+
"match": "\\b(stock photo|unsplash|placeholder image)\\b",
|
|
17
|
+
"message": "Stock imagery reference detected",
|
|
18
|
+
"guidance": "Use project-specific imagery or describe actual visual requirements"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "SLP-03",
|
|
22
|
+
"category": "dark-pattern",
|
|
23
|
+
"tier": 3,
|
|
24
|
+
"scopes": ["03_Story-Workshop.md", "05_Examples.md"],
|
|
25
|
+
"match": "\\b(hidden fee|forced signup|trick question)\\b",
|
|
26
|
+
"message": "Potential dark pattern detected",
|
|
27
|
+
"guidance": "Replace with transparent, user-respecting interaction pattern"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "SLP-04",
|
|
31
|
+
"category": "inconsistency",
|
|
32
|
+
"tier": 3,
|
|
33
|
+
"scopes": ["03_Story-Workshop.md", "05_Examples.md"],
|
|
34
|
+
"match": "\\b(inconsistent naming|mixed conventions)\\b",
|
|
35
|
+
"message": "Design inconsistency pattern detected",
|
|
36
|
+
"guidance": "Establish and follow consistent naming and convention guidelines"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "SLP-05",
|
|
40
|
+
"category": "placeholder-copy",
|
|
41
|
+
"tier": 3,
|
|
42
|
+
"scopes": ["03_Story-Workshop.md", "05_Examples.md"],
|
|
43
|
+
"match": "\\b(Click here|TBD copy|placeholder label)\\b",
|
|
44
|
+
"message": "Placeholder copy detected in UI definition",
|
|
45
|
+
"guidance": "Replace with final, user-tested microcopy"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "SLP-06",
|
|
49
|
+
"category": "accessibility-theater",
|
|
50
|
+
"tier": 3,
|
|
51
|
+
"scopes": ["03_Story-Workshop.md", "05_Examples.md"],
|
|
52
|
+
"match": "\\b(decorative alt text|aria-hidden on interactive)\\b",
|
|
53
|
+
"message": "Accessibility theater pattern detected",
|
|
54
|
+
"guidance": "Implement meaningful accessibility attributes following WCAG guidelines"
|
|
55
|
+
}
|
|
56
|
+
]
|