feat(visualize): add --canvas flag for Cursor topology view#45
Merged
Conversation
1 task
Generate an interactive topology canvas from any export with a single CLI flag, embed policy chains from proxy.json when policies.json is empty, and ship a fixture-based demo plus docs for client use. Co-authored-by: Cursor <cursoragent@cursor.com>
0757338 to
32cd7d7
Compare
fmenesesg
added a commit
that referenced
this pull request
Jun 11, 2026
Generate an interactive topology canvas from any export with a single CLI flag, embed policy chains from proxy.json when policies.json is empty, and ship a fixture-based demo plus docs for client use. Co-authored-by: Francisco Meneses <fmeneses@fmeneses-thinkpadp16vgen1.rmtcl.csb> Co-authored-by: Cursor <cursoragent@cursor.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.
Proposed change
Add a simple client-facing workflow to generate an interactive Cursor IDE topology canvas from any 3scale export, alongside the existing Markdown report.
Clients run one command:
Then copy the file to
~/.cursor/projects/<workspace>/canvases/and open it in Cursor.Type of change
RHCL checklist
go test ./...)-DskipTestswithout justificationexport-minimalfixtureSummary
--canvasflag onthreescale-visualizewrites a self-contained.canvas.tsxwith embedded export dataproxy.json(policies_config) whenpolicies.jsonis emptydocs/examples/topology-demo.canvas.tsx(no customer data)docs/VISUALIZE.mddocuments report + canvas workflow and Cursor setupChanges
internal/visualize/canvas_data.gointernal/visualize/canvas.go.canvas.tsxinternal/visualize/canvas/topology.canvas.tsx.tmplinternal/visualize/cli/cli.go--canvasflaginternal/visualize/loader.goproxy.jsondocs/examples/topology-demo.canvas.tsxexport-minimalfixturedocs/VISUALIZE.mddocs/TEST_CASES.mdTest plan
go test ./...threescale-visualize internal/visualize/testdata/export-minimal --canvas docs/examples/topology-demo.canvas.tsxseed_alpha, no customer references