YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: upgrade dialog sizing, always show credits in account settings
Louis Beaumont37659be67368
diff --git a/apps/screenpipe-app-tauri/components/settings/account-section.tsx b/apps/screenpipe-app-tauri/components/settings/account-section.tsxindex 34b510d73..9632d9a1f 100644--- a/apps/screenpipe-app-tauri/components/settings/account-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/account-section.tsx@@ -195,14 +195,14 @@ export function AccountSection() {</div>{/* Credits card — show for any logged-in user */}- {settings.user?.token && creditsBalance != null && (+ {settings.user?.token && (<Card className="p-5"><div className="flex items-center justify-between"><div className="flex items-center gap-3"><Coins className="h-5 w-5" /><div><div className="flex items-baseline gap-2">- <span className="text-2xl font-bold font-mono">{creditsBalance}</span>+ <span className="text-2xl font-bold font-mono">{creditsBalance ?? 0}</span><span className="text-sm text-muted-foreground">credits</span></div><p className="text-xs text-muted-foreground mt-0.5">diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsxindex 059c1f19e..68f5891eb 100644--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx@@ -161,14 +161,46 @@ const TOOL_ICONS: Record<string, string> = {// Grid dissolve loading indicator — 5x4 grid of cells that randomly toggle// black/white like pixels being scanned. Geometric, screen-capture themed.function GridDissolveLoader({ label = "analyzing..." }: { label?: string }) {+ const ROWS = 4;+ const COLS = 5;+ const TOTAL = ROWS * COLS;+ const [cells, setCells] = useState<boolean[]>(() =>+ Array.from({ length: TOTAL }, () => Math.random() > 0.5)+ );++ useEffect(() => {+ const id = window.setInterval(() => {+ setCells((prev) => {+ const next = [...prev];+ const count = 3 + Math.floor(Math.random() * 3);+ for (let i = 0; i < count; i++) {+ const idx = Math.floor(Math.random() * TOTAL);+ next[idx] = !next[idx];+ }+ return next;+ });+ }, 120);+ return () => window.clearInterval(id);+ }, []);+return (<div className="flex items-center gap-3">- <div className="flex items-center gap-1">- {[0, 1, 2].map((i) => (- <span+ <div+ className="grid shrink-0"+ style={{+ gridTemplateColumns: `repeat(${COLS}, 8px)`,+ gridTemplateRows: `repeat(${ROWS}, 8px)`,+ gap: "2px",+ }}+ >+ {cells.map((on, i) => (+ <divkey={i}- className="block h-1.5 w-1.5 rounded-full bg-current opacity-40 animate-pulse"- style={{ animationDelay: `${i * 200}ms`, animationDuration: "1s" }}+ className={cn(+ "border transition-colors duration-[120ms]",+ on ? "bg-foreground border-foreground" : "bg-transparent border-border"+ )}+ style={{ width: 8, height: 8 }}/>))}</div>diff --git a/apps/screenpipe-app-tauri/components/upgrade-dialog.tsx b/apps/screenpipe-app-tauri/components/upgrade-dialog.tsxindex b62cf7e75..81aa961f5 100644--- a/apps/screenpipe-app-tauri/components/upgrade-dialog.tsx+++ b/apps/screenpipe-app-tauri/components/upgrade-dialog.tsx@@ -87,10 +87,10 @@ export function UpgradeDialog({return (<Dialog open={open} onOpenChange={onOpenChange}>- <DialogContent className="max-w-[360px] p-4 gap-3 max-h-[calc(100vh-2rem)] overflow-y-auto">- <DialogHeader className="space-y-1">- <DialogTitle className="flex items-center gap-1.5 text-sm">- <Sparkles className="h-3.5 w-3.5 shrink-0" />+ <DialogContent className="max-w-[420px] p-6 gap-4 max-h-[calc(100vh-2rem)] overflow-y-auto">+ <DialogHeader className="space-y-1.5">+ <DialogTitle className="flex items-center gap-2 text-sm">+ <Sparkles className="h-4 w-4 shrink-0" /><span>{reason === "daily_limit"? "you've used all your free queries today"@@ -108,11 +108,11 @@ export function UpgradeDialog({</DialogDescription></DialogHeader>- <div className="space-y-1.5">+ <div className="space-y-2.5">{!showPacks ? (<><Button- className="w-full justify-start gap-2 h-auto py-2.5 text-xs"+ className="w-full justify-start gap-2.5 h-auto py-3 text-xs"onClick={() => {if (!isLoggedIn) {handleLogin();@@ -121,7 +121,7 @@ export function UpgradeDialog({setShowPacks(true);}}>- <Coins className="h-3.5 w-3.5 shrink-0" />+ <Coins className="h-4 w-4 shrink-0" /><div className="text-left flex-1 min-w-0"><div className="font-medium">buy credits@@ -131,7 +131,7 @@ export function UpgradeDialog({</span>)}</div>- <div className="text-[10px] opacity-80">+ <div className="text-[11px] opacity-80 mt-0.5">from $10 — use anytime after free daily quota</div></div>@@ -139,13 +139,13 @@ export function UpgradeDialog({<Buttonvariant="outline"- className="w-full justify-start gap-2 h-auto py-2 text-xs"+ className="w-full justify-start gap-2.5 h-auto py-2.5 text-xs"onClick={() => handleSubscribe(false)}>- <Zap className="h-3.5 w-3.5 shrink-0" />+ <Zap className="h-4 w-4 shrink-0" /><div className="text-left flex-1 min-w-0"><div className="font-medium">screenpipe pro — $29/mo</div>- <div className="text-[10px] text-muted-foreground">+ <div className="text-[11px] text-muted-foreground mt-0.5">200 queries/day + 500 credits/mo + all models</div></div>@@ -153,18 +153,18 @@ export function UpgradeDialog({<Buttonvariant="outline"- className="w-full justify-start gap-2 h-auto py-2 text-xs"+ className="w-full justify-start gap-2.5 h-auto py-2.5 text-xs"onClick={() => handleSubscribe(true)}>- <Star className="h-3.5 w-3.5 shrink-0" />+ <Star className="h-4 w-4 shrink-0" /><div className="text-left flex-1 min-w-0"><div className="font-medium flex items-center gap-1.5">$228/year- <Badge variant="secondary" className="text-[9px] px-1 py-0">+ <Badge variant="secondary" className="text-[10px] px-1.5 py-0">save 34%</Badge></div>- <div className="text-[10px] text-muted-foreground">+ <div className="text-[11px] text-muted-foreground mt-0.5">everything in pro, billed annually</div></div>@@ -173,13 +173,13 @@ export function UpgradeDialog({{!isLoggedIn && (<Buttonvariant="outline"- className="w-full justify-start gap-2 h-auto py-2 text-xs"+ className="w-full justify-start gap-2.5 h-auto py-2.5 text-xs"onClick={handleLogin}>- <Sparkles className="h-3.5 w-3.5 shrink-0" />+ <Sparkles className="h-4 w-4 shrink-0" /><div className="text-left flex-1 min-w-0"><div className="font-medium">sign in for more</div>- <div className="text-[10px] text-muted-foreground">+ <div className="text-[11px] text-muted-foreground mt-0.5">get 50 queries/day + access to sonnet</div></div>@@ -188,13 +188,13 @@ export function UpgradeDialog({<Buttonvariant="ghost"- className="w-full justify-start gap-2 h-auto py-2 text-xs"+ className="w-full justify-start gap-2.5 h-auto py-2.5 text-xs"onClick={() => onOpenChange(false)}>- <Clock className="h-3.5 w-3.5 shrink-0" />+ <Clock className="h-4 w-4 shrink-0" /><div className="text-left flex-1 min-w-0"><div className="font-medium">wait until tomorrow</div>- <div className="text-[10px] text-muted-foreground">+ <div className="text-[11px] text-muted-foreground mt-0.5">free queries reset at midnight UTC</div></div>@@ -209,19 +209,19 @@ export function UpgradeDialog({<Buttonkey={pack.id}variant={pack.popular ? "default" : "outline"}- className="w-full justify-between h-auto py-2 text-xs"+ className="w-full justify-between h-auto py-2.5 text-xs"disabled={buyingPack !== null}onClick={() => handleBuyCredits(pack.id)}>- <div className="flex items-center gap-1.5">+ <div className="flex items-center gap-2">{buyingPack === pack.id ? (- <Loader2 className="h-3.5 w-3.5 animate-spin" />+ <Loader2 className="h-4 w-4 animate-spin" />) : (- <Coins className="h-3.5 w-3.5" />+ <Coins className="h-4 w-4" />)}<span>{pack.label}</span>{pack.popular && (- <Badge variant="secondary" className="text-[9px] px-1 py-0">+ <Badge variant="secondary" className="text-[10px] px-1.5 py-0">popular</Badge>)}diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex 3ffb43ec3..d5334a6d0 100755--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -8719,7 +8719,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.0.436"+version = "2.0.437"dependencies = ["anyhow","async-stream",