AOSSIE-Org / AOSSIE-Org/PictoPy

Feat: Image Deletion, Undo System & Trash(Recently deleted) and restore

Đang mở
#795 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
needs-triage
Ngôn ngữ chính
Python
Star
283
Fork
679
Merge trung bình
7 ngày 2 giờ
Pull request đã merge (30 ngày)
3

Mô tả

### Describe the feature

Image

## Overview
PictoPy currently lacks a direct image-level deletion workflow and provides no
undo mechanism for destructive actions. This feature proposes a safe image
deletion system with undo support and lightweight action history tracking.

---

## Problem
Currently:
- No direct image delete option exists in the gallery UI
- Image removal is mostly handled indirectly via albums
- Database-level deletion performs irreversible hard deletes
- No undo or action history is available

This makes image management inconsistent and risky, especially for accidental
or bulk actions.

---

## Proposed Solution

### 🗑️ Image Deletion
- Introduce a **gallery-level image delete option**
- Support **single and bulk image deletion**
- Replace hard deletes with **soft delete** (`deleted_at` / `is_deleted`)
- Ensure deleted images are removed from albums and related metadata

### ↩️ Undo Support
- Allow users to undo recent destructive actions
- Initial scope:
- Image deletion
- Image removal from albums
- Undo can be limited to recent actions (time-based or count-based)

### 📚 Recently Deleted
All the deleted image store in trash and from here user can restore it or delete permanently .
else the image will deleted after 30 days automatically.

---

## Suggested API Design (Indicative)

DELETE /images/{image_id}
POST /images/bulk-delete
POST /images/{image_id}/restore
POST /actions/undo
GET /actions/history

### Willingness to Work
@rahulharpal1603 sir I would like to work on implementing this feature.

### Add ScreenShots

There is not undo support and deletion feature in the frontend or backend .

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

### Checklist before Submitting.

- [ ] Have you updated docs for it?.
- [ ] Have you added unit tests?.
- [ ] Have you made sure unit tests pass?
- [ ] Have you made sure code formatting is correct?
- [ ] Does it contain any style related issues?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.