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: show pro required gate on Google Docs connect button
Louis Beaumont9835b09d85a3
diff --git a/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsx b/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsxindex 9995a000f..d35478da0 100644--- a/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsx+++ b/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsx@@ -6,8 +6,10 @@import React, { useState, useEffect, useCallback } from "react";import { Card, CardContent } from "@/components/ui/card";import { Button } from "@/components/ui/button";-import { Loader2, RefreshCw, LogOut, ExternalLink, FileText } from "lucide-react";+import { Loader2, RefreshCw, LogOut, ExternalLink, FileText, Lock } from "lucide-react";import { commands } from "@/lib/utils/tauri";+import { openUrl } from "@tauri-apps/plugin-opener";+import { useSettings } from "@/lib/hooks/use-settings";import posthog from "posthog-js";import { localFetch } from "@/lib/api";@@ -19,6 +21,8 @@ interface DriveFile {}export function GoogleDocsCard() {+ const { settings } = useSettings();+ const isPro = !!settings.user?.cloud_subscribed;const [connected, setConnected] = useState(false);const [email, setEmail] = useState<string | null>(null);const [isConnecting, setIsConnecting] = useState(false);@@ -130,7 +134,19 @@ export function GoogleDocsCard() {Read-only access to your Google Docs. Lets AI search and read document content.</p>- {!connected ? (+ {!connected && !isPro ? (+ <div className="flex flex-col gap-1.5">+ <Button disabled size="sm" className="gap-1.5 text-xs opacity-60">+ <Lock className="h-3 w-3" />pro required+ </Button>+ <button+ onClick={() => openUrl("https://screenpi.pe/onboarding")}+ className="text-[10px] text-muted-foreground hover:text-foreground underline"+ >+ upgrade to pro to connect+ </button>+ </div>+ ) : !connected ? (<Buttonvariant="outline"size="sm"