Skip to content

Add "Create a copy" tree context menu action - #182

Merged
SukuWc merged 1 commit into
mainfrom
sukuwc/create-copy-context-menu
Sep 23, 2026
Merged

SukuWc merged 1 commit into
mainfrom
sukuwc/create-copy-context-menu

Conversation

@SukuWc

@SukuWc SukuWc commented Sep 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds a "Create a copy" entry to the tree item context menu, allowing configs (including element presets nested under a profile) to be duplicated directly from the tree.
  • Fixes the copy inheriting stale displayName/isEditable from nested element presets, which leaked the profile name into the duplicated config's name field (e.g. "Profile / Preset") and left the copy non-editable.

Test plan

  • Right-click a top-level config in the tree, "Create a copy", confirm it's duplicated with an editable "Copy of ..." name.
  • Right-click an element preset nested inside a profile, "Create a copy", confirm the new config's name shows "Copy of " with no "/" and is editable.
  • Confirm the existing detail-pane "Create a copy" button still works for non-editable community configs.

🤖 Generated with Claude Code

Adds a context menu entry to duplicate a config directly from the
tree. Fixes the copy carrying over stale displayName/isEditable from
nested element presets, which otherwise leaked the profile's name
(e.g. "Profile / Preset") into the duplicated config and left it
non-editable.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@SukuWc
SukuWc merged commit a382af3 into main Sep 23, 2026
2 checks passed
@SukuWc
SukuWc deleted the sukuwc/create-copy-context-menu branch September 23, 2026 09:57
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 9c76537):

https://profile-cloud-dev--pr182-sukuwc-create-copy-c-09y8u6he.web.app

(expires Fri, 23 Oct 2026 09:58:04 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2a004f867edf1347070dd9beedb18755187a6d4e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant