-
Notifications
You must be signed in to change notification settings - Fork 760
improvement: support uploading folders in the sidebar (keep heirarchy) #5349
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR aims to enhance the file explorer sidebar by enabling folder uploads that retain the original hierarchy and by introducing a PDF viewer for file previewing.
- Introduced logic in the upload module to extract and use folder paths from file inputs.
- Added a PdfViewer component and integrated it into the file viewer.
- Updated media detection logic to include PDF files.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| frontend/src/components/editor/file-tree/upload.tsx | Added logic for folder upload and functions to process file paths. |
| frontend/src/components/editor/file-tree/renderers.tsx | Added a new PdfViewer component. |
| frontend/src/components/editor/file-tree/file-viewer.tsx | Integrated PdfViewer and updated media handling for PDFs. |
Comments suppressed due to low confidence (1)
frontend/src/components/editor/file-tree/upload.tsx:48
- Method name 'guessDeliminator' might be a typo; consider renaming it to 'guessDelimiter' to improve clarity.
directoryPath = PathBuilder.guessDeliminator(filePath).dirname(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just a couple of suggestions with helper functions for branded types.
Co-authored-by: Trevor Manz <trevor.j.manz@gmail.com>
for more information, see https://pre-commit.ci
marimo-team#5349) This allows you to upload the folder with items and will keep the same folder structure. This also adds a PDF viewer to the file explorer sidebar --------- Co-authored-by: Trevor Manz <trevor.j.manz@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
marimo-team#5349) This allows you to upload the folder with items and will keep the same folder structure. This also adds a PDF viewer to the file explorer sidebar --------- Co-authored-by: Trevor Manz <trevor.j.manz@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This allows you to upload the folder with items and will keep the same folder structure.
This also adds a PDF viewer to the file explorer sidebar