1// Audit command demo - shows scattered issues being identified and flagged
2export default {
3 id: 'audit',
4 caption: 'Hidden issues → Identified problems with recommendations',
5
6 before: `
7 <div style="display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 260px;">
8 <div style="padding: 12px; background: #f8f8f8; border-radius: 4px;">
9 <div style="font-size: 12px; color: #aaa;">Welcome message</div>
10 <button style="margin-top: 8px; padding: 4px 8px; font-size: 11px; background: #ddd; border: none; border-radius: 2px; color: #888;">click here</button>
11 </div>
12 <div style="padding: 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 8px;">
13 <div style="font-size: 15px; color: rgba(255,255,255,0.7);">Featured Item</div>
14 </div>
15 <div style="display: flex; gap: 4px;">
16 <button style="width: 20px; height: 20px; font-size: 10px; background: #eee; border: none;">←</button>
17 <button style="width: 20px; height: 20px; font-size: 10px; background: #eee; border: none;">→</button>
18 </div>
19 </div>
20 `,
21
22 after: `
23 <div style="display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px;">
24 <div style="padding: 12px; background: #fff8f8; border: 1px solid #ffcccc; border-radius: 4px; position: relative;">
25 <div style="position: absolute; top: -8px; right: 8px; background: #ff4444; color: white; font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 600;">CONTRAST</div>
26 <div style="font-size: 12px; color: #aaa;">Welcome message</div>
27 <button style="margin-top: 8px; padding: 4px 8px; font-size: 11px; background: #ddd; border: none; border-radius: 2px; color: #888;">click here</button>
28 </div>
29 <div style="padding: 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 8px; border: 2px solid #ff9800; position: relative;">
30 <div style="position: absolute; top: -8px; right: 8px; background: #ff9800; color: white; font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 600;">READABILITY</div>
31 <div style="font-size: 15px; color: rgba(255,255,255,0.7);">Featured Item</div>
32 </div>
33 <div style="display: flex; gap: 4px; padding: 4px; background: #fff3e0; border: 1px solid #ffcc80; border-radius: 4px; position: relative;">
34 <div style="position: absolute; top: -8px; right: 8px; background: #ff9800; color: white; font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 600;">TOUCH TARGET</div>
35 <button style="width: 20px; height: 20px; font-size: 10px; background: #eee; border: none;">←</button>
36 <button style="width: 20px; height: 20px; font-size: 10px; background: #eee; border: none;">→</button>
37 </div>
38 </div>
39 `
40};