feat(web): add request parse details to workspace tabs#106
feat(web): add request parse details to workspace tabs#106andrewmelchor merged 4 commits intomainfrom
Conversation
Add support for displaying parsed request details in the request workspace UI. Includes: - New request-details utilities for parsing params, headers, and body - useRequestParseDetails hook for fetching parse data from the backend - Enhanced RequestWorkspaceTabs with tables for headers, body, and params - Unit tests for request detail parsing logic
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e59bff90f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
packages/web/src/components/request-workspace/use-request-parse-details.ts
Show resolved
Hide resolved
Greptile SummaryThis PR wires up the backend HTTP parser ( Key changes:
Issue found:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant EWE as EditorWithExecution
participant Hook as useRequestParseDetails
participant API as postParse API
participant Tabs as RequestWorkspaceTabs
EWE->>Hook: { client, path, requestIndex }
Hook->>Hook: createMemo(source) — depends on client + path only
Hook->>API: postParse({ path, includeDiagnostics, includeBodyContent })
API-->>Hook: ParseRequestDetailsResponse
Hook->>Hook: findRequestBlock(requests, requestIndex)
Hook->>Hook: toRequestHeaders(block.request.headers)
Hook->>Hook: toRequestBodySummary(block.request)
Hook-->>EWE: { headers(), bodySummary(), loading(), error() }
EWE->>Tabs: requestHeaders, requestBodySummary, loading, error
Tabs->>Tabs: toRequestParams(selectedRequest.url) — synchronous
Tabs-->>EWE: Rendered Params / Headers / Body tabs
Last reviewed commit: ae57f15 |
packages/web/src/components/request-workspace/use-request-parse-details.ts
Outdated
Show resolved
Hide resolved
packages/web/src/components/request-workspace/use-request-parse-details.ts
Show resolved
Hide resolved
Additional Comments (1)
This branch returns
Since this fallback is reached when |
Summary
This PR implements the display of parsed HTTP request details within the web workspace interface. Previously, the Params, Headers, and Body tabs in the request workspace showed only placeholder text. This change wires up the actual request parsing from the backend and displays the parsed data in structured tables.