feat(playground): variable hover card with highlight + inline edit (BRU-4000) - #10
Closed
sundram-bruno wants to merge 1 commit into
Closed
feat(playground): variable hover card with highlight + inline edit (BRU-4000)#10sundram-bruno wants to merge 1 commit into
sundram-bruno wants to merge 1 commit into
Conversation
…RU-4000)
Bring the desktop variable experience to the playground request editors:
- Green/red `{{var}}` highlighting against the active environment across the
request body (Monaco), URL, and params/headers/form-body cells.
- Hover card at desktop parity: name, scope badge, resolved value, copy,
secret masking; reachable in the Monaco body via a content widget that
reuses the shared VariableInfoCard.
- Inline value editing (Enter save, Shift-Enter newline, blur save, Esc
cancel) for environment/collection/folder/request scopes; read-only scopes
(process.env, oauth2, $secrets, dynamic) and typed/object values stay
read-only. Edits write to the in-memory playground store so the card,
highlight, and request execution update together; reset reverts.
Monaco body: new variableDecorations (highlight) and variableHoverWidget
(content-widget hover intent). URL bar switched to HighlightedInput.
Out of scope: WebSocket/gRPC/GraphQL requests are unsupported in the
playground (rendered read-only via UnsupportedRequest), so they keep the
docs-style read-only variable preview.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What
Brings the desktop variable experience to the playground request editors (BRU-4000), building on the read-only docs card from BRU-3678.
{{var}}highlighting against the active environment across the request body (Monaco), URL, and params/headers/form-body cells.VariableInfoCard.environment/collection/folder/requestscopes (mirrors desktopupdateVariableInScope). Read-only scopes (process.env,oauth2,$secrets, dynamic) and typed/object values stay read-only.How
variableDecorations.ts(highlight viacreateDecorationsCollection) +variableHoverWidget.ts(content-widget hover intent), wired behind a newvariableAwareprop onCodeEditor. Edits operate on the raw value (preserving nested{{refs}}).<input>toHighlightedInput.useVariableResolver.updateVariable) → newsetPlaygroundVariablereducer.Acceptance criteria
Out of scope
WebSocket / gRPC / GraphQL requests are unsupported in the playground (rendered read-only via
UnsupportedRequest), so they keep the docs-style read-only variable preview (uniform highlight, no edit). Extending highlight/edit there is a separate effort, best done once those request types are executable in the playground.Testing
setPlaygroundVariablereducer (env/collection/request scopes, secret skip) andVariableInfoCardeditable gating.🤖 Generated with Claude Code