feat(editor): delete a project from the Open project dialog - #367
feat(editor): delete a project from the Open project dialog#367EtienneLescot wants to merge 1 commit into
Conversation
The whole delete path existed — DocumentService.deleteProject, the service, the bridge route, the client action — with nothing in the UI calling it, so the only way to get rid of a project was to find its .openscreen file in userData and delete it by hand. Every recording mints a project, so they pile up. Each row of the dialog gets a trash button that arms an inline confirm on that row (deleting is not undoable), and the confirm says what it does not delete: the media stays, a recording can back several projects. Deleting the project that is open also clears the editor, which would otherwise hold a document whose file is gone and recreate it on the next save.
|
Warning Review limit reached
Next review available in: 22 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (16)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
There was no way to delete a project from the app. Everything under the UI already existed and was wired end to end —
DocumentService.deleteProject,AiEditionService.deleteProject, thedocument.deletebridge route,nativeBridgeClient.aiEdition.delete— and nothing insrc/called it, so the only way to get rid of a project was to find its.openscreenfile underuserData/projects/and delete it by hand. Since every recording mints a project, they pile up fast.Delete this project? Your recordings are kept.(media is shared; one recording can back several projects).common.actions.delete/cancel, and the styling reusesstyles.iconBtn/styles.dangerBtn.Related issue
Fixes #365
Type of change
Release impact
Desktop impact
Screenshots / video
No screenshot — the browser pane could not composite frames in this environment. The dialog was driven live instead (dev server + browser shim), asserting the DOM at each step:
Testing
npx vitest --run src/components/ai-edition— 20 files, 113 tests, green, including the four new cases inOpenProjectModal.test.tsx(confirm required, deletes the armed row, cancel restores it, the row still opens).npm run i18n:checkpasses;npx tsc --noEmit,npx tsc -p tsconfig.test.json --noEmitand Biome on the touched files are clean.