-
-
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: remove private prompts on related brain delete #842
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
5c2af1f
to
5299854
Compare
LOGAF Level 3 - /home/runner/work/quivr/quivr/frontend/app/brains-management/[brainId]/components/BrainManagementTabs/components/SettingsTab/components/PublicPrompts/components/PublicPromptsList/hooks/usePublicPromptsList.ts
function useClickOutside(ref: RefObject<HTMLElement>, handler: (event: MouseEvent) => void) {
useEffect(() => {
const listener = (event: MouseEvent) => {
if (ref.current && !ref.current.contains(event.target as Node)) {
handler(event);
}
};
document.addEventListener('click', listener);
return () => {
document.removeEventListener('click', listener);
};
}, [ref, handler]);
}
LOGAF Level 2 - /home/runner/work/quivr/quivr/frontend/app/brains-management/[brainId]/components/BrainManagementTabs/components/SettingsTab/components/PublicPrompts/components/PublicPromptsList/PublicPromptsList.tsx
Example: onClick={() => handleOptionClick(option.id)} LOGAF Level 1 - /home/runner/work/quivr/quivr/frontend/app/brains-management/[brainId]/components/BrainManagementTabs/components/SettingsTab/components/PublicPrompts/PublicPrompts.tsx The 🔨💡📝 Powered by Code Review GPT |
@@ -1,5 +1,5 @@ | |||
import * as Accordion from "@radix-ui/react-accordion"; |
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.
Omg what is this
); | ||
}; | ||
|
||
type CustomSelectProps = { |
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.
Let's split this file. Let's have a Prompt folder with components, hooks and types in different 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.
Split the code
5299854
to
5dd47fb
Compare
This reverts commit 4c15fe2.
* feat: remove private prompts on brain deletion * ui: improve personnality picker
* feat: remove private prompts on brain deletion * ui: improve personnality picker
Description