Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh

Commit

Ask's link to connect an AI provider closes the panel as it goes, so the Integrations page it opens is not left behind the panel.

syntaqxcommitted Parent5152e1fBrowse files
1 file+7−40/1 viewed
+7−4
1111 import { Badge } from "./ui/badge";
1212 import { Button } from "./ui/button";
1313 import { Hint } from "./ui/hint";
14−import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger } from "./ui/sheet";
14+import { Sheet, SheetClose, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger } from "./ui/sheet";
1515 import { Skeleton } from "./ui/skeleton";
1616
1717 /**
321321 <p className="mt-2">
322322 Ask answers with an AI provider your workspace connects, on its own key: g1t hosts no model for it.{" "}
323323 {setup.owner ? (
324− <Link to={`/${slug}/-/integrations/models#ask`} className="text-accent hover:underline">
325− Connect a provider and choose it for Ask
326− </Link>
324+ // Following it closes the panel, so the page it opens is not behind it.
325+ <SheetClose asChild>
326+ <Link to={`/${slug}/-/integrations/models#ask`} className="text-accent hover:underline">
327+ Connect a provider and choose it for Ask
328+ </Link>
329+ </SheetClose>
327330 ) : (
328331 <>Ask an owner of {slug} to connect one and choose it for Ask.</>
329332 )}

Comments

Sign in to comment.