diff --git a/dashboard/.vscode/settings.json b/dashboard/.vscode/settings.json new file mode 100644 index 000000000..00ad71fba --- /dev/null +++ b/dashboard/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "typescript.tsdk": "node_modules\\typescript\\lib" +} \ No newline at end of file diff --git a/dashboard/app/(copilot)/_parts/LogoMenu.tsx b/dashboard/app/(copilot)/_parts/LogoMenu.tsx index db37c103a..b8aad75ec 100644 --- a/dashboard/app/(copilot)/_parts/LogoMenu.tsx +++ b/dashboard/app/(copilot)/_parts/LogoMenu.tsx @@ -9,7 +9,7 @@ import { } from "@/components/ui/dropdown-menu"; import { ChevronRight } from "lucide-react"; import { Link } from "@/lib/router-events"; -import { useSearchModal } from "@/app/_store/searchModal"; +import { useSearchModal } from "@/app/search-modal-atom"; // i'm bad at naming things export default function LogoMenu() { diff --git a/dashboard/app/(copilot)/_parts/SearchBtn.tsx b/dashboard/app/(copilot)/_parts/SearchBtn.tsx index be23e7bae..1c1a2be86 100644 --- a/dashboard/app/(copilot)/_parts/SearchBtn.tsx +++ b/dashboard/app/(copilot)/_parts/SearchBtn.tsx @@ -1,8 +1,7 @@ 'use client'; -import { useSearchModal } from '@/app/_store/searchModal'; +import { useSearchModal } from '@/app/search-modal-atom'; import { Button } from '@/components/ui/button'; import { Search } from 'lucide-react' -import React from 'react' export function SearchBtn() { diff --git a/dashboard/app/(copilot)/copilot/[copilot_id]/CopilotWidget.tsx b/dashboard/app/(copilot)/copilot/[copilot_id]/CopilotWidget.tsx index 9a4a94106..9da9c1e2f 100644 --- a/dashboard/app/(copilot)/copilot/[copilot_id]/CopilotWidget.tsx +++ b/dashboard/app/(copilot)/copilot/[copilot_id]/CopilotWidget.tsx @@ -29,6 +29,9 @@ export default function Widget({ "X-Copilot": "copilot" }, }} + containerProps={{ + className: "border rounded-lg overflow-hidden", + }} > diff --git a/dashboard/app/(copilot)/copilot/[copilot_id]/page.tsx b/dashboard/app/(copilot)/copilot/[copilot_id]/page.tsx index 5d3297287..ce2479a41 100644 --- a/dashboard/app/(copilot)/copilot/[copilot_id]/page.tsx +++ b/dashboard/app/(copilot)/copilot/[copilot_id]/page.tsx @@ -13,7 +13,7 @@ import { Link } from "@/lib/router-events"; import React from "react"; import { useCopilot } from "../_context/CopilotProvider"; import dynamic from "next/dynamic"; -import { useSearchModal } from "@/app/_store/searchModal"; +import { useSearchModal } from "@/app/search-modal-atom"; const Widget = dynamic(() => import("./CopilotWidget")); @@ -38,17 +38,20 @@ function InstallationSection() { -

+

Paste this code snippet before the closing {``} tag on all pages you want the widget to appear. Read more

+

+ Note that: the widget is fluid by default and will take the full width of the container. You can change this by passing a containerProps object to the initAiCoPilot function. +