Skip to content

feat: feedback:project:delete removes a project with its feedback - #48

Merged
StanBarrows merged 2 commits into
mainfrom
feat/project-delete
Oct 23, 2026
Merged

StanBarrows merged 2 commits into
mainfrom
feat/project-delete

Conversation

@StanBarrows

Copy link
Copy Markdown
Contributor

Summary

Projects could only be deactivated (feedback:project:update --deactivate), so merged projects such as docs.flows.codebar.ch stayed around as inactive leftovers. This adds:

php artisan feedback:project:delete {key} [--force] [--by="Name"] [--json]
  • Deletes the project; entries and screenshots go with it via ON DELETE CASCADE.
  • Asks for confirmation and shows the entry count; without --force a non-interactive run deletes nothing.
  • The deletion is logged as a deleted activity with --by.
  • README lists the command.

Tests

  • Feature tests: decline keeps the project, --force deletes project, entries and screenshots and leaves other projects alone, the old key returns 404, the activity log entry, JSON output.
  • Feature/Unit/Arch suite passes, Pint and PHPStan clean.

🤖 Generated with Claude Code

Sebastian BURGIN-FIX (ext) and others added 2 commits October 24, 2026 00:08
Projects could only be deactivated. The new command deletes a project,
its entries and screenshots (ON DELETE CASCADE), asks for confirmation
unless --force, and records the deletion with --by in the activity log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StanBarrows
StanBarrows merged commit 7395483 into main Oct 23, 2026
12 checks passed
@StanBarrows
StanBarrows deleted the feat/project-delete branch October 23, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant