From f740174257d09d813438abbc8471eb4a6beef8ad Mon Sep 17 00:00:00 2001 From: Mike Wichers Date: Sun, 22 Feb 2026 13:32:09 -0500 Subject: [PATCH] feat: Add project deletion; untrack CLAUDE.md from git - Add DELETE /project//delete route with ownership check, active-run guard, filesystem cleanup (shutil.rmtree), and StoryState cascade delete - Add delete button + confirmation modal to project page header - Add delete button + per-project confirmation modal to dashboard cards - Add CLAUDE.md to .gitignore and remove it from git tracking Co-Authored-By: Claude Sonnet 4.6 --- .gitignore | 1 + CLAUDE.md | 15 --------------- templates/dashboard.html | 27 ++++++++++++++++++++++++++- templates/project.html | 25 +++++++++++++++++++++++++ web/routes/project.py | 32 +++++++++++++++++++++++++++++++- 5 files changed, 83 insertions(+), 17 deletions(-) delete mode 100644 CLAUDE.md diff --git a/.gitignore b/.gitignore index 318d60b..0971691 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ ai_blueprint.md plans/ # Claude / Anthropic Artifacts +CLAUDE.md .claude/ claude.json diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 80044ee..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,15 +0,0 @@ -# Claude Custom Instructions - -## Project Context and Index -Before starting any coding task, you MUST always read the `ai_blueprint.md` file in the root directory. This file serves as the project index, architecture plan, and contains the actionable steps and versions designed by the Architect. Do not start modifying files until you have read and understood the context provided in `ai_blueprint.md`. - -## Managing Documentation -Whenever you complete an implementation step outlined in `ai_blueprint.md` or make notable architectural changes, you MUST update the `README.md` and/or `ai_blueprint.md` to reflect those changes and bump version numbers if appropriate. - -## Git Workflow -Every time you complete a task or make changes to files, you MUST automatically commit those changes to Git before waiting for the user's next prompt. - -### Instructions: -1. Always run `git add .` to stage your changes. -2. Run `git commit -m "Auto-commit: [brief description of what was changed]"` -3. Do not ask for permission to commit, just perform the git commit automatically. \ No newline at end of file diff --git a/templates/dashboard.html b/templates/dashboard.html index 41a3604..69876bd 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -34,10 +34,35 @@
{{ p.name }}

Created: {{ p.created_at.strftime('%Y-%m-%d') }}

- Open Project +
+ Open Project + +
+ + + {% else %}

No projects yet. Start writing!

diff --git a/templates/project.html b/templates/project.html index 359f88d..ac637b6 100644 --- a/templates/project.html +++ b/templates/project.html @@ -11,6 +11,11 @@ + {% if not locked %} + + {% endif %}
{{ bible.project_metadata.genre }} @@ -546,6 +551,26 @@
+ + +