-
Chat
+
+
+
+
+ {!isCollapsed && (
+
+
Chat
+
+ )}
@@ -134,10 +210,16 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
{/* Configured Apps */}
{Object.values(TOOLS).some(app => toolStates[app.id] === 'configured') && (
-
+ {isCollapsed ? (
+
+
+
+ ) : (
+
+ )}
{Object.values(TOOLS)
.filter(app => toolStates[app.id] === 'configured')
@@ -148,6 +230,7 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
state={toolStates[app.id]}
token={token}
isActive={app.id === activeAppId}
+ isCollapsed={isCollapsed}
/>
))}
@@ -157,10 +240,16 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
{/* Installed Apps */}
{Object.values(TOOLS).some(app => toolStates[app.id] === 'installed') && (
-
+ {isCollapsed ? (
+
+
+
+ ) : (
+
+ )}
{Object.values(TOOLS)
.filter(app => toolStates[app.id] === 'installed')
@@ -171,6 +260,7 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
state={toolStates[app.id]}
token={token}
isActive={app.id === activeAppId}
+ isCollapsed={isCollapsed}
/>
))}
@@ -180,10 +270,16 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
{/* Available Apps */}
{Object.values(TOOLS).some(app => toolStates[app.id] === 'available') && (
-
+ {isCollapsed ? (
+
+ ) : (
+
+ )}
{Object.values(TOOLS)
.filter(app => !toolStates[app.id] || toolStates[app.id] === 'available')
@@ -194,16 +290,15 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
state={toolStates[app.id] || 'available'}
token={token}
isActive={app.id === activeAppId}
+ isCollapsed={isCollapsed}
/>
))}
)}
-
-
)}
-
+ >
);
}
diff --git a/apps/web/src/components/ui/sheet.tsx b/apps/web/src/components/ui/sheet.tsx
new file mode 100644
index 0000000..272cb72
--- /dev/null
+++ b/apps/web/src/components/ui/sheet.tsx
@@ -0,0 +1,140 @@
+"use client"
+
+import * as React from "react"
+import * as SheetPrimitive from "@radix-ui/react-dialog"
+import { cva, type VariantProps } from "class-variance-authority"
+import { X } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+
+const Sheet = SheetPrimitive.Root
+
+const SheetTrigger = SheetPrimitive.Trigger
+
+const SheetClose = SheetPrimitive.Close
+
+const SheetPortal = SheetPrimitive.Portal
+
+const SheetOverlay = React.forwardRef<
+ React.ElementRef
,
+ React.ComponentPropsWithoutRef
+>(({ className, ...props }, ref) => (
+
+))
+SheetOverlay.displayName = SheetPrimitive.Overlay.displayName
+
+const sheetVariants = cva(
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
+ {
+ variants: {
+ side: {
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
+ bottom:
+ "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
+ right:
+ "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
+ },
+ },
+ defaultVariants: {
+ side: "right",
+ },
+ }
+)
+
+interface SheetContentProps
+ extends React.ComponentPropsWithoutRef,
+ VariantProps {}
+
+const SheetContent = React.forwardRef<
+ React.ElementRef,
+ SheetContentProps
+>(({ side = "right", className, children, ...props }, ref) => (
+
+
+
+
+
+ Close
+
+ {children}
+
+
+))
+SheetContent.displayName = SheetPrimitive.Content.displayName
+
+const SheetHeader = ({
+ className,
+ ...props
+}: React.HTMLAttributes) => (
+
+)
+SheetHeader.displayName = "SheetHeader"
+
+const SheetFooter = ({
+ className,
+ ...props
+}: React.HTMLAttributes) => (
+
+)
+SheetFooter.displayName = "SheetFooter"
+
+const SheetTitle = React.forwardRef<
+ React.ElementRef,
+ React.ComponentPropsWithoutRef
+>(({ className, ...props }, ref) => (
+
+))
+SheetTitle.displayName = SheetPrimitive.Title.displayName
+
+const SheetDescription = React.forwardRef<
+ React.ElementRef,
+ React.ComponentPropsWithoutRef
+>(({ className, ...props }, ref) => (
+
+))
+SheetDescription.displayName = SheetPrimitive.Description.displayName
+
+export {
+ Sheet,
+ SheetPortal,
+ SheetOverlay,
+ SheetTrigger,
+ SheetClose,
+ SheetContent,
+ SheetHeader,
+ SheetFooter,
+ SheetTitle,
+ SheetDescription,
+}
diff --git a/tinybird/datasources/auth0.datasource b/tinybird/datasources/auth0.datasource
index 8cfad4e..0943c9d 100644
--- a/tinybird/datasources/auth0.datasource
+++ b/tinybird/datasources/auth0.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://github.com/auth0/auth0-log-schemas and https://auth0.com/docs/deploy-monitor/logs/log-event-type-codes for the type codes
diff --git a/tinybird/datasources/clerk.datasource b/tinybird/datasources/clerk.datasource
index 0fe5ea7..54d3dc9 100644
--- a/tinybird/datasources/clerk.datasource
+++ b/tinybird/datasources/clerk.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://clerk.com/docs/webhooks/overview#payload-structure
diff --git a/tinybird/datasources/github.datasource b/tinybird/datasources/github.datasource
index 5613c80..6a2a78d 100644
--- a/tinybird/datasources/github.datasource
+++ b/tinybird/datasources/github.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://docs.github.com/en/webhooks/webhook-events-and-payloads
diff --git a/tinybird/datasources/gitlab.datasource b/tinybird/datasources/gitlab.datasource
index a5da26f..edcc383 100644
--- a/tinybird/datasources/gitlab.datasource
+++ b/tinybird/datasources/gitlab.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html
diff --git a/tinybird/datasources/knock.datasource b/tinybird/datasources/knock.datasource
index 971ac67..77fe3ed 100644
--- a/tinybird/datasources/knock.datasource
+++ b/tinybird/datasources/knock.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://docs.knock.app/developer-tools/outbound-webhooks/event-types
diff --git a/tinybird/datasources/mailgun.datasource b/tinybird/datasources/mailgun.datasource
index 7bcd658..0459c57 100644
--- a/tinybird/datasources/mailgun.datasource
+++ b/tinybird/datasources/mailgun.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://mailgun-docs.redoc.ly/docs/mailgun/user-manual/events/#event-structure
diff --git a/tinybird/datasources/orb.datasource b/tinybird/datasources/orb.datasource
index 1c4e53a..ff44a38 100644
--- a/tinybird/datasources/orb.datasource
+++ b/tinybird/datasources/orb.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://docs.withorb.com/guides/integrations-and-exports/webhooks for the `details` schema definition for each resource type
diff --git a/tinybird/datasources/pagerduty.datasource b/tinybird/datasources/pagerduty.datasource
index 880243b..cbaca23 100644
--- a/tinybird/datasources/pagerduty.datasource
+++ b/tinybird/datasources/pagerduty.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://developer.pagerduty.com/docs/webhooks-overview#webhook-payload
diff --git a/tinybird/datasources/resend.datasource b/tinybird/datasources/resend.datasource
index 827a094..2e6cc10 100644
--- a/tinybird/datasources/resend.datasource
+++ b/tinybird/datasources/resend.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://resend.com/docs/dashboard/webhooks/event-types
diff --git a/tinybird/datasources/sentry.datasource b/tinybird/datasources/sentry.datasource
index 9942b5f..fa438e0 100644
--- a/tinybird/datasources/sentry.datasource
+++ b/tinybird/datasources/sentry.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://docs.sentry.io/organization/integrations/integration-platform/webhooks/ for the json schemas
diff --git a/tinybird/datasources/stripe.datasource b/tinybird/datasources/stripe.datasource
index 143e128..1428dba 100644
--- a/tinybird/datasources/stripe.datasource
+++ b/tinybird/datasources/stripe.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://docs.stripe.com/api/events/object for the event schemas
diff --git a/tinybird/datasources/vercel.datasource b/tinybird/datasources/vercel.datasource
index 8a04bb1..d94742c 100644
--- a/tinybird/datasources/vercel.datasource
+++ b/tinybird/datasources/vercel.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://vercel.com/docs/observability/webhooks-overview#events for the event types and payload schema
diff --git a/tinybird/datasources/vercel_logs.datasource b/tinybird/datasources/vercel_logs.datasource
index 2c666f2..bfcf6d5 100644
--- a/tinybird/datasources/vercel_logs.datasource
+++ b/tinybird/datasources/vercel_logs.datasource
@@ -1,4 +1,5 @@
TOKEN "append" APPEND
+TOKEN "read" READ
# Refer to https://vercel.com/docs/observability/log-drains/log-drains-reference for the logs schema