Skip to content

Commit 589a2e0

Browse files
Merge pull request #1012 from silk-framework/fix/improveCloneDoc-CMEM-7355
Clone task dialog: improved title to indicate shallow clone semantics…
2 parents 4f64f7d + 635263a commit 589a2e0

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

workspace/src/app/views/shared/modals/CloneModal.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export default function CloneModal({ item, onDiscard, onConfirmed }: ICloneOptio
142142
data-test-id={"clone-item-to-modal"}
143143
size="small"
144144
title={
145-
t("common.action.CloneSmth", {
145+
t(item.id ? "common.action.CloneSmthShallow" : "common.action.CloneSmth", {
146146
smth: t(item.id ? "common.dataTypes.task" : "common.dataTypes.project"),
147147
}) +
148148
": " +
@@ -176,6 +176,12 @@ export default function CloneModal({ item, onDiscard, onConfirmed }: ICloneOptio
176176
</Button>,
177177
]}
178178
>
179+
{item.id && (
180+
<>
181+
<Notification message={t("cloneModal.shallowCloneInfo")} />
182+
<Spacing />
183+
</>
184+
)}
179185
<FieldItem
180186
labelProps={{
181187
htmlFor: "label",
@@ -218,7 +224,7 @@ export default function CloneModal({ item, onDiscard, onConfirmed }: ICloneOptio
218224
)}
219225
{showDocumentation && (
220226
<TaskDocumentationModal
221-
documentationToShow={{ key: "", namedAnchor: "", description: t("cloneModal.info") }}
227+
documentationToShow={{ key: "", namedAnchor: "", description: t(item.id ? "cloneModal.infoTask" : "cloneModal.infoProject") }}
222228
onClose={() => setShowDocumentation(false)}
223229
size="tiny"
224230
/>

workspace/src/locales/manual/en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@
311311
"showIdentifier": "Show identifier",
312312
"AddSmth": "Add {{smth}}",
313313
"CloneSmth": "Clone {{smth}}",
314+
"CloneSmthShallow": "Clone {{smth}} (shallow clone)",
314315
"CopySmth": "Copy {{smth}} artefacts",
315316
"CreateSmth": "Create {{smth}}",
316317
"DeleteSmth": "Delete {{smth}}",
@@ -839,7 +840,9 @@
839840
}
840841
},
841842
"cloneModal": {
842-
"info": "Cloning a task means creating a copy of the task configuration in the same project. The related (used) tasks of this cloned task are not copied or changed (e.g., a cloned workflow processes the same workflow tasks as the original and not copies of them)."
843+
"infoTask": "Cloning creates a shallow copy of the task within the same project. Referenced tasks are not duplicated — e.g., a cloned workflow still operates on the original workflow tasks.",
844+
"infoProject": "Cloning a project creates a full copy of the project including all its tasks.",
845+
"shallowCloneInfo": "This creates a copy of the task configuration only. Referenced tasks or sub-task steps are not duplicated."
843846
},
844847
"widget": {
845848
"deprecatedPluginWidget": {

0 commit comments

Comments
 (0)