Skip to content

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Oct 2, 2025

Purpose

We want to be able to see the deleted documents, and to restore them if needed.

Proposal

  • ✨(frontend) add trashbin list
  • ✨(frontend) can restore from trashbin list actions
  • ✨(frontend) doc page when deleted

Demo

image

🚨 Take care

After TRASHBIN_CUTOFF_DAYS days, the doc will be definitively deleted, 30 by default.

TRASHBIN_CUTOFF_DAYS = values.Value(
30, environ_name="TRASHBIN_CUTOFF_DAYS", environ_prefix=None
)

@AntoLC AntoLC self-assigned this Oct 2, 2025
@AntoLC AntoLC added frontend feature add a new feature labels Oct 2, 2025
@AntoLC AntoLC marked this pull request as draft October 2, 2025 16:25
Copy link

github-actions bot commented Oct 2, 2025

Size Change: +968 B (+0.03%)

Total Size: 3.66 MB

Filename Size Change
apps/impress/out/_next/static/chunks/8495.js 52.9 kB +932 B (+1.79%)
apps/impress/out/_next/static/fbc84e64/_buildManifest.js 0 B -864 B (removed) 🏆
apps/impress/out/_next/static/f3acb51e/_buildManifest.js 863 B +863 B (new file) 🆕

compressed-size-action

@AntoLC AntoLC force-pushed the feature/bin-in-docs branch 3 times, most recently from 6155329 to 9bb3f51 Compare October 3, 2025 11:03
@AntoLC AntoLC changed the title feature/bin-in-docs ✨ List and restore deleted docs Oct 3, 2025
AntoLC and others added 7 commits October 7, 2025 09:38
To know when a document in the trashbin will be
permanently deleted.
The front needs to know when a document has been deleted. We expose the
deleted_at property on a document object,
The abilities for a deleted document were too open. We want to restrict
them. Only the restore, retrieve and tree is allowed. The tree method
will need some modifications to get the right informations.
The tree endpoint will now return a result only for owners. For other
users the endpoint still returns a 403. Also, the endpoint does look for
ancestors anymore, it only stay on the current document.
List the docs deleted in the trashbin list,
it is displayed in the docs grid.
We can now restore a doc from the trashbin list actions.
Whe the doc is deleted, the doc page is a bit
different, we have to adapt the doc header
to add some information and actions that
are relevant for a deleted doc.
@AntoLC AntoLC force-pushed the feature/bin-in-docs branch from 7616ea8 to a9be1c2 Compare October 7, 2025 07:41
@AntoLC AntoLC added the preview label Oct 7, 2025
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.

2 participants