refactor(ux): consolidate BMAD skills, update design system, and clean up Prisma generated client

This commit is contained in:
Sepehr Ramezani
2026-04-19 19:21:27 +02:00
parent 5296c4da2c
commit 25529a24b8
2476 changed files with 127934 additions and 101962 deletions

View File

@@ -19,7 +19,8 @@ export async function GET(request: NextRequest) {
const search = searchParams.get('search')
let where: any = {
userId: session.user.id
userId: session.user.id,
trashedAt: null
}
if (!includeArchived) {
@@ -210,13 +211,14 @@ export async function DELETE(request: NextRequest) {
)
}
await prisma.note.delete({
where: { id }
await prisma.note.update({
where: { id },
data: { trashedAt: new Date() }
})
return NextResponse.json({
success: true,
message: 'Note deleted successfully'
message: 'Note moved to trash'
})
} catch (error) {
console.error('Error deleting note:', error)