test(audit): add mobile layout audit harness with 390x844 baseline
Pass 2 Session A: scripted Playwright audit over all frontend routes at mobile viewport, classifying overflow, dialog, grid, hoverOnly, hiddenMobile, tapTarget (<24px WCAG violation) and tapTargetMarginal (24-39px review tier) findings. - resolves dynamic route ids from REST, skips unresolvable ones instead of navigating literal bracket URLs - blocks the realtime SSE stream, uses domcontentloaded, retries 5xx and errors once, and aborts if the dev server dies mid-run - AUDIT_ROUTE_FILTER for targeted re-audits (writes filtered files so the baseline report is never clobbered) - markdown report clusters findings into cross-route pattern groups; Sessions B-D fix per class and re-run this as the regression gate - includes the initial baseline report (159 tap violations, 24 overflow findings on 6 routes, 4 cramped grids, 1 hover-only, 1 hidden-on-mobile)
This commit is contained in:
parent
25df38cdd3
commit
d016075481
3 changed files with 5428 additions and 0 deletions
4131
tests/audit/mobile-audit-report.json
Normal file
4131
tests/audit/mobile-audit-report.json
Normal file
File diff suppressed because it is too large
Load diff
829
tests/audit/mobile-audit-report.md
Normal file
829
tests/audit/mobile-audit-report.md
Normal file
|
|
@ -0,0 +1,829 @@
|
|||
# Mobile audit (390x844) - 2026-10-12T22:36:25.241Z
|
||||
|
||||
Base: http://localhost:3000 | routes audited: 78 (ok: 67)
|
||||
|
||||
| Pattern class | Routes affected | Findings |
|
||||
|---|---|---|
|
||||
| tapTargetMarginal | 67 | 508 |
|
||||
| tapTarget | 42 | 159 |
|
||||
| overflow | 6 | 24 |
|
||||
| hoverOnly | 1 | 1 |
|
||||
| grid | 3 | 4 |
|
||||
| hiddenMobile | 1 | 1 |
|
||||
|
||||
## tapTargetMarginal: pattern clusters
|
||||
|
||||
| Selector shape | Findings | Routes | Example |
|
||||
|---|---|---|---|
|
||||
| `button.inline-flex.items-center.justify-center` | 342 | 67 | 28x28px "Toggle Sidebar" |
|
||||
| `input.flex.h-9.w-full` | 15 | 9 | 300x36px |
|
||||
| `a.inline-flex.items-center.justify-center` | 7 | 6 | 111x32px "Design a ribbon" |
|
||||
| `button.rounded-md.px-2.5.py-1` | 12 | 6 | 82x24px "This period" |
|
||||
| `button.flex.h-9.items-center` | 8 | 4 | 160x36px "All rarities" |
|
||||
| `button.flex.items-center.justify-between` | 6 | 3 | 176x32px "All targets" |
|
||||
| `input.flex.h-9.rounded-md` | 3 | 2 | 144x36px "From date" |
|
||||
| `button.flex.h-9.w-full` | 3 | 2 | 350x36px |
|
||||
| `a.group.flex.items-center` | 1 | 1 | 316x38px "DO_NOT_USE's AccountPersonal a" |
|
||||
| `button.text-[11px].px-2.py-0.5` | 1 | 1 | 82x38px "+ Add Stripe" |
|
||||
| `button.flex.w-full.items-center` | 1 | 1 | 332x32px "SELECT LOADOUT" |
|
||||
| `button.text-xs.px-2.5.py-1` | 3 | 1 | 73x26px "Logistics" |
|
||||
|
||||
## tapTarget: pattern clusters
|
||||
|
||||
| Selector shape | Findings | Routes | Example |
|
||||
|---|---|---|---|
|
||||
| `button.inline-flex.items-center.justify-center` | 14 | 14 | 155x16px "Skip all tours on this device" |
|
||||
| `a.flex.w-fit.items-center` | 10 | 10 | 42x20px "Wiki" |
|
||||
| `a.ml-auto.pr-1.text-xs` | 6 | 6 | 60x16px "All boards" |
|
||||
| `button.peer.group/switch.inline-flex` | 61 | 4 | 32x18px "Show callsign instead of displ" |
|
||||
| `a.text-sm.text-muted-foreground.hover:text-primary` | 4 | 4 | 50x20px "Back" |
|
||||
| `button.aspect-square.size-4.shrink-0` | 8 | 3 | 16x16px |
|
||||
| `button.grid.place-content-center.peer` | 3 | 2 | 16x16px |
|
||||
| `a.text-sm.font-medium.after:absolute` | 16 | 2 | 91x18px "Edward Finch" |
|
||||
| `a.shrink-0.text-xs.text-muted-foreground` | 2 | 1 | 90x16px "View full record" |
|
||||
| `a.text-xs.text-muted-foreground.transition-colors` | 2 | 1 | 45x16px "Banking" |
|
||||
| `a.text-xs.text-muted-foreground.hover:text-primary` | 1 | 1 | 44x16px "View all" |
|
||||
| `input.size-7.rounded.cursor-pointer` | 1 | 1 | 6x28px |
|
||||
|
||||
## overflow: pattern clusters
|
||||
|
||||
| Selector shape | Findings | Routes | Example |
|
||||
|---|---|---|---|
|
||||
| `(document)` | 6 | 6 | document scrollWidth 420px > 390px |
|
||||
| `button.text-zinc-500.hover:text-red-400.text-sm` | 1 | 1 | crosses edge by 30px |
|
||||
| `button.inline-flex.items-center.justify-center` | 1 | 1 | crosses edge by 120px |
|
||||
| `div.inline-flex.items-center.rounded-md` | 1 | 1 | crosses edge by 108px |
|
||||
| `div.flex.basis-full.items-center` | 1 | 1 | crosses edge by 34px |
|
||||
| `div.flex.items-center.gap-2` | 1 | 1 | crosses edge by 34px |
|
||||
| `span.text-[10px].font-semibold.uppercase` | 1 | 1 | crosses edge by 34px |
|
||||
| `div.flex.flex-col.items-center` | 2 | 1 | crosses edge by 1291px |
|
||||
| `div.flex.items-start` | 1 | 1 | crosses edge by 1291px |
|
||||
| `div.org-tree-child.px-3` | 1 | 1 | crosses edge by 1291px |
|
||||
| `section.min-w-0` | 1 | 1 | crosses edge by 11px |
|
||||
| `div.border.bg-card.text-card-foreground` | 2 | 1 | crosses edge by 11px |
|
||||
|
||||
## hoverOnly: pattern clusters
|
||||
|
||||
| Selector shape | Findings | Routes | Example |
|
||||
|---|---|---|---|
|
||||
| `footer.absolute.inset-x-0.bottom-0` | 1 | 1 | affordance only visible on hover |
|
||||
|
||||
## grid: pattern clusters
|
||||
|
||||
| Selector shape | Findings | Routes | Example |
|
||||
|---|---|---|---|
|
||||
| `span.grid.min-w-0.grid-cols-[2rem_minmax(0,1fr)_auto]` | 2 | 1 | 3-track grid, track under 60px (252px wide) |
|
||||
| `div.grid.min-w-max.gap-1` | 1 | 1 | 11-track grid, track under 60px (319px wide) |
|
||||
| `div.grid.min-w-max.grid-cols-[repeat(var(--board-cols),var(-` | 1 | 1 | 10-track grid, track under 60px (298px wide) |
|
||||
|
||||
## hiddenMobile: pattern clusters
|
||||
|
||||
| Selector shape | Findings | Routes | Example |
|
||||
|---|---|---|---|
|
||||
| `span.hidden.font-mono.text-[10px]` | 1 | 1 | hidden on mobile (md:/lg: reveal) |
|
||||
|
||||
---
|
||||
|
||||
# Per-route detail
|
||||
|
||||
## tapTargetMarginal
|
||||
|
||||
### /
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 50x32px "Next" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 112x32px "Customize" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 316x38px "DO_NOT_USE's AccountPersonal a" `div.flex.min-w-0.flex-1 > a.group.flex.items-center`
|
||||
|
||||
### /account
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 300x36px `div.flex.flex-col.gap-2 > input#displayName.flex.h-9.w-full`
|
||||
- 65x36px "Save" `div > button.inline-flex.items-center.justify-center`
|
||||
- 144x32px "Request transfer" `div.flex.flex-wrap.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 300x36px `div.flex.flex-col.gap-2 > input#currentPassword.flex.h-9.w-full`
|
||||
- 300x36px `div.flex.flex-col.gap-2 > input#newPassword.flex.h-9.w-full`
|
||||
- 300x36px `div.flex.flex-col.gap-2 > input#confirmPassword.flex.h-9.w-full`
|
||||
- ...and 4 more
|
||||
|
||||
### /awards
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 50x32px "Next" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 111x32px "Design a ribbon" `div.flex.flex-wrap.items-center > a.inline-flex.items-center.justify-center`
|
||||
|
||||
### /awards/design
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 300x36px `div.flex.flex-col.gap-1.5 > input#ribbon-name.flex.h-9.w-full`
|
||||
- 82x38px "+ Add Stripe" `div.flex.items-center.justify-between > button.text-[11px].px-2.py-0.5`
|
||||
- 149x36px "Submit for review" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /awards/review
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 50x32px "Next" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 111x32px "Design a ribbon" `div.flex.flex-wrap.items-center > a.inline-flex.items-center.justify-center`
|
||||
|
||||
### /contributions
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /events
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 53x32px "Done" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 320x36px `div.relative.w-full.max-w-xs > input.flex.h-9.w-full`
|
||||
- 53x32px "Type" `div.flex.flex-wrap.items-center > button#radix-_R_2d5esnf939etb_.inline-flex.items-center.justify-center`
|
||||
- ...and 8 more
|
||||
|
||||
### /helpdesk
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 110x32px "New ticket" `div.flex.flex-wrap.items-end > button.inline-flex.items-center.justify-center`
|
||||
- 65x28px "All17" `div.inline-flex.items-center.text-muted-foreground > button#radix-_R_1l5esnf939etb_-trigger-all.inline-flex.items-center.justify-center`
|
||||
- 84x28px "Open14" `div.inline-flex.items-center.text-muted-foreground > button#radix-_R_1l5esnf939etb_-trigger-open.inline-flex.items-center.justify-center`
|
||||
- 107x28px "Resolved2" `div.inline-flex.items-center.text-muted-foreground > button#radix-_R_1l5esnf939etb_-trigger-resolved.inline-flex.items-center.justify-center`
|
||||
- 89x28px "Closed1" `div.inline-flex.items-center.text-muted-foreground > button#radix-_R_1l5esnf939etb_-trigger-closed.inline-flex.items-center.justify-center`
|
||||
- 125x28px "Unassigned5" `div.inline-flex.items-center.text-muted-foreground > button#radix-_R_1l5esnf939etb_-trigger-unassigned.inline-flex.items-center.justify-center`
|
||||
- ...and 4 more
|
||||
|
||||
### /intelligence
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /intelligence/campaigns
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 148x32px "Create campaign" `div.flex.flex-col.gap-1 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /intelligence/factions
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /intelligence/missions
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 38x28px "All" `div.flex.flex-wrap.gap-1.5 > button.inline-flex.items-center.justify-center`
|
||||
- 111x28px "Building Blocks" `div.flex.flex-wrap.gap-1.5 > button.inline-flex.items-center.justify-center`
|
||||
- 133x28px "Operation Dubrava" `div.flex.flex-wrap.gap-1.5 > button.inline-flex.items-center.justify-center`
|
||||
- 139x28px "The World We Knew" `div.flex.flex-wrap.gap-1.5 > button.inline-flex.items-center.justify-center`
|
||||
- 143x28px "The End of All Things" `div.flex.flex-wrap.gap-1.5 > button.inline-flex.items-center.justify-center`
|
||||
- 54x28px "Main" `div.flex.flex-wrap.gap-1.5 > button.inline-flex.items-center.justify-center`
|
||||
- ...and 9 more
|
||||
|
||||
### /intelligence/missions/calendar
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 53x32px "Done" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 103x32px "Schedule" `div.flex.basis-full.items-center > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /journals
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 139x36px "Write entry" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /locker
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 53x32px "Done" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 114x38px "WARDROBE" `div.inline-flex.items-center.text-muted-foreground > button#radix-_R_55esnf939etb_-trigger-wardrobe.inline-flex.items-center.justify-center`
|
||||
- 110x38px "INVENTORY" `div.inline-flex.items-center.text-muted-foreground > button#radix-_R_55esnf939etb_-trigger-inventory.inline-flex.items-center.justify-center`
|
||||
- ...and 8 more
|
||||
|
||||
### /logistics
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 53x32px "Done" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 73x26px "Logistics" `div.flex.items-center.gap-1.5 > button.text-xs.px-2.5.py-1`
|
||||
- 65x26px "Military" `div.flex.items-center.gap-1.5 > button.text-xs.px-2.5.py-1`
|
||||
- ...and 1 more
|
||||
|
||||
### /logistics/banking
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_r_20_.inline-flex.items-center.justify-center`
|
||||
- 101x32px "Deposit" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 111x32px "Withdraw" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 111x32px "Transfer" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 111x33px "> LEDGER" `div.flex.flex-wrap.items-center > a`
|
||||
- 111x32px "> LEDGER" `a > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /logistics/game-vehicles
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /logistics/market
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 53x32px "Done" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 264x36px `div.relative > input.flex.h-9.w-full`
|
||||
- 160x36px "All rarities" `div.flex.flex-col.gap-1.5 > button.flex.h-9.items-center`
|
||||
- ...and 2 more
|
||||
|
||||
### /logistics/resources
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /logistics/shipments
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 50x32px "Next" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 38x28px "All" `div.flex.flex-wrap.gap-1.5 > button.inline-flex.items-center.justify-center`
|
||||
- 63x28px "Active" `div.flex.flex-wrap.gap-1.5 > button.inline-flex.items-center.justify-center`
|
||||
- ...and 3 more
|
||||
|
||||
### /logistics/supply-boxes
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /logistics/vehicles
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 38x32px "All" `div.flex.flex-wrap.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 68x32px "Civilian" `div.flex.flex-wrap.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 60x32px "Utility" `div.flex.flex-wrap.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 80x32px "Transport" `div.flex.flex-wrap.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 96x32px "Weaponized" `div.flex.flex-wrap.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 70x32px "Military" `div.flex.flex-wrap.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /map
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 50x32px "Next" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /notifications
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /operations
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 53x32px "Done" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /operations/ledger
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 53x32px "Done" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /operations/reservations
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 101x28px "AllReservedSettledCancelledExp" `div.flex.flex-col.gap-1 > select#reservation-status.border.border-white/15.bg-black/40`
|
||||
- 256x26px `div.flex.flex-col.gap-1 > input#reservation-operation.w-64.border.border-white/15`
|
||||
- 35x32px "Clear" `form.flex.flex-wrap.items-end > a.font-mono.text-[10px].uppercase`
|
||||
- 358x32px "New Reservation" `div.mx-auto.flex.w-full > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /personnel/contacts
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 264x36px "Search contacts by name or occ" `div.relative > input#npc-search.flex.h-9.rounded-md`
|
||||
|
||||
### /personnel/promotions
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /personnel/statistics
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /projects
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 131x32px "Create project" `div.flex.flex-wrap.items-end > button.inline-flex.items-center.justify-center`
|
||||
- 350x36px "Search projects" `div.relative.w-full.lg:max-w-xs > input.flex.h-9.w-full`
|
||||
|
||||
### /projects/search
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 350x36px "Search tickets" `div.relative.w-full.lg:max-w-md > input.flex.h-9.w-full`
|
||||
- 160x36px "All statuses" `div.flex.flex-wrap.gap-2 > button.flex.h-9.items-center`
|
||||
- 150x36px "All types" `div.flex.flex-wrap.gap-2 > button.flex.h-9.items-center`
|
||||
|
||||
### /roster
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 53x32px "Done" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 115x38px "Org Chart" `div.inline-flex.items-center.text-muted-foreground > button#radix-_R_55esnf939etb_-trigger-org.inline-flex.items-center.justify-center`
|
||||
- 151x38px "By Assignment" `div.inline-flex.items-center.text-muted-foreground > button#radix-_R_55esnf939etb_-trigger-assignment.inline-flex.items-center.justify-center`
|
||||
- ...and 3 more
|
||||
|
||||
### /story
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 162x36px "Immersive view" `div.mt-5.flex.flex-wrap > button.inline-flex.items-center.justify-center`
|
||||
- 128x36px "Book view" `div.mt-5.flex.flex-wrap > button.inline-flex.items-center.justify-center`
|
||||
- 28x28px "Play narration: What Makes Us " `div.flex.items-center.gap-2.5 > button.inline-flex.items-center.justify-center`
|
||||
- 56x32px "2" `div.mt-5.flex.flex-wrap > button.inline-flex.items-center.justify-center`
|
||||
- 56x32px "0" `div.mt-5.flex.flex-wrap > button.inline-flex.items-center.justify-center`
|
||||
- 28x28px "Play narration: Little Green L" `div.flex.items-center.gap-2.5 > button.inline-flex.items-center.justify-center`
|
||||
- ...and 1 more
|
||||
|
||||
### /surveys
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /transfers
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /voiceover
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 300x36px "Record a take" `div.p-6.pt-0.flex > a.inline-flex.items-center.justify-center`
|
||||
|
||||
### /wiki
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Replay page tour" `div.ml-auto.flex.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 24x24px "Close tour" `div.mb-2.flex.items-start > button.inline-flex.items-center.justify-center`
|
||||
- 48x32px "Skip" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 53x32px "Done" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 350x36px "Search wiki pages" `div.relative.min-w-56.flex-1 > input.flex.h-9.w-full`
|
||||
- 160x36px "All categories" `div.flex.flex-wrap.items-center > button.flex.h-9.items-center`
|
||||
- ...and 8 more
|
||||
|
||||
### /wiki/new
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 350x36px `div.flex.flex-col.gap-1.5 > input#wiki-title.flex.h-9.w-full`
|
||||
- 350x36px `div.flex.flex-col.gap-1.5 > button#wiki-category.flex.h-9.w-full`
|
||||
- 350x36px `div.flex.flex-col.gap-1.5 > input#wiki-tags.flex.h-9.w-full`
|
||||
- 350x36px `div.flex.flex-col.gap-1.5 > input#wiki-summary.flex.h-9.w-full`
|
||||
- 127x32px "Insert wikilink" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "Bold" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- ...and 21 more
|
||||
|
||||
### /minigames/blackjack
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 117x32px "House rules" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "Refresh blackjack tables" `div.flex.shrink-0.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 138x36px "Create table" `div.flex.shrink-0.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 127x36px "Create a table" `div.flex.flex-col.items-center > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /minigames/call-for-fire
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 149x32px "Begin fire mission" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 32x32px "-50" `div.flex.items-center.gap-1 > button.inline-flex.items-center.justify-center`
|
||||
- 218x32px `div.flex.items-center.gap-1 > input#cff-range.flex.w-full.rounded-md`
|
||||
- 32x32px "+50" `div.flex.items-center.gap-1 > button.inline-flex.items-center.justify-center`
|
||||
- 218x32px `div.flex.items-center.gap-1 > input#cff-deflection.flex.w-full.rounded-md`
|
||||
- 290x36px "Fire mission" `form.flex.flex-col.gap-3 > button.inline-flex.items-center.justify-center`
|
||||
- ...and 3 more
|
||||
|
||||
### /minigames/call-for-fire-versus
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 95x32px "Refresh" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 101x32px "New duel" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /minigames/eod
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 26x26px "row 1 col 1 hidden" `div.grid.min-w-max.grid-cols-[repeat(var(--board-cols),var(--cell-size))] > button.flex.size-[var(--cell-size)].items-center`
|
||||
- 26x26px "row 1 col 2 hidden" `div.grid.min-w-max.grid-cols-[repeat(var(--board-cols),var(--cell-size))] > button.flex.size-[var(--cell-size)].items-center`
|
||||
- 26x26px "row 1 col 3 hidden" `div.grid.min-w-max.grid-cols-[repeat(var(--board-cols),var(--cell-size))] > button.flex.size-[var(--cell-size)].items-center`
|
||||
- 26x26px "row 1 col 4 hidden" `div.grid.min-w-max.grid-cols-[repeat(var(--board-cols),var(--cell-size))] > button.flex.size-[var(--cell-size)].items-center`
|
||||
- 26x26px "row 1 col 5 hidden" `div.grid.min-w-max.grid-cols-[repeat(var(--board-cols),var(--cell-size))] > button.flex.size-[var(--cell-size)].items-center`
|
||||
- 26x26px "row 1 col 6 hidden" `div.grid.min-w-max.grid-cols-[repeat(var(--board-cols),var(--cell-size))] > button.flex.size-[var(--cell-size)].items-center`
|
||||
- ...and 87 more
|
||||
|
||||
### /minigames/eod/custom
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /minigames/flappy
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 82x24px "This period" `div.flex.items-center.gap-1 > button.rounded-md.px-2.5.py-1`
|
||||
- 67x24px "All-Time" `div.flex.items-center.gap-1 > button.rounded-md.px-2.5.py-1`
|
||||
|
||||
### /minigames/leaderboards
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 350x36px "Current period · Oct 12 to Oct" `div.flex.flex-wrap.items-center > button.flex.h-9.items-center`
|
||||
- 149x28px "Flight Simulator" `div.items-center.text-muted-foreground.h-9 > button#radix-_r_8_-trigger-flappy.inline-flex.items-center.justify-center`
|
||||
- 176x28px "Minefield Clearance" `div.items-center.text-muted-foreground.h-9 > button#radix-_r_8_-trigger-eod.inline-flex.items-center.justify-center`
|
||||
- 128x28px "Radio Traffic" `div.items-center.text-muted-foreground.h-9 > button#radix-_r_8_-trigger-radio.inline-flex.items-center.justify-center`
|
||||
- 177x28px "Qualification Course" `div.items-center.text-muted-foreground.h-9 > button#radix-_r_8_-trigger-qualification.inline-flex.items-center.justify-center`
|
||||
- 140x28px "OPORD Recall" `div.items-center.text-muted-foreground.h-9 > button#radix-_r_8_-trigger-opord.inline-flex.items-center.justify-center`
|
||||
- ...and 1 more
|
||||
|
||||
### /minigames/opord
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 82x24px "This period" `div.flex.items-center.gap-1 > button.rounded-md.px-2.5.py-1`
|
||||
- 67x24px "All-Time" `div.flex.items-center.gap-1 > button.rounded-md.px-2.5.py-1`
|
||||
|
||||
### /minigames/poker
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 118x32px "How to play" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "Refresh poker tables" `div.flex.shrink-0.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 138x36px "Create table" `div.flex.shrink-0.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /minigames/qualification
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 36x36px "Crosshair settings" `div.flex.items-center.gap-1.5 > button.inline-flex.items-center.justify-center`
|
||||
- 181x36px "Begin Qualification" `div.absolute.inset-0.flex > button.inline-flex.items-center.justify-center`
|
||||
- 82x24px "This period" `div.flex.items-center.gap-1 > button.rounded-md.px-2.5.py-1`
|
||||
- 67x24px "All-Time" `div.flex.items-center.gap-1 > button.rounded-md.px-2.5.py-1`
|
||||
|
||||
### /minigames/radio
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 154x32px "Sprint · 10 messages" `div.mt-3.grid.grid-cols-2 > button.inline-flex.items-center.justify-center`
|
||||
- 154x32px "Watch · 60 seconds" `div.mt-3.grid.grid-cols-2 > button.inline-flex.items-center.justify-center`
|
||||
- 130x36px "Start intercept" `div.flex.flex-col.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 77x24px "Top Score" `div#radio-traffic-leaderboard-tabs.items-center.justify-center.text-muted-foreground > button#radix-_R_16qatpesnf939etb_-trigger-score.inline-flex.items-center.justify-center`
|
||||
- 77x24px "Top Accuracy" `div#radio-traffic-leaderboard-tabs.items-center.justify-center.text-muted-foreground > button#radix-_R_16qatpesnf939etb_-trigger-accuracy.inline-flex.items-center.justify-center`
|
||||
- 77x24px "Most Correct" `div#radio-traffic-leaderboard-tabs.items-center.justify-center.text-muted-foreground > button#radix-_R_16qatpesnf939etb_-trigger-messages.inline-flex.items-center.justify-center`
|
||||
- ...and 3 more
|
||||
|
||||
### /minigames/radio/custom
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /helpdesk/17
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 58x32px "0upvotes" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 252x36px "In Review" `div.flex.gap-2 > button#ticket-status.flex.h-9.w-full`
|
||||
- 56x32px "Apply" `div.flex.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 252x36px "J. Fraley (jason)" `div.flex.gap-2 > button#ticket-assignee.flex.h-9.w-full`
|
||||
- 134x32px "Archive ticket" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 125x36px "Reply as staff" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /journals/1
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 80x32px "Edit" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 95x32px "Delete" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /profile/dev
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 70x32px "Edit" `div.flex.basis-full.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 122x32px "Grant Award" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 159x32px "Request promotion" `div.flex.items-center.justify-between > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /intelligence/factions/3
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_r_20_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /intelligence/campaigns/4
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 316x34px "ConceptIn ProgressOn HoldCompl" `div.flex.min-w-0.flex-1 > select.w-full.rounded-md.border`
|
||||
|
||||
### /intelligence/missions/11
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /voiceover/2
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 340x36px "Go back" `div.flex.flex-col-reverse.sm:flex-row > button.inline-flex.items-center.justify-center`
|
||||
- 340x36px "I understand" `div.flex.flex-col-reverse.sm:flex-row > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /map/6
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 30x30px "+" `div.leaflet-control-zoom.leaflet-bar.leaflet-control > a.leaflet-control-zoom-in`
|
||||
- 30x30px "−" `div.leaflet-control-zoom.leaflet-bar.leaflet-control > a.leaflet-control-zoom-out`
|
||||
- 82x32px "Structures" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 56x32px "Nodes" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 55x32px "Roads" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- 54x32px "Zones" `div.flex.flex-wrap.items-center > button.inline-flex.items-center.justify-center`
|
||||
- ...and 5 more
|
||||
|
||||
### /logistics/banking/30
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_r_20_.inline-flex.items-center.justify-center`
|
||||
- 101x32px "Deposit" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 111x32px "Withdraw" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
- 111x32px "Transfer" `div.flex.items-center.gap-2 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /logistics/resources/89
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /logistics/vehicles/1902
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /wiki/welcome-to-the-unit
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 72x32px "Edit" `div.flex.flex-wrap.justify-end > a.inline-flex.items-center.justify-center`
|
||||
- 92x32px "History" `div.flex.flex-wrap.justify-end > a.inline-flex.items-center.justify-center`
|
||||
- 78x32px "Lock" `div.flex.flex-wrap.justify-end > button.inline-flex.items-center.justify-center`
|
||||
- 85x32px "Delete" `div.flex.flex-wrap.justify-end > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /wiki/welcome-to-the-unit/history
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /wiki/welcome-to-the-unit/edit
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
|
||||
### /wiki/category/Documentation
|
||||
- 28x28px "Toggle Sidebar" `header.flex.h-16.shrink-0 > button.inline-flex.items-center.justify-center`
|
||||
- 36x36px "No unread notifications" `div.ml-auto.flex.items-center > button#radix-_R_2gp39etb_.inline-flex.items-center.justify-center`
|
||||
- 117x26px "documentation7" `div.flex.flex-wrap.gap-1.5 > a.inline-flex.items-center.gap-1.5`
|
||||
- 89x38px "documentation" `div.flex.shrink-0.flex-wrap > a.relative.z-10.rounded-sm`
|
||||
|
||||
|
||||
## tapTarget
|
||||
|
||||
### /
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
- 90x16px "View full record" `div.flex.items-center.justify-between > a.shrink-0.text-xs.text-muted-foreground`
|
||||
- 44x16px "View all" `div.flex.items-center.justify-between > a.shrink-0.text-xs.text-muted-foreground`
|
||||
- 45x16px "Banking" `div.flex.basis-full.items-center > a.text-xs.text-muted-foreground.transition-colors`
|
||||
- 44x16px "View all" `div.flex.basis-full.items-center > a.text-xs.text-muted-foreground.transition-colors`
|
||||
- 44x16px "View all" `div.flex.basis-full.items-center > a.text-xs.text-muted-foreground.hover:text-primary`
|
||||
|
||||
### /account
|
||||
- 32x18px "Show callsign instead of displ" `label.font-medium.peer-disabled:cursor-not-allowed.peer-disabled:opacity-70 > button#showCallsign.peer.group/switch.inline-flex`
|
||||
- 32x18px "Use mini mode for XP display" `label.font-medium.peer-disabled:cursor-not-allowed.peer-disabled:opacity-70 > button#xpDisplayMini.peer.group/switch.inline-flex`
|
||||
- 32x18px "Show diagonal background textu" `label.font-medium.peer-disabled:cursor-not-allowed.peer-disabled:opacity-70 > button#showBackgroundTexture.peer.group/switch.inline-flex`
|
||||
- 16x16px `div.flex.items-center.gap-2 > button#leadOrActual-lead.aspect-square.size-4.shrink-0`
|
||||
- 16x16px `div.flex.items-center.gap-2 > button#leadOrActual-actual.aspect-square.size-4.shrink-0`
|
||||
- 32x18px "Mute all in-app notifications" `label.font-medium.peer-disabled:cursor-not-allowed.peer-disabled:opacity-70 > button#mutedAll.peer.group/switch.inline-flex`
|
||||
- 32x18px "Mute market offers" `label.peer-disabled:cursor-not-allowed.peer-disabled:opacity-70.flex > button#notification-market-offer.peer.group/switch.inline-flex`
|
||||
- 32x18px "Mute counteroffers" `label.peer-disabled:cursor-not-allowed.peer-disabled:opacity-70.flex > button#notification-market-counter.peer.group/switch.inline-flex`
|
||||
- ...and 52 more
|
||||
|
||||
### /awards
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /awards/design
|
||||
- 16x16px `div.flex.items-start.gap-3 > button#ribbon-mirrored.grid.place-content-center.peer`
|
||||
- 6x28px `div.flex.items-center.gap-2 > input.size-7.rounded.cursor-pointer`
|
||||
- 129x4px `div.flex.items-center.gap-1.5 > input.flex-1.h-1.accent-zinc-400`
|
||||
- 48x20px "\u00D7" `div.flex.items-center.gap-2 > button.text-zinc-500.hover:text-red-400.text-sm`
|
||||
|
||||
### /awards/review
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /events
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /helpdesk
|
||||
- 59x21px "tutorial" `div.w-fit.items-center.gap-2 > a.hover:underline`
|
||||
- 224x21px "New basic games for the app" `div.w-fit.items-center.gap-2 > a.hover:underline`
|
||||
- 179x21px "Player to Player trades" `div.w-fit.items-center.gap-2 > a.hover:underline`
|
||||
- 294x21px "Chronicles chapter order consi" `div.w-fit.items-center.gap-2 > a.hover:underline`
|
||||
- 256x21px "in game comand held desk/ page" `div.w-fit.items-center.gap-2 > a.hover:underline`
|
||||
- 300x21px "Tradeable items not sellable o" `div.w-fit.items-center.gap-2 > a.hover:underline`
|
||||
- 152x21px "Upvotes for Tickets" `div.w-fit.items-center.gap-2 > a.hover:underline`
|
||||
- 197x21px "Editable helpdesk tickets" `div.w-fit.items-center.gap-2 > a.hover:underline`
|
||||
- ...and 5 more
|
||||
|
||||
### /intelligence/campaigns
|
||||
- 32x18px "Show completed campaigns" `div.flex.items-center.justify-end > button#show-completed-campaigns.peer.group/switch.inline-flex`
|
||||
|
||||
### /intelligence/missions/calendar
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /locker
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /logistics
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /logistics/market
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /logistics/shipments
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /map
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /operations
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /operations/ledger
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /personnel/contacts
|
||||
- 16x16px `div.flex.items-center.gap-2 > button#npc-in-game-only.grid.place-content-center.peer`
|
||||
- 16x16px `div.flex.items-center.gap-2 > button#npc-vendors-only.grid.place-content-center.peer`
|
||||
|
||||
### /roster
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
|
||||
### /story
|
||||
- 128x4px "Seek narration: What Makes Us " `div.flex.items-center.gap-2.5 > input.h-1.w-32.cursor-pointer`
|
||||
- 128x4px "Seek narration: Little Green L" `div.flex.items-center.gap-2.5 > input.h-1.w-32.cursor-pointer`
|
||||
|
||||
### /voiceover
|
||||
- 109x21px "Kestrel: Arrival" `div.font-semibold.leading-none.tracking-tight > a.rounded-sm.outline-none.transition-colors`
|
||||
- 110x21px "Practice Script" `div.font-semibold.leading-none.tracking-tight > a.rounded-sm.outline-none.transition-colors`
|
||||
|
||||
### /wiki
|
||||
- 155x16px "Skip all tours on this device" `div.mt-2.border-t.border-border/60 > button.inline-flex.items-center.justify-center`
|
||||
- 105x16px "Characters" `h2.group/cat.flex.items-baseline > a.inline-flex.items-center.gap-1`
|
||||
- 91x18px "Edward Finch" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
- 51x16px "Meta" `h2.group/cat.flex.items-baseline > a.inline-flex.items-center.gap-1`
|
||||
- 139x18px "Example Wiki Article" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
- 128x16px "Documentation" `h2.group/cat.flex.items-baseline > a.inline-flex.items-center.gap-1`
|
||||
- 56x18px "The Map" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
- 133x18px "Welcome to the Unit" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
- ...and 5 more
|
||||
|
||||
### /wiki/new
|
||||
- 42x20px "Wiki" `div.flex.flex-col.gap-3 > a.flex.w-fit.items-center`
|
||||
- 1x1px `div.flex.flex-col.gap-1.5 > select`
|
||||
|
||||
### /minigames/call-for-fire
|
||||
- 60x16px "All boards" `div.flex.items-center.gap-1 > a.ml-auto.pr-1.text-xs`
|
||||
|
||||
### /minigames/eod
|
||||
- 32x18px "Use high-contrast cell colors" `label.flex.items-center.justify-between > button.peer.group/switch.inline-flex`
|
||||
- 60x16px "All boards" `div.flex.items-center.gap-1 > a.ml-auto.pr-1.text-xs`
|
||||
|
||||
### /minigames/flappy
|
||||
- 60x16px "All boards" `div.flex.items-center.gap-1 > a.ml-auto.pr-1.text-xs`
|
||||
|
||||
### /minigames/opord
|
||||
- 16x16px "Recruit briefing tier" `label.flex.cursor-pointer.items-start > button#opord-tier-recruit.aspect-square.size-4.shrink-0`
|
||||
- 16x16px "Veteran briefing tier" `label.flex.cursor-pointer.items-start > button#opord-tier-veteran.aspect-square.size-4.shrink-0`
|
||||
- 16x16px "Elite briefing tier" `label.flex.cursor-pointer.items-start > button#opord-tier-elite.aspect-square.size-4.shrink-0`
|
||||
- 60x16px "All boards" `div.flex.items-center.gap-1 > a.ml-auto.pr-1.text-xs`
|
||||
|
||||
### /minigames/qualification
|
||||
- 16x16px "Recruit qualification lane" `label.flex.cursor-pointer.items-start > button#qualification-tier-recruit.aspect-square.size-4.shrink-0`
|
||||
- 16x16px "Veteran qualification lane" `label.flex.cursor-pointer.items-start > button#qualification-tier-veteran.aspect-square.size-4.shrink-0`
|
||||
- 16x16px "Elite qualification lane" `label.flex.cursor-pointer.items-start > button#qualification-tier-elite.aspect-square.size-4.shrink-0`
|
||||
- 60x16px "All boards" `div.flex.items-center.gap-1 > a.ml-auto.pr-1.text-xs`
|
||||
|
||||
### /minigames/radio
|
||||
- 32x18px `div.mt-3.flex.items-center > button#radio-tick-sound.peer.group/switch.inline-flex`
|
||||
- 60x16px "All boards" `div.flex.items-center.gap-1 > a.ml-auto.pr-1.text-xs`
|
||||
|
||||
### /helpdesk/17
|
||||
- 77x20px "Helpdesk" `div.flex.flex-col.gap-3 > a.flex.w-fit.items-center`
|
||||
|
||||
### /journals/1
|
||||
- 94x20px "All journals" `div.mx-auto.max-w-3xl.px-4 > a.inline-flex.items-center.gap-1.5`
|
||||
|
||||
### /profile/dev
|
||||
- 50x20px "Back" `div.p-5.flex.flex-col > a.text-sm.text-muted-foreground.hover:text-primary`
|
||||
|
||||
### /intelligence/factions/3
|
||||
- 126x20px "Back to Factions" `div.absolute.top-0.left-0 > a.flex.w-fit.items-center`
|
||||
- 165x20px "Batch 41-7 (POLARIS)" `div.flex.items-center.justify-between > a.flex.items-center.gap-2`
|
||||
|
||||
### /intelligence/campaigns/4
|
||||
- 143x20px "Back to Campaigns" `div.absolute.top-0.left-0 > a.flex.w-fit.items-center`
|
||||
|
||||
### /intelligence/missions/11
|
||||
- 126x20px "Back to Missions" `div.absolute.top-0.left-0 > a.flex.w-fit.items-center`
|
||||
|
||||
### /voiceover/2
|
||||
- 127x20px "Voiceover scripts" `div.flex.min-w-0.flex-col > a.flex.w-fit.items-center`
|
||||
|
||||
### /logistics/banking/30
|
||||
- 123x20px "Back to Banking" `div.flex.flex-col.gap-6 > a.text-sm.text-muted-foreground.hover:text-primary`
|
||||
|
||||
### /logistics/resources/89
|
||||
- 138x20px "Back to Resources" `div.p-5.flex.flex-col > a.text-sm.text-muted-foreground.hover:text-primary`
|
||||
|
||||
### /logistics/vehicles/1902
|
||||
- 125x20px "Back to Vehicles" `div.p-5.flex.flex-col > a.text-sm.text-muted-foreground.hover:text-primary`
|
||||
|
||||
### /wiki/welcome-to-the-unit
|
||||
- 42x20px "Wiki" `div.flex.flex-col.gap-3 > a.flex.w-fit.items-center`
|
||||
- 61x19px "The Map" `li > a.font-medium.text-primary.underline`
|
||||
- 76x19px "Shipments" `li > a.font-medium.text-primary.underline`
|
||||
- 198x19px "Logistics and Storage Rules" `li > a.font-medium.text-primary.underline`
|
||||
- 131x19px "Base Management" `li > a.font-medium.text-primary.underline`
|
||||
- 57x19px "Banking" `li > a.font-medium.text-primary.underline`
|
||||
- 167x19px "Market and Negotiation" `li > a.font-medium.text-primary.underline`
|
||||
|
||||
### /wiki/welcome-to-the-unit/history
|
||||
- 103x20px "Back to page" `div.flex.flex-col.gap-3 > a.flex.w-fit.items-center`
|
||||
|
||||
### /wiki/welcome-to-the-unit/edit
|
||||
- 103x20px "Back to page" `div.flex.flex-col.gap-6 > a.flex.w-fit.items-center`
|
||||
|
||||
### /wiki/category/Documentation
|
||||
- 42x20px "Wiki" `div.flex.flex-col.gap-3 > a.flex.w-fit.items-center`
|
||||
- 56x18px "The Map" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
- 133x18px "Welcome to the Unit" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
- 71x18px "Shipments" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
- 157x18px "Market and Negotiation" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
- 188x18px "Logistics and Storage Rules" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
- 123x18px "Base Management" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
- 55x18px "Banking" `div.min-w-0 > a.text-sm.font-medium.after:absolute`
|
||||
|
||||
|
||||
## overflow
|
||||
|
||||
### /awards/design
|
||||
- document scrollWidth 420px > 390px
|
||||
- crosses edge by 30px `div.flex.items-center.gap-2 > button.text-zinc-500.hover:text-red-400.text-sm`
|
||||
|
||||
### /helpdesk
|
||||
- document scrollWidth 510px > 390px
|
||||
- crosses edge by 120px `div.inline-flex.items-center.text-muted-foreground > button#radix-_R_1l5esnf939etb_-trigger-unassigned.inline-flex.items-center.justify-center`
|
||||
- crosses edge by 108px `button#radix-_R_1l5esnf939etb_-trigger-unassigned.inline-flex.items-center.justify-center > div.inline-flex.items-center.rounded-md`
|
||||
|
||||
### /logistics/resources
|
||||
- document scrollWidth 424px > 390px
|
||||
- crosses edge by 34px `div.group/item.[a]:hover:bg-accent/50.focus-visible:border-ring > div.flex.basis-full.items-center`
|
||||
- crosses edge by 34px `div.flex.basis-full.items-center > div.flex.items-center.gap-2`
|
||||
- crosses edge by 34px `div.flex.items-center.gap-2 > span.text-[10px].font-semibold.uppercase`
|
||||
|
||||
### /roster
|
||||
- document scrollWidth 639px > 390px
|
||||
- crosses edge by 1291px `div.overflow-x-auto.pb-2 > div.flex.flex-col.items-center`
|
||||
- crosses edge by 1291px `div.flex.flex-col.items-center > div.flex.flex-col.items-center`
|
||||
- crosses edge by 1291px `div.flex.flex-col.items-center > div.flex.items-start`
|
||||
- crosses edge by 1291px `div.flex.items-start > div.org-tree-child.px-3`
|
||||
|
||||
### /minigames/blackjack
|
||||
- document scrollWidth 401px > 390px
|
||||
- crosses edge by 11px `div.grid.min-w-0.gap-6 > section.min-w-0`
|
||||
- crosses edge by 11px `section.min-w-0 > div.border.bg-card.text-card-foreground`
|
||||
- crosses edge by 11px `div.grid.min-w-0.gap-6 > div.border.bg-card.text-card-foreground`
|
||||
- crosses edge by 10px `div.border.bg-card.text-card-foreground > div.flex.space-y-1.5.flex-row`
|
||||
|
||||
### /minigames/flappy
|
||||
- document scrollWidth 507px > 390px
|
||||
- crosses edge by 117px `div.w-full.max-w-[420px].rounded-xl > table.w-full.text-sm`
|
||||
- crosses edge by 117px `table.w-full.text-sm > thead`
|
||||
- crosses edge by 117px `thead > tr.text-left.text-xs.uppercase`
|
||||
- crosses edge by 117px `tr.text-left.text-xs.uppercase > th.px-4.py-2.text-right`
|
||||
|
||||
|
||||
## hoverOnly
|
||||
|
||||
### /intelligence/campaigns
|
||||
- affordance only visible on hover `article.group.relative.overflow-hidden > footer.absolute.inset-x-0.bottom-0`
|
||||
|
||||
|
||||
## grid
|
||||
|
||||
### /locker
|
||||
- 3-track grid, track under 60px (252px wide) `button.group.flex.min-h-20 > span.grid.min-w-0.grid-cols-[2rem_minmax(0,1fr)_auto]`
|
||||
- 3-track grid, track under 60px (226px wide) `button.group.flex.min-h-20 > span.grid.min-w-0.grid-cols-[2rem_minmax(0,1fr)_auto]`
|
||||
|
||||
### /minigames/call-for-fire
|
||||
- 11-track grid, track under 60px (319px wide) `div.flex.min-w-0.items-start > div.grid.min-w-max.gap-1`
|
||||
|
||||
### /minigames/eod
|
||||
- 10-track grid, track under 60px (298px wide) `div.flex.min-w-0.max-w-full > div.grid.min-w-max.grid-cols-[repeat(var(--board-cols),var(--cell-size))]`
|
||||
|
||||
|
||||
## hiddenMobile
|
||||
|
||||
### /locker
|
||||
- hidden on mobile (md:/lg: reveal) `div.flex.shrink-0.items-center > span.hidden.font-mono.text-[10px]`
|
||||
|
||||
468
tests/audit/mobile-audit.ts
Normal file
468
tests/audit/mobile-audit.ts
Normal file
|
|
@ -0,0 +1,468 @@
|
|||
/**
|
||||
* Pass 2 Session A - mobile layout audit.
|
||||
*
|
||||
* Walks every frontend route at 390x844 against a running dev server and
|
||||
* classifies issues into pattern classes:
|
||||
* overflow horizontal scroll / elements crossing the viewport edge
|
||||
* dialog dialogs/panels taller than the viewport
|
||||
* grid multi-track grids that are cramped at mobile width
|
||||
* hoverOnly affordances revealed only via (group-)hover
|
||||
* hiddenMobile content gated behind md:/lg: breakpoints (invisible on mobile)
|
||||
* tapTarget interactive elements under 24px (WCAG 2.5.8 violation)
|
||||
* tapTargetMarginal interactive elements 24-39px (review tier)
|
||||
*
|
||||
* Usage: bun run tests/audit/mobile-audit.ts
|
||||
* Env: AUDIT_BASE_URL (default http://localhost:3000)
|
||||
* AUDIT_USER / AUDIT_PASS (default dev / Test123)
|
||||
* E2E_BROWSER_PATH (browser executable override)
|
||||
*
|
||||
* Outputs tests/audit/mobile-audit-report.json (regression gate artifact for
|
||||
* Sessions B-D) and mobile-audit-report.md (human issue matrix).
|
||||
*/
|
||||
import { chromium, type BrowserContext, type Page } from "@playwright/test";
|
||||
import { mkdirSync, writeFileSync } from "node:fs";
|
||||
import { dirname, join } from "node:path";
|
||||
|
||||
const BASE_URL = process.env.AUDIT_BASE_URL ?? "http://localhost:3000";
|
||||
const USER = process.env.AUDIT_USER ?? "dev";
|
||||
const PASS = process.env.AUDIT_PASS ?? "Test123";
|
||||
const VIEWPORT = { width: 390, height: 844 };
|
||||
const OUT_DIR = join(__dirname);
|
||||
// Optional substring filter for targeted re-audits (Sessions B-D). When set,
|
||||
// reports go to mobile-audit-filtered.{json,md} so the baseline is untouched.
|
||||
const ROUTE_FILTER = process.env.AUDIT_ROUTE_FILTER ?? "";
|
||||
let authToken: string | null = null;
|
||||
|
||||
type Issue = { kind: string; detail: string; selector?: string; size?: string };
|
||||
type RouteResult = {
|
||||
route: string;
|
||||
url: string;
|
||||
status: "ok" | "skipped" | "error";
|
||||
httpStatus?: number;
|
||||
note?: string;
|
||||
issues: Issue[];
|
||||
};
|
||||
|
||||
/** Static routes, straight from the filesystem. */
|
||||
const STATIC_ROUTES = [
|
||||
"/", "/account", "/awards", "/awards/design", "/awards/review",
|
||||
"/contributions", "/events", "/helpdesk", "/intelligence",
|
||||
"/intelligence/campaigns", "/intelligence/factions",
|
||||
"/intelligence/missions", "/intelligence/missions/calendar",
|
||||
"/journals", "/locker", "/logistics", "/logistics/banking",
|
||||
"/logistics/game-vehicles", "/logistics/market", "/logistics/resources",
|
||||
"/logistics/shipments", "/logistics/supply-boxes", "/logistics/vehicles",
|
||||
"/map", "/notifications",
|
||||
"/operations", "/operations/ledger", "/operations/reservations",
|
||||
"/personnel/contacts", "/personnel/promotions", "/personnel/statistics",
|
||||
"/projects", "/projects/search", "/roster", "/story",
|
||||
"/surveys", "/transfers", "/voiceover", "/wiki", "/wiki/new",
|
||||
"/minigames/blackjack", "/minigames/call-for-fire",
|
||||
"/minigames/call-for-fire-versus", "/minigames/eod", "/minigames/eod/custom",
|
||||
"/minigames/flappy", "/minigames/leaderboards", "/minigames/opord",
|
||||
"/minigames/poker", "/minigames/qualification", "/minigames/radio",
|
||||
"/minigames/radio/custom",
|
||||
];
|
||||
|
||||
/**
|
||||
* Dynamic routes: template -> REST collection to resolve a real doc from the
|
||||
* dev DB, plus the field substituted into the path. `null` collection means
|
||||
* the route is skipped if no candidate resolves.
|
||||
*/
|
||||
const DYNAMIC_ROUTES: { template: string; collection: string | null; field: string; fallback?: string }[] = [
|
||||
{ template: "/helpdesk/[id]", collection: "tickets", field: "id" },
|
||||
{ template: "/journals/[id]", collection: "journals", field: "id" },
|
||||
{ template: "/surveys/[id]", collection: "forms", field: "id" },
|
||||
{ template: "/profile/[username]", collection: null, field: "", fallback: USER },
|
||||
{ template: "/operations/[operationId]", collection: "operations", field: "id" },
|
||||
{ template: "/operations/reservations/[id]", collection: "operation-reservations", field: "id" },
|
||||
{ template: "/intelligence/factions/[id]", collection: "factions", field: "id" },
|
||||
{ template: "/intelligence/campaigns/[id]", collection: "campaigns", field: "id" },
|
||||
{ template: "/intelligence/missions/[id]", collection: "missions", field: "id" },
|
||||
{ template: "/projects/[key]", collection: "projects", field: "key", fallback: "" },
|
||||
{ template: "/voiceover/[id]", collection: "voice-scripts", field: "id" },
|
||||
{ template: "/map/[id]", collection: "maps", field: "id" },
|
||||
{ template: "/personnel/contacts/[id]", collection: "contacts", field: "id" },
|
||||
{ template: "/logistics/supply-boxes/[id]", collection: "supply-boxes", field: "id" },
|
||||
{ template: "/logistics/structures/[id]", collection: "structures", field: "id" },
|
||||
{ template: "/logistics/banking/[id]", collection: "bank-accounts", field: "id" },
|
||||
{ template: "/logistics/resources/[id]", collection: "resources", field: "id" },
|
||||
{ template: "/logistics/shipments/[id]", collection: "shipments", field: "id" },
|
||||
{ template: "/logistics/game-vehicles/[id]", collection: "game-vehicles", field: "id" },
|
||||
{ template: "/logistics/vehicles/[id]", collection: "vehicles", field: "id" },
|
||||
{ template: "/minigames/eod/custom/[id]", collection: "custom-minefields", field: "id" },
|
||||
{ template: "/minigames/radio/custom/[id]", collection: "custom-radio-tests", field: "id" },
|
||||
];
|
||||
|
||||
/** Wiki routes need a slug/category instead of an id. */
|
||||
const WIKI_ROUTES = [
|
||||
{ template: "/wiki/[slug]", suffix: "" },
|
||||
{ template: "/wiki/[slug]", suffix: "/history" },
|
||||
{ template: "/wiki/[slug]", suffix: "/edit" },
|
||||
];
|
||||
|
||||
async function resolveDoc(collection: string): Promise<Record<string, unknown> | null> {
|
||||
try {
|
||||
const res = await fetch(`${BASE_URL}/api/${collection}?limit=1&sort=-createdAt`, {
|
||||
headers: authToken ? { Cookie: `payload-token=${authToken}` } : {},
|
||||
});
|
||||
if (!res.ok) return null;
|
||||
const body = (await res.json()) as { docs?: Record<string, unknown>[] };
|
||||
return body.docs?.[0] ?? null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** Runs inside the page; returns raw issue records. */
|
||||
async function collectIssues(): Promise<Issue[]> {
|
||||
const issues: Issue[] = [];
|
||||
const vw = window.innerWidth;
|
||||
const vh = window.innerHeight;
|
||||
const path = (el: Element): string => {
|
||||
const parts: string[] = [el.tagName.toLowerCase()];
|
||||
if (el.id) parts.push("#" + el.id);
|
||||
const cls = typeof el.className === "string" ? el.className.split(/\s+/).filter(Boolean).slice(0, 3) : [];
|
||||
if (cls.length) parts.push("." + cls.join("."));
|
||||
const parent = el.parentElement;
|
||||
return (parent ? path(parent).split(" > ").pop() + " > " : "") + parts.join("");
|
||||
};
|
||||
|
||||
// 1. Horizontal overflow
|
||||
const docW = document.documentElement.scrollWidth;
|
||||
if (docW > vw + 1) {
|
||||
issues.push({ kind: "overflow", detail: `document scrollWidth ${docW}px > ${vw}px` });
|
||||
const offenders: { el: Element; over: number }[] = [];
|
||||
for (const el of Array.from(document.querySelectorAll("body *"))) {
|
||||
const rect = el.getBoundingClientRect();
|
||||
if (rect.width < 8 || rect.height < 2) continue;
|
||||
const style = getComputedStyle(el);
|
||||
if (style.position === "fixed") continue;
|
||||
const over = Math.max(rect.right - vw, -rect.left);
|
||||
if (over > 4) offenders.push({ el, over });
|
||||
}
|
||||
offenders.sort((a, b) => b.over - a.over);
|
||||
for (const o of offenders.slice(0, 4)) {
|
||||
issues.push({
|
||||
kind: "overflow",
|
||||
detail: `crosses edge by ${Math.round(o.over)}px`,
|
||||
selector: path(o.el),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 2. Dialogs taller than viewport
|
||||
for (const dlg of Array.from(document.querySelectorAll('[role="dialog"],[role="alertdialog"]'))) {
|
||||
const rect = dlg.getBoundingClientRect();
|
||||
if (rect.height > vh + 1 || rect.bottom > vh + 1) {
|
||||
issues.push({
|
||||
kind: "dialog",
|
||||
detail: `height ${Math.round(rect.height)}px > viewport ${vh}px`,
|
||||
selector: path(dlg),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 3. Cramped multi-track grids
|
||||
for (const el of Array.from(document.querySelectorAll("*"))) {
|
||||
const style = getComputedStyle(el);
|
||||
if (style.display !== "grid") continue;
|
||||
const tracks = style.gridTemplateColumns.split(" ").filter(Boolean);
|
||||
if (tracks.length < 2) continue;
|
||||
const widths = tracks.map((t) => parseFloat(t) || 0);
|
||||
const narrow = widths.some((w) => w < 60);
|
||||
const overflowing = el.scrollWidth > el.clientWidth + 1;
|
||||
const pxSum = widths.reduce((a, b) => a + b, 0);
|
||||
if ((tracks.length >= 2 && narrow) || overflowing || pxSum > el.clientWidth + 1) {
|
||||
const rect = el.getBoundingClientRect();
|
||||
if (rect.width < 40) continue;
|
||||
issues.push({
|
||||
kind: "grid",
|
||||
detail: `${tracks.length}-track grid${narrow ? ", track under 60px" : ""}${overflowing ? ", content overflows" : ""} (${Math.round(rect.width)}px wide)`,
|
||||
selector: path(el),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 4. Hover-only affordances (invisible until hover/group-hover)
|
||||
for (const el of Array.from(document.querySelectorAll('[class*="group-hover:"],[class*="hover:opacity"],[class*="hover:visible"],[class*="hover:block"],[class*="hover:flex"]'))) {
|
||||
const style = getComputedStyle(el);
|
||||
const cls: string = typeof el.className === "string" ? el.className : "";
|
||||
const revealsOpacity = /(?:group-)?hover:opacity-\d/.test(cls) && parseFloat(style.opacity) < 0.05;
|
||||
const revealsDisplay = /(?:group-)?hover:(block|flex)/.test(cls) && style.display === "none";
|
||||
if (revealsOpacity || revealsDisplay) {
|
||||
issues.push({ kind: "hoverOnly", detail: "affordance only visible on hover", selector: path(el) });
|
||||
}
|
||||
}
|
||||
|
||||
// 5. Content hidden at mobile behind md:/lg: reveal utilities. shadcn's
|
||||
// Sidebar ships desktop-only scaffolding (peer spacer + fixed container)
|
||||
// and Tailwind `peer` helpers are styling aids, never user content.
|
||||
for (const el of Array.from(document.querySelectorAll('[class*="md:block"],[class*="md:flex"],[class*="lg:block"],[class*="lg:flex"],[class*="md:inline"],[class*="lg:inline"]'))) {
|
||||
const cls: string = typeof el.className === "string" ? el.className : "";
|
||||
if (!/(?:^|\s)hidden(?=\s|$)/.test(cls)) continue;
|
||||
if (el.closest(".peer") || el.closest("aside")) continue;
|
||||
const style = getComputedStyle(el);
|
||||
if (style.display !== "none") continue;
|
||||
issues.push({ kind: "hiddenMobile", detail: "hidden on mobile (md:/lg: reveal)", selector: path(el) });
|
||||
}
|
||||
|
||||
// 6. Tap targets: WCAG 2.5.8 floor is 24px; 24-39px is a marginal tier for
|
||||
// review (shadcn defaults live there). Labels are excluded - their
|
||||
// associated control is the actual tap target.
|
||||
const interactive = 'a,button,[role="button"],[role="tab"],input:not([type="hidden"]),select';
|
||||
for (const el of Array.from(document.querySelectorAll(interactive))) {
|
||||
const rect = el.getBoundingClientRect();
|
||||
if (rect.width === 0 || rect.height === 0) continue;
|
||||
const style = getComputedStyle(el);
|
||||
if (style.visibility === "hidden" || style.opacity === "0") continue;
|
||||
const minSide = Math.min(rect.width, rect.height);
|
||||
if (minSide >= 40) continue;
|
||||
const kind = minSide < 24 ? "tapTarget" : "tapTargetMarginal";
|
||||
const label = (el.textContent || el.getAttribute("aria-label") || el.getAttribute("title") || "").trim().slice(0, 30);
|
||||
issues.push({
|
||||
kind,
|
||||
detail: `${Math.round(rect.width)}x${Math.round(rect.height)}px${label ? ` "${label}"` : ""}`,
|
||||
selector: path(el),
|
||||
});
|
||||
}
|
||||
|
||||
return issues;
|
||||
}
|
||||
|
||||
async function auditRoute(context: BrowserContext, route: string): Promise<RouteResult> {
|
||||
const url = `${BASE_URL}${route}`;
|
||||
const page: Page = await context.newPage();
|
||||
try {
|
||||
// The realtime SSE stream never finishes and competes for the per-host
|
||||
// connection cap; it adds nothing to a layout audit.
|
||||
await page.route("**/api/realtime**", (r) => r.abort());
|
||||
const res = await page.goto(url, { waitUntil: "domcontentloaded", timeout: 60_000 });
|
||||
const httpStatus = res?.status();
|
||||
// Let client components render.
|
||||
await page.waitForTimeout(2000);
|
||||
if (httpStatus && httpStatus >= 400) {
|
||||
return { route, url, status: "skipped", httpStatus, note: `HTTP ${httpStatus}`, issues: [] };
|
||||
}
|
||||
const issues = await page.evaluate(collectIssues);
|
||||
return { route, url, status: "ok", httpStatus, issues };
|
||||
} catch (err) {
|
||||
return { route, url, status: "error", note: String(err).slice(0, 200), issues: [] };
|
||||
} finally {
|
||||
await page.close();
|
||||
}
|
||||
}
|
||||
|
||||
async function main() {
|
||||
// Fail fast if the server dies mid-audit instead of retrying every route.
|
||||
let consecutiveConnectionFailures = 0;
|
||||
const serverAlive = async (): Promise<boolean> => {
|
||||
try {
|
||||
const res = await fetch(`${BASE_URL}/api/version`, { signal: AbortSignal.timeout(5000) });
|
||||
return res.ok;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
const browser = await chromium.launch({
|
||||
executablePath: process.env.E2E_BROWSER_PATH || undefined,
|
||||
headless: true,
|
||||
});
|
||||
const context = await browser.newContext({ viewport: VIEWPORT });
|
||||
|
||||
// Authenticate via REST so gated routes render the app shell instead of the
|
||||
// landing page. Playwright's request context is flaky under Bun, so use the
|
||||
// global fetch and inject the resulting cookie into the browser context.
|
||||
const login = await fetch(`${BASE_URL}/api/users/login`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ username: USER, password: PASS }),
|
||||
});
|
||||
if (!login.ok) {
|
||||
console.error(`Login failed (${login.status}). Is the dev server up at ${BASE_URL}?`);
|
||||
await browser.close();
|
||||
process.exit(1);
|
||||
}
|
||||
const loginBody = (await login.json()) as { token?: string };
|
||||
if (!loginBody.token) {
|
||||
console.error("Login response had no token; cannot authenticate the audit context.");
|
||||
await browser.close();
|
||||
process.exit(1);
|
||||
}
|
||||
authToken = loginBody.token;
|
||||
await context.addCookies([{ name: "payload-token", value: authToken, url: BASE_URL }]);
|
||||
|
||||
const routes: string[] = [...STATIC_ROUTES];
|
||||
const results: RouteResult[] = [];
|
||||
|
||||
for (const dyn of DYNAMIC_ROUTES) {
|
||||
let value = dyn.fallback ?? null;
|
||||
if (!value && dyn.collection) {
|
||||
const doc = await resolveDoc(dyn.collection);
|
||||
if (doc) {
|
||||
const raw = (doc as Record<string, unknown>)[dyn.field] ?? doc.id;
|
||||
if (raw != null) value = String(raw);
|
||||
}
|
||||
}
|
||||
if (!value) {
|
||||
// Navigating to the literal bracket URL would render a bogus page;
|
||||
// record an explicit skip instead.
|
||||
results.push({
|
||||
route: dyn.template,
|
||||
url: "-",
|
||||
status: "skipped",
|
||||
note: dyn.collection ? `no resolvable doc in dev DB (${dyn.collection})` : "unresolved",
|
||||
issues: [],
|
||||
});
|
||||
continue;
|
||||
}
|
||||
routes.push(dyn.template.replace(/\[[^\]]+\]/, value));
|
||||
}
|
||||
|
||||
const wikiDoc = await resolveDoc("wiki-pages");
|
||||
for (const w of WIKI_ROUTES) {
|
||||
const slug = wikiDoc?.slug ? String(wikiDoc.slug) : null;
|
||||
if (!slug) {
|
||||
results.push({
|
||||
route: w.template + w.suffix,
|
||||
url: "-",
|
||||
status: "skipped",
|
||||
note: "no wiki page in dev DB",
|
||||
issues: [],
|
||||
});
|
||||
continue;
|
||||
}
|
||||
routes.push(w.template.replace("[slug]", slug) + w.suffix);
|
||||
}
|
||||
const category = wikiDoc?.category ? String((wikiDoc.category as { category?: string }).category ?? wikiDoc.category) : "general";
|
||||
routes.push(`/wiki/category/${encodeURIComponent(category || "general")}`);
|
||||
|
||||
console.log(`Auditing ${routes.length} routes at ${VIEWPORT.width}x${VIEWPORT.height} against ${BASE_URL}`);
|
||||
const auditedRoutes = ROUTE_FILTER ? routes.filter((r) => r.includes(ROUTE_FILTER)) : routes;
|
||||
if (ROUTE_FILTER) {
|
||||
// Targeted run: drop pre-seeded skips that did not match the filter.
|
||||
results.length = 0;
|
||||
}
|
||||
if (ROUTE_FILTER) console.log(`Filter "${ROUTE_FILTER}" matched ${auditedRoutes.length} route(s)`);
|
||||
for (const route of auditedRoutes) {
|
||||
let result = await auditRoute(context, route);
|
||||
// Cold-compile can transiently 5xx or stall on first visit; retry once.
|
||||
if (result.status === "skipped" && (result.httpStatus === 500 || result.httpStatus === 503)) {
|
||||
console.log(` ~ ${route} returned ${result.httpStatus}, retrying once`);
|
||||
result = await auditRoute(context, route);
|
||||
} else if (result.status === "error") {
|
||||
console.log(` ~ ${route} errored (${(result.note ?? "").slice(0, 60)}), retrying once`);
|
||||
result = await auditRoute(context, route);
|
||||
}
|
||||
if (result.status === "error" && /CONNECTION_REFUSED|CONNECTION_RESET|ECONNREFUSED/.test(result.note ?? "")) {
|
||||
consecutiveConnectionFailures += 1;
|
||||
if (consecutiveConnectionFailures >= 2 && !(await serverAlive())) {
|
||||
console.error("\nDev server stopped responding mid-audit. Restart it and re-run; results are incomplete.");
|
||||
await browser.close();
|
||||
process.exit(1);
|
||||
}
|
||||
} else {
|
||||
consecutiveConnectionFailures = 0;
|
||||
}
|
||||
const counts = result.issues.reduce<Record<string, number>>((acc, i) => {
|
||||
acc[i.kind] = (acc[i.kind] ?? 0) + 1;
|
||||
return acc;
|
||||
}, {});
|
||||
console.log(
|
||||
`${result.status === "ok" ? "✓" : result.status === "skipped" ? "–" : "✗"} ${route} [${result.status}]${result.note ? ` (${result.note})` : ""} ${Object.entries(counts).map(([k, v]) => `${k}:${v}`).join(" ")}`,
|
||||
);
|
||||
results.push(result);
|
||||
}
|
||||
|
||||
// Dedupe identical issues per route (same kind+selector repeats across children).
|
||||
for (const r of results) {
|
||||
const seen = new Set<string>();
|
||||
r.issues = r.issues.filter((i) => {
|
||||
const key = `${i.kind}|${i.selector ?? ""}|${i.detail}`;
|
||||
if (seen.has(key)) return false;
|
||||
seen.add(key);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
const byKind: Record<string, { route: string; issue: Issue }[]> = {};
|
||||
for (const r of results) {
|
||||
for (const issue of r.issues) {
|
||||
(byKind[issue.kind] ??= []).push({ route: r.route, issue });
|
||||
}
|
||||
}
|
||||
|
||||
const summary = Object.fromEntries(
|
||||
Object.entries(byKind).map(([kind, list]) => [kind, { routes: new Set(list.map((l) => l.route)).size, findings: list.length }]),
|
||||
);
|
||||
|
||||
const report = {
|
||||
generatedAt: new Date().toISOString(),
|
||||
baseUrl: BASE_URL,
|
||||
viewport: VIEWPORT,
|
||||
routesAudited: results.length,
|
||||
routesOk: results.filter((r) => r.status === "ok").length,
|
||||
summary,
|
||||
results,
|
||||
};
|
||||
|
||||
const suffix = ROUTE_FILTER ? "filtered" : "report";
|
||||
writeFileSync(join(OUT_DIR, `mobile-audit-${suffix}.json`), JSON.stringify(report, null, 2));
|
||||
|
||||
let md = `# Mobile audit (${VIEWPORT.width}x${VIEWPORT.height}) - ${new Date().toISOString()}\n\n`;
|
||||
md += `Base: ${BASE_URL} | routes audited: ${results.length} (ok: ${report.routesOk})\n\n`;
|
||||
md += `| Pattern class | Routes affected | Findings |\n|---|---|---|\n`;
|
||||
for (const [kind, s] of Object.entries(summary)) md += `| ${kind} | ${s.routes} | ${s.findings} |\n`;
|
||||
|
||||
// Cross-route clustering: same selector shape recurring across routes is
|
||||
// one fixable pattern, not N findings. Sessions B-D work per cluster.
|
||||
const signature = (selector?: string): string => {
|
||||
if (!selector) return "(document)";
|
||||
const last = selector.split(" > ").pop() ?? selector;
|
||||
return last.replace(/#[a-zA-Z0-9_-]+/g, "").slice(0, 60);
|
||||
};
|
||||
for (const [kind, list] of Object.entries(byKind)) {
|
||||
const clusters = new Map<string, { count: number; routes: Set<string>; example: string }>();
|
||||
for (const item of list) {
|
||||
const key = signature(item.issue.selector);
|
||||
const c = clusters.get(key) ?? { count: 0, routes: new Set<string>(), example: item.issue.detail };
|
||||
c.count += 1;
|
||||
c.routes.add(item.route);
|
||||
clusters.set(key, c);
|
||||
}
|
||||
const sorted = [...clusters.entries()].sort((a, b) => b[1].routes.size - a[1].routes.size);
|
||||
md += `\n## ${kind}: pattern clusters\n\n| Selector shape | Findings | Routes | Example |\n|---|---|---|---|\n`;
|
||||
for (const [sig, c] of sorted.slice(0, 12)) {
|
||||
md += `| \`${sig}\` | ${c.count} | ${c.routes.size} | ${c.example.slice(0, 50)} |\n`;
|
||||
}
|
||||
}
|
||||
|
||||
md += `\n---\n\n# Per-route detail\n`;
|
||||
for (const [kind, list] of Object.entries(byKind)) {
|
||||
md += `\n## ${kind}\n\n`;
|
||||
const byRoute = new Map<string, Issue[]>();
|
||||
for (const item of list) {
|
||||
const arr = byRoute.get(item.route) ?? [];
|
||||
arr.push(item.issue);
|
||||
byRoute.set(item.route, arr);
|
||||
}
|
||||
for (const [route, issues] of byRoute) {
|
||||
md += `### ${route}\n`;
|
||||
for (const i of issues.slice(0, 8)) md += `- ${i.detail}${i.selector ? ` \`${i.selector}\`` : ""}\n`;
|
||||
if (issues.length > 8) md += `- ...and ${issues.length - 8} more\n`;
|
||||
md += "\n";
|
||||
}
|
||||
}
|
||||
mkdirSync(dirname(join(OUT_DIR, `mobile-audit-${suffix}.md`)), { recursive: true });
|
||||
writeFileSync(join(OUT_DIR, `mobile-audit-${suffix}.md`), md);
|
||||
|
||||
console.log(`\nSummary: ${JSON.stringify(summary)}`);
|
||||
console.log(`Wrote tests/audit/mobile-audit-${suffix}.json and .md`);
|
||||
await browser.close();
|
||||
}
|
||||
|
||||
main().catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
Loading…
Reference in a new issue