Skip to content

Comments

✨(frontend) Move doc modal#1886

Draft
AntoLC wants to merge 5 commits intomainfrom
feat/move-doc-modal
Draft

✨(frontend) Move doc modal#1886
AntoLC wants to merge 5 commits intomainfrom
feat/move-doc-modal

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Feb 12, 2026

Purpose

It is not every time easy to move document from the grid with the drag and drop.
We added a search modal to move document.

Proposal

  • search modal to move documents
  • confirmation modal if accesses
  • access request modal when not enough rights

Demo

Enregistrement.2026-02-20.173818.mp4

@AntoLC AntoLC self-assigned this Feb 12, 2026
@AntoLC AntoLC added frontend feature add a new feature labels Feb 12, 2026
@AntoLC AntoLC force-pushed the feat/move-doc-modal branch 2 times, most recently from cd7a395 to f83adbd Compare February 19, 2026 16:48
@github-actions
Copy link

github-actions bot commented Feb 19, 2026

Size Change: +2.15 kB (+0.05%)

Total Size: 4.21 MB

Filename Size Change
apps/impress/out/_next/static/46764bf4/_buildManifest.js 0 B -893 B (removed) 🏆
apps/impress/out/_next/static/4568410f/_buildManifest.js 893 B +893 B (new file) 🆕
apps/impress/out/_next/static/chunks/8495.js 68.9 kB +2.02 kB (+3.02%)

compressed-size-action

To keep consistency with the other modals, we move
the share modal directly to the
DocsGridActions component. This way, we avoid
having to pass down the openShareModal function
from parent components and keep the logic related
to sharing a doc encapsulated within the
concern component.
We could drag and drop the items even if the
modal was opened, which could cause some unexpected
behaviors. This commit disables the DND
functionality when a dialog box is open.
@AntoLC AntoLC force-pushed the feat/move-doc-modal branch from f83adbd to c421d9f Compare February 20, 2026 11:54
@AntoLC AntoLC changed the title Feat/move doc modal ✨(frontend) Move doc modal Feb 20, 2026
We can now move a doc to another doc from a search
modal. It will make it easier to move a doc
without having to scroll through the doc grid to
find the destination doc.
We kept most of the logic implemented in the
doc grid dnd.
If the document has more than 1 direct access,we want to
display a confirmation modal before moving the document.
This is to prevent users from accidentally moving a document
that is shared with multiple people.
The accesses and invitations will be removed from the
document.
If a user tries to move a document for which they
don't have the right to move, we now display a
modal to request access to the owners of the
document.
@AntoLC AntoLC force-pushed the feat/move-doc-modal branch from c421d9f to 56d9bf5 Compare February 20, 2026 16:31
@AntoLC AntoLC linked an issue Feb 20, 2026 that may be closed by this pull request
@AntoLC AntoLC added the preview label Feb 20, 2026
@github-actions
Copy link

🚀 Preview will be available at https://1886-docs.ppr-docs.beta.numerique.gouv.fr/

You can use the existing account with these credentials:

  • username: docs
  • password: docs

You can also create a new account if you want to.

Once this Pull Request is merged, the preview will be destroyed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move an existing doc into another doc

1 participant