api-medic — Report screen design reference

Static visual reference for the diagnostic report screen built in Phase 2. The production React version uses Tailwind utilities; the visual hierarchy, severity color usage, spacing, and information density shown here should be preserved. The example scenario shown is the canonical fixture: a POST returning 401 with an expired JWT.

apidoctor — diagnostic report
2026-04-25 14:23 UTC
POST https://api.example.com/v1/users 401 Unauthorized
Latency
247 ms
Body
89 B
Protocol
HTTP/2
Findings
2 critical
Timing breakdown
DNS
12 ms
Connect
45 ms
TLS
78 ms
TTFB
95 ms
Download
17 ms
Findings
Bearer token has expired Critical
The JWT in your Authorization header expired 3 hours ago. This is the most likely cause of the 401.
exp: 2026-04-25T11:23:00Z · expired 3h 0m ago
Suggested fix: Refresh the token at /oauth/token and retry.
Authorization header has trailing whitespace Critical
The Authorization value ends with a newline. Some servers reject this as a malformed header.
Authorization: Bearer eyJhbGc...XYZ\n
Suggested fix: Trim the value before setting the header.
Missing strict-transport-security header Warning
Response is missing HSTS. Not the cause of your 401, but a security gap worth reporting.
Suggested fix: Add Strict-Transport-Security on the server.

Design notes

Decisions worth preserving when translating this layout to React + Tailwind:

The other Phase 2 surfaces — the request composer (URL/method/headers/body form) and the HAR upload page — don't have visual references yet. Mock them in the same visual style: white cards on a soft gray background, 0.5px borders, generous padding, sentence-case labels.