Skip to content

Commit

Permalink
feat: remove chat feature (#51)
Browse files Browse the repository at this point in the history
* removed chat feature

* build: fix build

---------

Co-authored-by: Gabriele Venturi <[email protected]>
  • Loading branch information
gdcsinaptik and gventuri authored Feb 17, 2025
1 parent c2d7bed commit 2068c4b
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 616 deletions.
15 changes: 0 additions & 15 deletions frontend/src/app/(app)/projects/[projectId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import AssetUploadModal from "@/components/AssetUploadModal";
import { AssetData } from "@/interfaces/assets";
import AssetViewer from "@/components/AssetViewer";
import Tooltip from "@/components/ui/Tooltip";
import ChatBox from "@/components/ChatBox";
import { BASE_STORAGE_URL } from "@/constants";
import PageLoader from "@/components/ui/PageLoader";
import toast from "react-hot-toast";
Expand Down Expand Up @@ -71,10 +70,6 @@ export default function Project() {
const [uploadedFiles, setUploadedFiles] = useState<[string, Date][]>([]);
const [openUploadModal, setOpenUploadModal] = useState<boolean>(false);
const scrollRef = useRef<HTMLDivElement>(null);
const [messages, setMessages] = useState<
Array<{ sender: string; text: string; timestamp: Date }>
>([]);
const [chatEnabled, setChatEnabled] = useState<boolean>(false);
const [processType, setProcessType] = useState<string | null>(null);
const { ref, inView } = useInView();

Expand Down Expand Up @@ -136,7 +131,6 @@ export default function Project() {
const projectTabs = [
{ id: "assets", label: "Docs" },
{ id: "processes", label: "Processes" },
{ id: "chat", label: "Chat", badge: "beta" },
];

const breadcrumbItems = [
Expand Down Expand Up @@ -441,15 +435,6 @@ export default function Project() {
{activeTab === "processes" && (
<ProcessesList projectId={project?.id} />
)}
{activeTab == "chat" && (
<ChatBox
project_id={project?.id}
messages={messages}
setMessages={setMessages}
chatEnabled={chatEnabled}
setChatEnabled={setChatEnabled}
/>
)}

<Drawer
isOpen={currentAssetPreview !== null}
Expand Down
180 changes: 0 additions & 180 deletions frontend/src/components/ChatBox.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions frontend/src/components/ChatLoader.tsx

This file was deleted.

43 changes: 0 additions & 43 deletions frontend/src/components/ChatReferenceDrawer.tsx

This file was deleted.

Loading

0 comments on commit 2068c4b

Please sign in to comment.