feat(applet): rename 'Copy Path' to 'Copy Key' in state field editor - #3
Open
arena-ai-coding-agent[bot] wants to merge 1 commit into
Open
feat(applet): rename 'Copy Path' to 'Copy Key' in state field editor#3arena-ai-coding-agent[bot] wants to merge 1 commit into
arena-ai-coding-agent[bot] wants to merge 1 commit into
Conversation
The copy action on a state field copies the selected node's key, not the full object path. Renaming the label to 'Copy Key' avoids misleading users into thinking it copies the JS path. Closes vuejs#840
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
The state field editor has a context-menu action labeled Copy Path. That action copies the selected node's key (
data.key), not the full JS object path (e.g.status.antenna.1.alignment.position.optimal). The misleading label confuses users into expecting the full path.Change
Rename the label
Copy Path→Copy Keyso it accurately reflects what is copied.Why not add a third "Copy full path" option?
The original issue also suggests potentially adding a new action to copy the full JS path. That is a larger feature change, so this PR only fixes the misleading label as a first step. The path is available via
data.path, and could be added separately.Tests
lintpasses. No behavior/material change beyond the label text.Closes vuejs#840