Add info card showing affected USB devices
- Shows affected devices: pen drives, external HDs, SD cards - Clarifies that keyboards, mice, printers are not affected - Uses subtle blue info card design with device chips 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
d476761f22
commit
3aa348dc4a
1 changed files with 26 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ import {
|
|||
TooltipProvider,
|
||||
TooltipTrigger,
|
||||
} from "@/components/ui/tooltip"
|
||||
import { Usb, Shield, ShieldOff, ShieldAlert, Clock, CheckCircle2, XCircle, Loader2, History, Filter, ChevronDown, RotateCcw } from "lucide-react"
|
||||
import { Usb, Shield, ShieldOff, ShieldAlert, Clock, CheckCircle2, XCircle, Loader2, History, Filter, ChevronDown, RotateCcw, Info, HardDrive } from "lucide-react"
|
||||
import { toast } from "sonner"
|
||||
import { formatDistanceToNow, startOfDay, endOfDay, parseISO } from "date-fns"
|
||||
import { ptBR } from "date-fns/locale"
|
||||
|
|
@ -318,6 +318,31 @@ export function UsbPolicyControl({
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{/* Info sobre dispositivos afetados */}
|
||||
<div className="flex items-start gap-2.5 rounded-lg border border-blue-100 bg-blue-50/50 p-3">
|
||||
<Info className="mt-0.5 size-4 shrink-0 text-blue-500" />
|
||||
<div className="space-y-1.5">
|
||||
<p className="text-xs font-medium text-blue-700">Dispositivos afetados</p>
|
||||
<div className="flex flex-wrap gap-1.5">
|
||||
<span className="inline-flex items-center gap-1 rounded-full bg-blue-100 px-2 py-0.5 text-[10px] font-medium text-blue-700">
|
||||
<HardDrive className="size-2.5" />
|
||||
Pen drives
|
||||
</span>
|
||||
<span className="inline-flex items-center gap-1 rounded-full bg-blue-100 px-2 py-0.5 text-[10px] font-medium text-blue-700">
|
||||
<HardDrive className="size-2.5" />
|
||||
HDs externos
|
||||
</span>
|
||||
<span className="inline-flex items-center gap-1 rounded-full bg-blue-100 px-2 py-0.5 text-[10px] font-medium text-blue-700">
|
||||
<HardDrive className="size-2.5" />
|
||||
Cartões SD
|
||||
</span>
|
||||
</div>
|
||||
<p className="text-[10px] text-blue-600/80">
|
||||
Não afeta teclados, mouses, impressoras ou outros periféricos USB.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-end gap-2">
|
||||
<div className="flex-1 space-y-1.5">
|
||||
<label className="text-xs font-medium text-muted-foreground">Alterar política</label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue