-
Notifications
You must be signed in to change notification settings - Fork 0
File argument #125
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
File argument #125
Conversation
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 introduces and integrates file upload functionality into the application by adding a new FileUploader component, updating argument types to support file and multi‐file inputs, and implementing backend file management endpoints.
- Adds a FileUploader component in the frontend to handle file uploads and deletions.
- Updates CodeArgumentInput to render file and multi‐file inputs using the new FileUploader component.
- Introduces new backend components (FileServlet, FileManager, and related classes) to support file operations.
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
ui.frontend/src/components/UserInfo.tsx | Removed an extra blank line for style consistency. |
ui.frontend/src/components/FileUploader.tsx | New FileUploader component for file handling using React Spectrum components. |
ui.frontend/src/components/CodeArgumentInput.tsx | Updated to conditionally render FileUploader for file and multi‐file arguments. |
ui.content/.../argument/*.yml | Updated snippets and documentation to reflect file and multi‐file usage. |
core/src/main/java/dev/vml/es/acm/core/util/TypeUtils.java | Added conversion support for File and array types. |
core/src/main/java/dev/vml/es/acm/core/servlet/FileServlet.java | New servlet to manage file upload and deletion endpoints. |
core/src/main/java/dev/vml/es/acm/core/code/* | New/updated classes to support file and multi‐file arguments and management. |
Comments suppressed due to low confidence (1)
core/src/main/java/dev/vml/es/acm/core/code/FileManager.java:25
- [nitpick] The exception message in this validation could be improved for clarity, for example by adding a space after 'root directory' in the error text.
if (!StringUtils.startsWith(path, root().getAbsolutePath())) {
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.