Added Query Params table with per-value copy support in Request Details#753
Open
dominicklee wants to merge 2 commits into
Open
Added Query Params table with per-value copy support in Request Details#753dominicklee wants to merge 2 commits into
dominicklee wants to merge 2 commits into
Conversation
bd6bc54 to
cb06c5c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a structured Query Params table to the Request Details view, along with per-value copy functionality. This improvement directly aligns with the original author's desire of making the system perform similar to sites like Webhook.site
Problem
Currently, query parameters are only visible as part of the request
Path(e.g. /callback?code=...&state=...), which makes them difficult to read and work with, especially for requests containing many parameters. For complex requests, developers would appreciate a clean way to extract the desired parameter value for testing.This becomes particularly challenging in scenarios such as OAuth / OAuth2 REST API workflows (e.g. code, state, scope, error) or complex APIs that include multiple or repeated query parameters. Viewing or copying those parameters becomes tricky.
Long query strings reduce readability and increase friction when inspecting or copying individual values. The Webhook.site service typically parses and displays any query params as a table.
Solution
This PR introduces:
Structured Query Params Table
Displays query parameters as key/value pairs
Positioned in the Request Details view (before "Request body")
Supports multiple values per key (preserves order using
URLSearchParams.entries())Per-Value Copy Button
Adds a copy button next to each parameter value
Uses existing Mantine
CopyButtonpattern for consistencyProvides immediate visual feedback when copied
Improved Readability
Monospace formatting for keys and values
Handles empty values explicitly (renders as
(empty))Implementation Notes
request-details.tsx)request.urlobject andURLSearchParamsChecklist