Build a modern, interactive HAR-style waterfall viewer UI in React using Tailwind CSS…
- User
Build a modern, interactive HAR-style waterfall viewer UI in React using Tailwind CSS and optionally ShadCN UI components. The UI should replicate the visual structure and functionality shown in the provided screenshot. Below are the key features and detailed UI requirements:
⸻
🧱 UI Structure 1. Header with Filter Buttons: • Buttons labeled: All, XHR, JS, CSS, Img, Media, Other, Errors. • Clicking a button filters the waterfall rows by type. • “All” is selected by default. 2. Legend Bar (Color Key): • Horizontal legend showing the meaning of each bar color: • DNS Lookup (blue dot and line) • Initial Connection (purple) • SSL/TLS Negotiation (pink) • Waiting (TTFB) (orange) • Content Download (light green or teal) 3. Main Table with Waterfall Timeline: • Table-like layout with columns: • Status (HTTP status code like 200 or 204) • Time (timestamp of request, e.g., 12:37:25) • Path (e.g., /init, /ping, /g/collect?...) • Timeline (horizontal timeline bars with colored segments) • Each row represents one request. • Timeline starts at 0ms and extends horizontally across the screen. • Time markers (like 0ms, 674ms, etc.) are visible as reference points along the top of the timeline. • Colored segments are shown horizontally to represent each phase of the request (as per legend). • Rows must align visually so that bars are comparable in time. 4. Sticky Header and Scrollable Timeline: • Table header should stay sticky at the top. • Timeline section should be scrollable horizontally on overflow.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.