Skip to content

✨(frontend) Duplicate a doc #1078

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

✨(frontend) Duplicate a doc #1078

wants to merge 2 commits into from

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Jun 16, 2025

Purpose

Gives the possibility to duplicate a document.

Proposal

  • ♻️(frontend) Simplify AGPL export pattern
  • ✨(frontend) Duplicate a doc

Demo

Demo.duplicate.doc.-.Docs.webm

@AntoLC AntoLC self-assigned this Jun 16, 2025
@AntoLC AntoLC added frontend feature add a new feature labels Jun 16, 2025
@AntoLC AntoLC force-pushed the feature/duplicate branch 7 times, most recently from e88db26 to b90a091 Compare June 17, 2025 10:12
@AntoLC AntoLC marked this pull request as ready for review June 17, 2025 10:15
@AntoLC AntoLC requested review from rvveber and PanchoutNathan June 17, 2025 10:18
@AntoLC AntoLC force-pushed the feature/duplicate branch 2 times, most recently from 855ad40 to 4e36ce7 Compare June 17, 2025 12:05
@AntoLC AntoLC linked an issue Jun 18, 2025 that may be closed by this pull request
@virgile-dev
Copy link
Collaborator

hey @AntoLC good job !
can you also duplicate from the document list ?
@rl-83 do you think we should have an option to duplicate without the rights ?

@AntoLC
Copy link
Collaborator Author

AntoLC commented Jun 24, 2025

can you also duplicate from the document list

Yes we can

@virgile-dev
Copy link
Collaborator

Hey @AntoLC @rl-83 talked with @sampaccoud about this.
It told me the back provides an option to duplicate with or without the rights.
The UI should should give the option to the user.

@virgile-dev
Copy link
Collaborator

virgile-dev commented Jun 25, 2025

Hey @AntoLC @rl-83 talked with @sampaccoud about this. It told me the back provides an option to duplicate with or without the rights. The UI should should give the option to the user.

By default we shouldn't copy the associated members and rights. Let's remove this from this PR. I've opened an issue to add the mentioned above

AntoLC added 2 commits June 26, 2025 11:13
We were maintaining two separate components
for AGPL and MIT license exports.
This commit consolidates the functionality into
a single component that handles both licenses,
simplifying the codebase and reducing duplication.
We can duplicate a document from the
tool options.
@AntoLC AntoLC force-pushed the feature/duplicate branch from 4e36ce7 to f252f66 Compare June 26, 2025 09:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature add a new feature frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate docs
2 participants