Use shadcn Alert for the "no devices connected" hints

Replaces the ad-hoc bp-glass Card used for the "No devices connected
yet." placeholder in ButtplugConsole and ReplayPlayer with the shadcn
Alert component (newly installed).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-01 19:02:32 +02:00
co-authored by Claude Sonnet 5
parent 27d0db0f72
commit ea320548b6
3 changed files with 90 additions and 9 deletions
+7 -4
View File
@@ -22,6 +22,8 @@ import { DeviceCard } from "./DeviceCard";
import { RecordControls } from "./RecordControls";
import { NameSessionDialog } from "./NameSessionDialog";
import { Card, CardContent } from "@/components/ui/card";
import { Alert, AlertDescription } from "@/components/ui/alert";
import { Info } from "lucide-react";
interface ActiveSession {
id: number;
@@ -240,12 +242,13 @@ export function ButtplugConsole() {
{storeError && <p className="text-sm text-destructive">{storeError}</p>}
{Object.keys(devices).length === 0 ? (
<Card className="bp-glass">
<CardContent className="text-sm text-muted-foreground">
<Alert className="bp-glass">
<Info />
<AlertDescription>
No devices connected yet. Scan to discover nearby toys, then select one from your browser&apos;s
pairing prompt.
</CardContent>
</Card>
</AlertDescription>
</Alert>
) : (
<div className="grid gap-4 sm:grid-cols-2">
{Object.values(devices).map((device) => (