Repository navigation
Add Try it, Samples and Connections to the local viewer - #14
Merged
Merged
Conversation
Manasa-uigraph
approved these changes
Oct 22, 2026
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 and why
This PR adds the Try it, Samples and Connections tabs to the endpoint panel in the local viewer. The tabs work the same as in the cloud app. Linear: UIG-249 (testing: UIG-250).
Before and after
Before: The endpoint panel showed only the spec. There was no way to send a request, keep samples, or see which maps use an endpoint.
After: REST endpoints have Spec, Try it, Samples and Connections. GraphQL and gRPC endpoints have Spec, Samples and Connections, the same as cloud.
/Users/sayad/Desktop/uigraph/starter/.playwright/uig-249/proof.mp4
Risk
The change touches the API & Behavior panel and how endpoints load. Endpoints now get request and response examples from the spec, so the Spec tab can show examples that it did not show before. Saved samples go to
~/.uigraph/api-samples/<endpoint id>. A revert removes the tabs but does not delete these files.Product guarantees: Try it sends requests to the user's own APIs when the user clicks Send. This is an outbound call, and it can change data on that API. That touches guarantee 1 ("does not execute") and guarantee 4 ("no outbound calls without discussion") in CONTRIBUTING.md. The ticket asks for this behavior, but a maintainer must agree to it.
Evidence
https://httpbin.org/bearerreturned 200 with the token from Authorize.What changed
New features
~/.uigraph/api-samples/<endpoint id>. When the spec changes, the samples reset from the spec, as a new upload does in cloud.Not included: the Meta tab, Try it for GraphQL and gRPC (cloud does not have it), and test pack links in Connections (local test packs never link).
How to test
serversURL to.uigraph.yamland open the viewer.Checklist
pnpm typecheck && pnpm lint && pnpm buildpassproof.mp4