Skip to content

feat: add delete directory option to FileTree context menu (#341)#346

Merged
rjroy merged 2 commits intomainfrom
feat/341-delete-dir
Jan 17, 2026
Merged

feat: add delete directory option to FileTree context menu (#341)#346
rjroy merged 2 commits intomainfrom
feat/341-delete-dir

Conversation

@rjroy
Copy link
Copy Markdown
Owner

@rjroy rjroy commented Jan 17, 2026

Summary

  • Adds "Delete folder" option to directory context menu in file browser
  • Shows confirmation dialog with directory contents preview before deletion
  • Truncates file/directory list to 5 items for large directories

Closes #341

Test plan

  • Open file browser in Recall tab
  • Right-click a directory to see "Delete folder" option
  • Delete an empty directory - should delete immediately after confirmation
  • Delete a directory with files - confirmation shows file list
  • Delete a deeply nested directory - confirmation shows truncated list with counts
  • Verify deleted directory disappears from tree

🤖 Generated with Claude Code

Adds the ability to delete directories from the file browser. When deleting
a non-empty directory, a confirmation dialog shows the files and subdirectories
that will be removed (truncated to 5 items for large directories).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 17, 2026

Codecov Report

❌ Patch coverage is 97.98658% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
frontend/src/components/BrowseMode.tsx 83.33% 6 Missing ⚠️

📢 Thoughts on this report? Let us know!

Adds handler tests for handleGetDirectoryContents and handleDeleteDirectory
covering success paths, error handling, and edge cases.

Adds BrowseMode integration tests for directory_contents and directory_deleted
message handling including parent directory refresh behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rjroy rjroy merged commit 1e5df09 into main Jan 17, 2026
2 checks passed
@rjroy rjroy deleted the feat/341-delete-dir branch January 17, 2026 22:54
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.

Delete directory option

1 participant