-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 multiple upload and crawl in parallel #1118
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Risk Level 2 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/components/ActionsBar/components/KnowledgeToFeed/KnowledgeToFeed.tsx The code is well written and follows the SOLID principles. However, there is a potential risk of the Risk Level 2 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/components/ActionsBar/components/KnowledgeToFeed/components/FileUploader/hooks/useFileUploader.ts The code seems to be well written and follows good practices. However, there is a potential issue with the if (session === null) {
redirectToLogin();
} Suggestion: if (session === null) {
throw new Error('Session is null');
} Risk Level 3 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/components/ActionsBar/hooks/useKnowledgeUploader.ts The publish({
variant: \"danger\",
text: t(\"crawlFailed\", {
message: JSON.stringify(error),
ns: \"upload\",
}),
}); Suggestion: publish({
variant: \"danger\",
text: t(\"crawlFailed\", {
message: error instanceof Error ? error.message : 'Unknown error',
ns: \"upload\",
}),
}); 🔄🔒🚨 Powered by Code Review GPT |
224dad4
to
5cc5e94
Compare
5cc5e94
to
5fab37a
Compare
5fab37a
to
ad03089
Compare
Love it 🥰 |
const response = await uploadFile({ brainId, formData }); | ||
const onDrop = (acceptedFiles: File[], fileRejections: FileRejection[]) => { | ||
if (fileRejections.length > 0) { | ||
const firstRejection = fileRejections[0]; |
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.
why first rejection ?
* feat: explicit accepted files * feat: un-synchronize upload and chat FileUploader * feat: add uploading file new ui * feat: rename +UrlDisplayer to FeedTitleDisplayer * feat: add icon per file type * feat: remove file extension on display * feat: send feed items to backend * feat: track file upload * chore: improve dx
Screen.Recording.2023-09-06.at.14.13.13.mov