docs icon indicating copy to clipboard operation
docs copied to clipboard

sub-pages are not duplicated

Open mideljos opened this issue 7 months ago • 7 comments

Bug Report

Problematic behavior When you duplicate a doc, the sub-doc are not duplicated.

mideljos avatar Sep 02 '25 07:09 mideljos

Yeah I thinks that's what the user expects. We could plan this as enhancement. @lunika are there technical constraints we should adress to make this possible ?

virgile-dev avatar Sep 03 '25 08:09 virgile-dev

We should probably ask the user what he wants to do ?

lunika avatar Sep 08 '25 07:09 lunika

When I duplicate a document that contains sub-pages, I want the sub-pages to be duplicated as well. At the moment, only the main page is copied — the sub-pages are not included.

mideljos avatar Sep 08 '25 07:09 mideljos

@rl-83 the consensus in the team is. If you can make us a quick design it'd be awesome. When a doc has sub-docs And a user clicks on duplicate Then a modal should a appear with 2 options : Duplicate only this doc, duplicate doc and sub-docs. This applies to sub-docs which contain subdocs.

virgile-dev avatar Sep 11 '25 08:09 virgile-dev

I would tend to say that we duplicate everything without asking. It's strange to just duplicate the parent. Notion doesn't ask for permission, nor does Google Docs, because sub-pages are considered integral parts of the document.

rl-83 avatar Sep 11 '25 16:09 rl-83

Just did a design review with @rl-83. We aligned on this spec We need so dev insights on this as we need to consider interlinks during duplication. Do you think there is a way to duplicate with the interlinks ? Also we reconsidered the modal to give the option to duplicate only the current doc. As a first enhancement we'd like to leave this out as its probably a minor use case and people can still ctrl + a / ctrl + v on a new doc. We know that you guys were worried about performance issues if the tree is big. Any thoughts about this angle ? ping @AntoLC @lunika

virgile-dev avatar Sep 18 '25 12:09 virgile-dev

This is the actual spec @virgile-dev

rl-83 avatar Oct 15 '25 09:10 rl-83