Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import * as React from "react"import { SessionSecurityCenter, type Session,} from "@/components/motiq/session-security-center"const now = Date.UTC(2025, 0, 15, 12, 0)const minutes = (m: number) => now - m * 60_000const hours = (h: number) => now - h * 3_600_000const initialSessions: Session[] = [ { id: "s1", device: "MacBook Pro", browser: "Chrome 128", os: "macOS 15", location: "Lisbon, Portugal", ipSummary: "203.0.113.x", createdTime: hours(72), lastActiveTime: minutes(2), current: true, trustLabel: "Trusted", }, { id: "s2", device: "Pixel 8", browser: "Chrome Mobile", os: "Android 15", location: "Porto, Portugal", createdTime: hours(240), lastActiveTime: hours(3), authMethod: "Passkey", }, { id: "s3", device: "Office Desktop", browser: "Firefox 133", os: "Windows 11", location: "Madrid, Spain", createdTime: hours(480), lastActiveTime: hours(26), state: "idle", risk: { label: "New location", level: "attention" }, },]export default function SessionSecurityCenterDemo() { const [sessions, setSessions] = React.useState<Session[]>(initialSessions) return ( <SessionSecurityCenter sessions={sessions} now={now} onRevoke={(s) => setSessions((prev) => prev.filter((x) => x.id !== s.id)) } onRevokeAllOthers={(others) => { const ids = new Set(others.map((o) => o.id)) setSessions((prev) => prev.filter((x) => !ids.has(x.id))) }} /> )}