-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
refactor: add new use-query endpoint of upload files #2533
Conversation
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request is invalid. Reason
Last Modified at 04 Jul 24 15:24 UTC |
…i/langflow into refactor/upload-files
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.
LGTM!
♻️ (FileInput): refactor file upload mutation to use onSuccess and onError ♻️ (chatInput): refactor file upload mutation to use onSuccess and onError ♻️ (chatView): refactor file upload mutation to use onSuccess and onError
…i/langflow into refactor/upload-files
♻️ (use-get-transactions.ts): simplify getTransactionsFn function ✨ (use-handle-file-change.tsx): add hook to handle file input changes ✨ (use-upload.tsx): add hook to handle file paste events
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.
LGTM
* refactor: add new use-query endpoint of upload files * extend type for payload callbackSuccess * [autofix.ci] apply automated fixes * bugfix: drag and drop image on chat not working * Refactored query function to use Options * Used dedicated function as queryFn * ✨ (API): export use-post-upload-file in files index ♻️ (FileInput): refactor file upload mutation to use onSuccess and onError ♻️ (chatInput): refactor file upload mutation to use onSuccess and onError ♻️ (chatView): refactor file upload mutation to use onSuccess and onError * ♻️ (use-get-download-images.ts): simplify getDownloadImagesFn function ♻️ (use-get-transactions.ts): simplify getTransactionsFn function ✨ (use-handle-file-change.tsx): add hook to handle file input changes ✨ (use-upload.tsx): add hook to handle file paste events * Added type on Request Processor --------- Co-authored-by: anovazzi1 <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Lucas Oliveira <[email protected]>
* refactor: add new use-query endpoint of upload files * extend type for payload callbackSuccess * [autofix.ci] apply automated fixes * bugfix: drag and drop image on chat not working * Refactored query function to use Options * Used dedicated function as queryFn * ✨ (API): export use-post-upload-file in files index ♻️ (FileInput): refactor file upload mutation to use onSuccess and onError ♻️ (chatInput): refactor file upload mutation to use onSuccess and onError ♻️ (chatView): refactor file upload mutation to use onSuccess and onError * ♻️ (use-get-download-images.ts): simplify getDownloadImagesFn function ♻️ (use-get-transactions.ts): simplify getTransactionsFn function ✨ (use-handle-file-change.tsx): add hook to handle file input changes ✨ (use-upload.tsx): add hook to handle file paste events * Added type on Request Processor --------- Co-authored-by: anovazzi1 <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Lucas Oliveira <[email protected]> (cherry picked from commit bfaac8b)
This pull request will change all requests of /files to useQuery package