OpenCut-app / OpenCut-app/OpenCut

[BUG] Delete project dialog validation is broken - can delete without typing DELETE

Open
#724 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
89.8k
Forks
8.9k
PR merge metrics
No merged PRs in 30d

Description

Description

In apps/web/src/components/editor/dialogs/delete-project-dialog.tsx, the input field is not a controlled component and the delete button does not check if "DELETE" was actually typed.

Current Behavior

Users can click the delete button without typing the confirmation text.

Expected Behavior

Delete button should be disabled until the user types "DELETE" exactly. The input should be a controlled React component with proper validation.

Files

  • apps/web/src/components/editor/dialogs/delete-project-dialog.tsx:65-70

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in apps/web/src/components/editor/dialogs/delete-project-dialog.tsx, especially lines 65-70. Inspect how the input value and delete button state are handled, then verify that the button remains disabled until the exact text "DELETE" is entered and that the input is controlled.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.