mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 11:16:46 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
93ee695c0e
commit
ffcfe41c6c
2 changed files with 6 additions and 26 deletions
|
|
@ -11,11 +11,7 @@ import { useAuth } from "@/hooks/use-auth";
|
||||||
import { Badge } from "@/components/ui/badge";
|
import { Badge } from "@/components/ui/badge";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Skeleton } from "@/components/ui/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
import {
|
import { TelegramStatusCard } from "@/components/mika/telegram/TelegramStatusCard";
|
||||||
Tooltip,
|
|
||||||
TooltipContent,
|
|
||||||
TooltipTrigger,
|
|
||||||
} from "@/components/ui/tooltip";
|
|
||||||
import { formatDistanceToNow } from "date-fns";
|
import { formatDistanceToNow } from "date-fns";
|
||||||
import { ptBR } from "date-fns/locale";
|
import { ptBR } from "date-fns/locale";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
@ -121,26 +117,8 @@ function AgentePage() {
|
||||||
</Badge>
|
</Badge>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Card 3: Canais conectados */}
|
{/* Card 3: Telegram */}
|
||||||
<div className="rounded-xl border border-border bg-card p-6 shadow-soft">
|
<TelegramStatusCard />
|
||||||
<div className="flex items-center gap-3 mb-3">
|
|
||||||
<MessageSquare className="h-5 w-5 text-primary" />
|
|
||||||
<h3 className="font-semibold">Canais conectados</h3>
|
|
||||||
</div>
|
|
||||||
<div className="flex items-center justify-between">
|
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<span className="text-sm font-medium">Telegram</span>
|
|
||||||
</div>
|
|
||||||
<Tooltip>
|
|
||||||
<TooltipTrigger asChild>
|
|
||||||
<Button variant="outline" size="sm" disabled>
|
|
||||||
Conectar
|
|
||||||
</Button>
|
|
||||||
</TooltipTrigger>
|
|
||||||
<TooltipContent>Disponível em breve</TooltipContent>
|
|
||||||
</Tooltip>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Card 4: Estatísticas */}
|
{/* Card 4: Estatísticas */}
|
||||||
<div className="lg:col-span-2 rounded-xl border border-border bg-card p-6 shadow-soft">
|
<div className="lg:col-span-2 rounded-xl border border-border bg-card p-6 shadow-soft">
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ const PADDLE_ENV = (import.meta.env.VITE_PADDLE_ENVIRONMENT as string) === "prod
|
||||||
import { Logo } from "@/components/mika/Logo";
|
import { Logo } from "@/components/mika/Logo";
|
||||||
import { PaymentIssueBanner } from "@/components/mika/PaymentIssueBanner";
|
import { PaymentIssueBanner } from "@/components/mika/PaymentIssueBanner";
|
||||||
import { CancellationScheduledBanner } from "@/components/mika/CancellationScheduledBanner";
|
import { CancellationScheduledBanner } from "@/components/mika/CancellationScheduledBanner";
|
||||||
|
import { TelegramConnectionBanner } from "@/components/mika/telegram/TelegramConnectionBanner";
|
||||||
import { ThemeToggle } from "@/components/mika/ThemeToggle";
|
import { ThemeToggle } from "@/components/mika/ThemeToggle";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
import {
|
||||||
|
|
@ -159,7 +160,8 @@ function PainelLayout() {
|
||||||
<CancellationScheduledBanner />
|
<CancellationScheduledBanner />
|
||||||
|
|
||||||
<main className="flex-1 px-4 sm:px-6 py-6 sm:py-8">
|
<main className="flex-1 px-4 sm:px-6 py-6 sm:py-8">
|
||||||
<div className="mx-auto max-w-6xl">
|
<div className="mx-auto max-w-6xl space-y-4">
|
||||||
|
<TelegramConnectionBanner />
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue