webiny / webiny-js

Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
https://www.webiny.com
Other
7.29k stars 601 forks source link

feat(app-trash-bin): add trash bin to app-headless-cms #4059

Closed leopuleo closed 4 months ago

leopuleo commented 5 months ago

Changes

The Headless CMS now has basic trash bin functionalities. When an editor deletes an entry from the admin app, the entry will be moved to the trash bin instead of permanently deleted.

These are the available functionalities:

Permissions

Users with full access to the content model (rwd) can interact with the trash bin.

Under the hood

Three new packages have been introduced:

Code organisation

While working on this feature, we are experimenting with the First Test Architecture and Clean Architecture.

Opening the app-trash-bin package you will see 2 folders:

Domain

The folder contains relevant information at the domain level:

Presentation

The folder contains components useful to present data. Together with the components, we find:

How Has This Been Tested?

Jest - Manually

github-actions[bot] commented 5 months ago

Cypress E2E tests have been initiated (for more information, click here). :sparkles:

github-actions[bot] commented 5 months ago

Cypress E2E tests have been initiated (for more information, click here). :sparkles: