Repository navigation
Conversation
A note under the ID field of the properties panel counts the arcs, the references and the pieces of code a rename to the draft would update. It floats, so nothing around the field moves, and shows only for a draft the entity can take.
A paste returns the ids it numbered or put in form, and the editor names them in a notice. Opening a file saved before ids were readable says how many ids were changed to fit, and warns about code left reading a former name. A notice can outlive the switch of net that an import causes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This branch was successfully deployed
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.
Summary
Before this PR, renaming an object rewrote the document and said nothing first. The values set for a run stayed under the older id: starting tokens, parameter values and the selected scenario were lost on a rename. A paste that numbered an id, and an import that made ids from names, changed them without a word.
This PR adds the feedback. While an id is typed, a note under the ID field counts the arcs, references and code the rename will rewrite. The run configuration and the open entity follow a rename, whoever made it. A paste names the ids it changed, and an import says what the migration did.
10710.mp4
Links
Changes
Rename: a note counts what it rewrites, and the run configuration follows
useRenameEntityreturnseffectsPaste and import: each says which ids it changed
Known issues
More: rename detection, Diagnostics
Test coverage
Unit and component tests: note, rename following, paste result, notices
describe-rename-effects.test.ts,draft-field-input.test.tsx,use-rename-entity.test.tsx:renamed-ids.test.ts,follow-renamed-ids.test.ts,provider.renamed-ids.react.test.tsx:resolve-navigated-ids.test.ts,editor-provider.test.tsx:paste.test.ts,commands.test.ts:id-change-messages.test.ts,use-keyboard-shortcuts.test.tsx,editor-menu.test.tsx,petrinaut.test.tsx:provider.test.tsx:How to test
Rename: note under the ID field, starting tokens after a rename
Paste and import: notice after each