Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: ai modal disclamier added (#3970)

Anmol Singh Bhatia0bc4b6cece3c
diff --git a/web/components/core/modals/gpt-assistant-popover.tsx b/web/components/core/modals/gpt-assistant-popover.tsx
index 590015e122..deffd883af 100644
--- a/web/components/core/modals/gpt-assistant-popover.tsx
+++ b/web/components/core/modals/gpt-assistant-popover.tsx
@@ -7,6 +7,8 @@ import useToast from "hooks/use-toast";
import { usePopper } from "react-popper";
// ui
import { Button, Input } from "@plane/ui";
+// icons
+import { AlertCircle } from "lucide-react";
// components
import { RichReadOnlyEditorWithRef } from "@plane/rich-text-editor";
import { Popover, Transition } from "@headlessui/react";
@@ -250,8 +252,17 @@ export const GptAssistantPopover: React.FC<Props> = (props) => {
/>
)}
/>
- <div className={`flex gap-2 ${response === "" ? "justify-end" : "justify-between"}`}>
- {responseActionButton}
+ <div className="flex gap-2 justify-between">
+ {responseActionButton ? (
+ <>{responseActionButton}</>
+ ) : (
+ <>
+ <div className="flex items-center justify-center gap-2 text-sm text-custom-primary">
+ <AlertCircle className="h-4 w-4" />
+ <p>By using this feature, you consent to sharing the message with a 3rd party service. </p>
+ </div>
+ </>
+ )}
<div className="flex items-center gap-2">
<Button variant="neutral-primary" size="sm" onClick={onClose}>
Close