OpenCut-app / OpenCut-app/OpenCut
[BUG] Delete project dialog validation is broken - can delete without typing DELETE
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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