-
-
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 notifications components #1148
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]/hooks/useChat.ts The code changes are generally safe, but there is a potential risk. The developer has added a new state variable Risk Level 2 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/hooks/useQuestion.ts The code changes are generally safe, but there is a potential risk. The developer has added a try-catch block to handle errors when parsing the data. However, the error is only logged to the console and not handled in any other way. This could lead to silent failures in the application. It's recommended to handle the error in a way that either recovers from the error or informs the user about the error. Risk Level 3 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/hooks/useChatDialogue.ts The Also, the Lastly, the Here's an example of how you could implement these changes: // Pass chatInputHeight as a prop
export const useChatDialogue = (chatInputHeight: number) => {
// ...
const computeCardHeight = useCallback(() => {
// ...
const cardHeight = windowHeight - cardTop - chatInputHeight;
// ...
}, [chatInputHeight]);
// ...
useEffect(() => {
const debouncedComputeCardHeight = _debounce(computeCardHeight, 100);
window.addEventListener(\"resize\", debouncedComputeCardHeight);
return () => {
window.removeEventListener(\"resize\", debouncedComputeCardHeight);
};
}, [computeCardHeight]);
// ...
} 🔍📝 Powered by Code Review GPT |
frontend/app/chat/[chatId]/components/MessagesDialog/components/ChatMessage/ChatMessage.tsx
Outdated
Show resolved
Hide resolved
...]/components/MessagesDialog/components/ChatNotification/components/NotificationDisplayer.tsx
Outdated
Show resolved
Hide resolved
...]/components/MessagesDialog/components/ChatNotification/components/NotificationDisplayer.tsx
Outdated
Show resolved
Hide resolved
frontend/app/chat/[chatId]/components/MessagesDialog/__tests__/MessagesDialog.test.tsx
Outdated
Show resolved
Hide resolved
…dChatMessagesWithReducedNotifications
...hat/[chatId]/components/MessagesDialog/utils/getMergedChatHistoryWithReducedNotifications.ts
Outdated
Show resolved
Hide resolved
...hat/[chatId]/components/MessagesDialog/utils/getMergedChatHistoryWithReducedNotifications.ts
Outdated
Show resolved
Hide resolved
...hat/[chatId]/components/MessagesDialog/utils/getMergedChatHistoryWithReducedNotifications.ts
Outdated
Show resolved
Hide resolved
bb82d3f
to
29d6509
Compare
29d6509
to
3a97c9f
Compare
#1131
Screen.Recording.2023-09-12.at.17.01.45.mp4