sub-pages are not duplicated
Bug Report
Problematic behavior When you duplicate a doc, the sub-doc are not duplicated.
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 ?
We should probably ask the user what he wants to do ?
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.
@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.
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.
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
This is the actual spec @virgile-dev