chore: import clean Agent Desk snapshot (6/7)

This commit is contained in:
2026-10-16 12:02:48 +00:00
parent d215bf6303
commit 756ae33d05
278 changed files with 53808 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
"use client"
import { CheckCircle2Icon } from "lucide-react"
import { useI18n } from "@/i18n/provider"
export default function Page() {
const t = useI18n()
return (
<main className="flex min-h-svh items-center justify-center bg-muted px-6 text-foreground">
<section className="grid max-w-sm justify-items-center gap-4 text-center">
<div className="flex size-14 items-center justify-center rounded-full bg-emerald-50 text-emerald-600 ring-1 ring-emerald-100 dark:bg-emerald-950/40 dark:text-emerald-300 dark:ring-emerald-900">
<CheckCircle2Icon className="size-7" />
</div>
<div className="grid gap-2">
<h1 className="text-lg font-semibold text-foreground">{t("supportChat.closedTitle")}</h1>
<p className="text-sm leading-6 text-muted-foreground">
{t("supportChat.closedDescription")}
</p>
</div>
</section>
</main>
)
}

View File

@@ -0,0 +1,43 @@
"use client"
import { SupportPageContent, SupportPageShell } from "@/app/(support)/support/_components/support-page-shell"
import {
isEmbeddedInHost,
SupportChatPanel,
SupportChatShell,
} from "@/components/support-chat/chat-shell"
import { useI18n } from "@/i18n/provider"
/**
* This route serves two audiences. Embedded it is the widget iframe document,
* where the host owns the size and the panel must fill the frame. Opened
* directly it is a normal support page, so it gets the portal shell and a
* bounded card instead of a full-viewport panel.
*/
export default function Page() {
return isEmbeddedInHost() ? <SupportChatShell /> : <SupportChatPage />
}
function SupportChatPage() {
const t = useI18n()
return (
<SupportPageShell section="home">
<SupportPageContent className="pb-10 pt-6">
<div className="mx-auto flex w-full max-w-4xl flex-col gap-4">
<div className="flex flex-col gap-1">
<h1 className="text-xl font-semibold tracking-tight text-foreground">
{t("supportChat.pageTitle")}
</h1>
<p className="text-sm leading-6 text-muted-foreground">
{t("supportChat.pageDescription")}
</p>
</div>
<div className="flex h-[calc(100dvh-15rem)] min-h-[28rem] flex-col overflow-hidden rounded-md border bg-card supports-not-[height:100dvh]:h-[calc(100vh-15rem)]">
<SupportChatPanel />
</div>
</div>
</SupportPageContent>
</SupportPageShell>
)
}