[MGNLUI-2927] A duplicated item should be added right after the item it duplicates Created: 20/May/14  Updated: 15/Apr/16  Resolved: 23/Dec/15

Status: Closed
Project: Magnolia UI
Component/s: user interaction
Affects Version/s: 5.2.5, 5.3
Fix Version/s: 5.3.13, 5.4.4

Type: Bug Priority: Major
Reporter: Andreas Weder Assignee: Ngoc Nguyenthanh
Resolution: Fixed Votes: 2
Labels: is-time-consuming, pain-point, usability, user-feedback, ux, working-with-items
Remaining Estimate: 1d 7h 25m
Time Spent: 1d 35m
Original Estimate: 3d

Issue Links:
Cloners
is cloned by MGNLDAM-631 A duplicated asset should be added ri... Closed
relation
is related to MGNLUI-2923 A selected item should always be visi... Closed
is related to PAGES-52 Added and Duplicated components shoul... Closed
is related to PAGES-49 Offer duplication of an existing comp... Closed
supersession
supersedes MGNLUI-3561 Fix how duplicating an item works and... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: UX pain points 2018
Sprint: Saigon 25
Story Points: 5

 Description   

If I duplicate an item, the duplicate should be added right after that item.

We currently add the duplicate at the end of the same-level list, which causes a lot of pain with long lists of items.



 Comments   
Comment by Ngoc Nguyenthanh [ 23/Dec/15 ]

Assumptions:
1. This ticket is talking about which apps use the duplicate action of ui-framework
2. Don't mention about custom app with custom order.

Almost duplicate actions use the class info.magnolia.ui.framework.action.DuplicateNodeAction. But I do a quick search to figure out the similar issues. We need to create tickets to fix if needed.

  • info.magnolia.ui.framework.action.DuplicateNodeAction
  • Duplicate asset info.magnolia.dam.app.assets.action.CreateAssetVariantAction
  • info.magnolia.security.app.dialog.action.DuplicateUserAction. The Users subapp of Security app sorted by the name. Assumption 2 violation.
  • Deprecated: info.magnolia.cms.core.DefaultHierarchyManager#copyTo used by {{info.magnolia.cms.util.HierarchyManagerWrapper#copyTo }}. Not used anywhere. Should marked as deprecated

Solution:

  • Use NodeUtil.orderAfter(duplicateNode, node.getName()); after the copy to reorder
Generated at Mon Feb 12 09:01:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.