FE-504: Add copy/paste and select all to petrinaut editor#8533
Draft
kube wants to merge 2 commits intocf/fe-512-create-filterablelistsubview-componentfrom
Draft
FE-504: Add copy/paste and select all to petrinaut editor#8533kube wants to merge 2 commits intocf/fe-512-create-filterablelistsubview-componentfrom
kube wants to merge 2 commits intocf/fe-512-create-filterablelistsubview-componentfrom
Conversation
Implement clipboard support with a versioned JSON format (petrinaut-sdcpn v1) validated by zod. Copy serializes selected items (places, transitions, token types, differential equations, parameters) with arc preservation. Paste duplicates items with new UUIDs, deduplicates names, remaps internal references, and offsets node positions. Cmd+A selects all canvas nodes, Escape clears selection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
15 tasks
Co-Authored-By: Claude Opus 4.6 <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 is the purpose of this PR?
Add clipboard support and selection shortcuts to the petrinaut editor, enabling users to copy, paste, and select all items in the SDCPN canvas.
🔗 Related links
🔍 What does this change?
petrinaut-sdcpnv1). Arcs between selected nodes are preserved within their transitions; arcs to unselected nodes are stripped.Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR:
🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
🐾 Next steps
🛡 What tests cover this?
deduplicate-name.test.ts— name suffix logic (12 tests)serialize.test.ts— serialization, arc stripping, payload parsing with zod validation (32 tests)paste.test.ts— ID generation, name deduplication, position offset, arc remapping, reference remapping, data preservation (33 tests)❓ How to test this?