Skip to content

feat: add proxy request support to http-dump UI#277

Merged
butschster merged 2 commits intomasterfrom
feat/http-dump-proxy-support
Apr 4, 2026
Merged

feat: add proxy request support to http-dump UI#277
butschster merged 2 commits intomasterfrom
feat/http-dump-proxy-support

Conversation

@butschster
Copy link
Copy Markdown
Member

What

Extends the http-dump entity to display proxied HTTP requests with full request/response data, syntax-highlighted response bodies, and visual indicators for proxy origin.

Why

The server now supports an HTTP proxy module that captures traffic as http-dump events with additional response, proxy, and duration_ms fields. The frontend needs to display this data.

How

  • Types: added HttpDumpResponse, proxy, duration_ms, error, response fields
  • Normalizer: adds colored labels (proxy badge, status code, duration), builds full URL for proxy
  • Preview card: shows full URL, status code badge, proxy tag, duration
  • Detail page: new Response Headers table, Response Body with syntax highlighting (JSON/HTML/XML/CSS/JS), HTML iframe preview, binary content indicator, proxy error display
  • Mocks: 6 new JSON files covering JSON, HTML, XML, binary, 4xx, connection error scenarios
  • Stories: PreviewCard (5 variants), HttpDumpPage (8 variants)

Testing

  • vue-tsc --noEmit — no type errors
  • eslint — clean
  • Storybook: open Entities/HttpDump/PreviewCard and Entities/HttpDump/HttpDumpPage to see all variants

Display proxied HTTP requests with full URL, response body with
syntax highlighting (JSON/HTML/XML/CSS/JS), status code badges,
duration, proxy label, and HTML preview via sandboxed iframe.
Add 6 mock files and 8+ Storybook stories covering all scenarios.
@butschster butschster added the enhancement New feature or request label Apr 4, 2026
@butschster butschster self-assigned this Apr 4, 2026
@butschster butschster moved this to In Progress in Buggregator Apr 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 4, 2026

📸 Storybook Screenshots

Screenshots for 41 changed components in this PR.

Entities/HttpDump/HttpBodyView

Json Body

Entities/HttpDump/HttpBodyView / Json Body

Empty Json Object

Entities/HttpDump/HttpBodyView / Empty Json Object

Html Body

Entities/HttpDump/HttpBodyView / Html Body

Xml Body

Entities/HttpDump/HttpBodyView / Xml Body

Plain Text Body

Entities/HttpDump/HttpBodyView / Plain Text Body

Large Json Body

Entities/HttpDump/HttpBodyView / Large Json Body

Entities/HttpDump/HttpDumpHeader

Regular Dump

Entities/HttpDump/HttpDumpHeader / Regular Dump

Proxy Success

Entities/HttpDump/HttpDumpHeader / Proxy Success

Proxy 4 Xx

Entities/HttpDump/HttpDumpHeader / Proxy 4 Xx

Proxy Connection Error

Entities/HttpDump/HttpDumpHeader / Proxy Connection Error

Entities/HttpDump/HttpDumpPage

Default

Entities/HttpDump/HttpDumpPage / Default

With Pdf

Entities/HttpDump/HttpDumpPage / With Pdf

Proxy Json Response

Entities/HttpDump/HttpDumpPage / Proxy Json Response

Proxy Html Response

Entities/HttpDump/HttpDumpPage / Proxy Html Response

Proxy Xml Response

Entities/HttpDump/HttpDumpPage / Proxy Xml Response

Proxy Binary Response

Entities/HttpDump/HttpDumpPage / Proxy Binary Response

Proxy 4 Xx Error

Entities/HttpDump/HttpDumpPage / Proxy 4 Xx Error

Proxy Connection Error

Entities/HttpDump/HttpDumpPage / Proxy Connection Error

Entities/HttpDump/HttpRequestPanel

With Query And Headers

Entities/HttpDump/HttpRequestPanel / With Query And Headers

Proxy Post With Json Body

Entities/HttpDump/HttpRequestPanel / Proxy Post With Json Body

Proxy Form Body

Entities/HttpDump/HttpRequestPanel / Proxy Form Body

Entities/HttpDump/HttpResponsePanel

Json Response

Entities/HttpDump/HttpResponsePanel / Json Response

Html Response

Entities/HttpDump/HttpResponsePanel / Html Response

Xml Response

Entities/HttpDump/HttpResponsePanel / Xml Response

Binary Response

Entities/HttpDump/HttpResponsePanel / Binary Response

Error Response

Entities/HttpDump/HttpResponsePanel / Error Response

Entities/HttpDump/PreviewCard

Default

Entities/HttpDump/PreviewCard / Default

Proxy Json

Entities/HttpDump/PreviewCard / Proxy Json

Proxy Html

Entities/HttpDump/PreviewCard / Proxy Html

Proxy Error

Entities/HttpDump/PreviewCard / Proxy Error

Proxy 4 Xx

Entities/HttpDump/PreviewCard / Proxy 4 Xx

Shared/CodeSnippet

Default

Shared/CodeSnippet / Default

Object

Shared/CodeSnippet / Object

HTML String

Shared/CodeSnippet / HTML String

PHP String

Shared/CodeSnippet / PHP String

Shared/JsonTreeView

Default

Shared/JsonTreeView / Default

Simple Array

Shared/JsonTreeView / Simple Array

Primitive String

Shared/JsonTreeView / Primitive String

Empty Object

Shared/JsonTreeView / Empty Object

Deeply Nested

Shared/JsonTreeView / Deeply Nested

Widgets/LayoutBase

Default

Widgets/LayoutBase / Default


Auto-generated from Storybook stories of changed .vue files

…omposable extraction

- Extract shared computed logic into useHttpDumpEvent composable (28 properties)
- Decompose monolithic http-dump-page into tab layout: Response / Request / Raw
- Add sticky HttpDumpHeader with method, status code text, copy cURL/URL actions
- Add HttpRequestPanel with new Request Body section (form-urlencoded as table)
- Add HttpResponsePanel with status bar, response body, response headers
- Add HttpBodyView with Raw/Pretty/Tree toggle for JSON, Preview/Source for HTML
- Add JsonTreeView shared component (recursive, collapsible, click-to-copy path)
- Add click-to-copy on TableBaseRow with hover-reveal icon
- Add replayHttpDump API function to use-events-requests
- Preview card: status left-border color, URI truncation with tooltip
- Fix background not extending with content (layout-base overflow-y, min-h-full)
- Fix code-snippet missing border
- Add Vite polling for Docker HMR (CHOKIDAR_USEPOLLING)
- Add EventDetailSection #actions slot for inline controls
- Add Storybook stories for all new components (28+ variants)
@butschster butschster merged commit 9e82f6e into master Apr 4, 2026
1 of 2 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Buggregator Apr 4, 2026
@butschster butschster deleted the feat/http-dump-proxy-support branch April 4, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request module:http-dump

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant