Feature: Delete and toggle visibility on comparisons #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Users need to manage their comparisons — delete them, toggle public/private.
Implementation
API routes:
DELETE /api/comparisons/:id— soft delete (set status to 'deleted') or hard deletePATCH /api/comparisons/:id— updateisPublictoggleProfile page UI:
Files
src/app/api/comparisons/[id]/route.tssrc/app/(main)/profile/page.tsx(add card menus)Acceptance Criteria