Skip to content

Commit e417aa5

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 4e8f331 commit e417aa5

26 files changed

+179
-36
lines changed
231 KB
Loading
228 KB
Loading
431 KB
Loading
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
flowchart LR
2+
subgraph POUR["WCAG 2.2 Level AA — POUR Principles"]
3+
direction TB
4+
subgraph P["🔵 Perceivable"]
5+
P1["1.1.1 Non-text Content · Level A\n🔴 Missing alt text on images\nproducts/page.tsx · products/[id]/page.tsx"]
6+
P2["1.3.1 Info and Relationships · Level A\n🔴 Missing form labels\npage.tsx · Header.tsx heading-order"]
7+
P3["1.4.3 Contrast Minimum · Level AA\n🟠 Low color contrast #999 / #aaa\npage.tsx lines 12, 42"]
8+
end
9+
subgraph O["🟢 Operable"]
10+
O1["2.4.1 Bypass Blocks · Level A\n🟠 No skip-navigation link\nlayout.tsx"]
11+
O2["2.5.8 Target Size · Level AA\n🟠 Touch targets below 24×24 px\npage.tsx nav links"]
12+
end
13+
subgraph U["🟡 Understandable"]
14+
U1["3.1.1 Language of Page · Level A\n🔴 Missing lang attribute on html\nlayout.tsx ✅ FIXED"]
15+
end
16+
subgraph R["🟣 Robust"]
17+
R1["4.1.2 Name Role Value · Level A\n🟠 nav elements lack aria-label\nHeader.tsx · page.tsx"]
18+
end
19+
end
20+
21+
style P fill:#dbeafe,stroke:#2563eb
22+
style O fill:#dcfce7,stroke:#16a34a
23+
style U fill:#fef9c3,stroke:#ca8a04
24+
style R fill:#f3e8ff,stroke:#9333ea
25+
style POUR fill:#f8fafc,stroke:#64748b
54 KB
Loading
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: "Coverage After Test Generation (Exercise 5.4)"
3+
---
4+
block-beta
5+
columns 4
6+
7+
block:header:4
8+
columns 4
9+
h1["59 Tests Passed"] h2["2 Suites"] h3["67.97% Lines"] h4["95.06% Branch"]
10+
end
11+
12+
block:utils:4
13+
columns 1
14+
u1["utils.ts — 100% Stmts | 100% Branch | 100% Funcs | 100% Lines ✅"]
15+
end
16+
17+
block:auth:2
18+
columns 1
19+
a1["auth.ts — 0% Stmts | 0% Branch | 0% Funcs | 0% Lines ❌"]
20+
end
21+
22+
block:db:2
23+
columns 1
24+
d1["db.ts — 0% Stmts | 0% Branch | 0% Funcs | 0% Lines ❌"]
25+
end
26+
27+
block:pages:2
28+
columns 1
29+
p1["layout.tsx — 0%"]
30+
p2["page.tsx — 0%"]
31+
p3["products/page.tsx — 0%"]
32+
p4["products/[id]/page.tsx — 0%"]
33+
end
34+
35+
block:comps:2
36+
columns 1
37+
c1["Header.tsx — 0%"]
38+
c2["ProductCard.tsx — 0%"]
39+
end
40+
41+
block:before:2
42+
columns 1
43+
b1["BEFORE: 1.30% Lines | 0% Branch | 4.34% Funcs"]
44+
end
45+
46+
block:after:2
47+
columns 1
48+
af1["AFTER: 67.97% Lines | 95.06% Branch | 30.43% Funcs"]
49+
end
50+
51+
style utils fill:#dcfce7,stroke:#16a34a
52+
style auth fill:#fef2f2,stroke:#dc2626
53+
style db fill:#fef2f2,stroke:#dc2626
54+
style pages fill:#fef9c3,stroke:#ca8a04
55+
style comps fill:#fef9c3,stroke:#ca8a04
56+
style before fill:#fee2e2,stroke:#ef4444
57+
style after fill:#dbeafe,stroke:#2563eb
58+
style header fill:#f1f5f9,stroke:#64748b
28.8 KB
Loading
133 KB
Loading
234 KB
Loading
247 KB
Loading

0 commit comments

Comments
 (0)