Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability to edit/add/delete files in the file tree #1440

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

xKevIsDev
Copy link
Collaborator

@xKevIsDev xKevIsDev commented Mar 4, 2025

File/Folder Operations:

  • Rename functionality with inline editing
  • Create new files and folders with proper directory structure
  • Delete files and folders with confirmation dialog
  • All operations update the file tree state and handle errors appropriately

Drag and Drop Image Support:

  • Accepts image files via drag and drop

  • Converts images to base64 format for storage

  • Shows success/error notifications for uploads

  • Maintains proper file structure when dropping images

UI Improvements:

  • Inline rename input replaces the file/folder name during editing
  • Context menu for all file operations
  • Visual feedback during drag and drop
  • Toast notifications for operation status
Screenshot 2025-03-04 at 09 55 17

- Drag and drop images directly in the file tree. Image will convert to base64 format
@thecodacus
Copy link
Collaborator

we also need update the files from filestore for system to detect the change and add it to the user metadata for persistence.

@xKevIsDev
Copy link
Collaborator Author

we also need update the files from filestore for system to detect the change and add it to the user metadata for persistence.

Yep, I seem to have overlooked that part will update asap.

removed rename files until a better solution is found and made file/folder create/delete be persistent across reloads
@xKevIsDev
Copy link
Collaborator Author

@thecodacus for now i have removed rename until we find a cleaner solution. Also file/folder creations/deletions will persist now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

2 participants