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
release-app small fix on UI stripe connect
Louis Beaumont5899cff2b75a
diff --git a/screenpipe-app-tauri/components/settings/account-section.tsx b/screenpipe-app-tauri/components/settings/account-section.tsxindex fbf405ea0..f62299a6d 100644--- a/screenpipe-app-tauri/components/settings/account-section.tsx+++ b/screenpipe-app-tauri/components/settings/account-section.tsx@@ -96,6 +96,7 @@ export function AccountSection() {const unsubscribeDeepLink = await onOpenUrl(async (urls) => {console.log("received deep link urls:", urls);for (const url of urls) {+ // eg. user flowif (url.includes("api_key=")) {const apiKey = new URL(url).searchParams.get("api_key");if (apiKey) {@@ -108,6 +109,7 @@ export function AccountSection() {});}}+ // eg stripe / dev flowif (url.includes("return") || url.includes("refresh")) {console.log("stripe connect url:", url);if (url.includes("/return")) {@@ -116,7 +118,7 @@ export function AccountSection() {updateSettings({user: {...settings.user,- api_key: apiKey,+ api_key: apiKey, // should not be neededstripe_connected: true,},});@@ -489,85 +491,83 @@ export function AccountSection() {</a></div></div>- </>- )}-- <div className="p-5 border border-border/50 rounded-lg bg-background/50 hover:bg-background/80 transition-colors">- <div className="flex items-center justify-between">- <div className="flex items-center space-x-3">- <div className="w-8 h-8 flex items-center justify-center bg-[#635BFF]/10 rounded-md">- {/* eslint-disable-next-line @next/next/no-img-element */}- <img- className="rounded-md"- src="https://images.stripeassets.com/fzn2n1nzq965/HTTOloNPhisV9P4hlMPNA/cacf1bb88b9fc492dfad34378d844280/Stripe_icon_-_square.svg?q=80&w=1082"- alt=""- />- </div>- <div className="space-y-1">- <div className="text-sm font-medium">stripe connect</div>- <p className="text-xs text-muted-foreground">- receive earnings from your pipes (- <a- href="https://discord.gg/dU9EBuw7Uq"- className="underline hover:text-primary"- target="_blank"+ <div className="p-5 border border-border/50 rounded-lg bg-background/50 hover:bg-background/80 transition-colors">+ <div className="flex items-center justify-between">+ <div className="flex items-center space-x-3">+ <div className="w-8 h-8 flex items-center justify-center bg-[#635BFF]/10 rounded-md">+ {/* eslint-disable-next-line @next/next/no-img-element */}+ <img+ className="rounded-md"+ src="https://images.stripeassets.com/fzn2n1nzq965/HTTOloNPhisV9P4hlMPNA/cacf1bb88b9fc492dfad34378d844280/Stripe_icon_-_square.svg?q=80&w=1082"+ alt=""+ />+ </div>+ <div className="space-y-1">+ <div className="text-sm font-medium">stripe connect</div>+ <p className="text-xs text-muted-foreground">+ receive earnings from your pipes (+ <a+ href="https://discord.gg/dU9EBuw7Uq"+ className="underline hover:text-primary"+ target="_blank"+ >+ dm @louis030195+ </a>{" "}+ for any questions)+ </p>+ </div>+ </div>+ {settings.user?.stripe_connected ? (+ <div className="flex gap-2">+ <Button+ variant="secondary"+ size="sm"+ className="h-9"+ onClick={() => openUrl("https://dashboard.stripe.com/")}+ >+ manage+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="h-9 w-9"+ onClick={() => {+ if (settings.user) {+ const updatedUser = {+ ...settings.user,+ stripe_connected: false,+ };+ updateSettings({ user: updatedUser });+ toast({+ title: "stripe disconnected",+ description:+ "your stripe account has been disconnected",+ });+ }+ }}+ >+ <X className="h-4 w-4" />+ </Button>+ </div>+ ) : (+ <Button+ variant="secondary"+ size="sm"+ onClick={handleConnectStripe}+ className="h-9"+ disabled={isConnectingStripe || !settings.user?.id}>- dm @louis030195- </a>{" "}- for any questions)- </p>+ {isConnectingStripe ? (+ <RefreshCw className="w-4 h-4 animate-spin" />+ ) : (+ "connect"+ )}+ </Button>+ )}</div></div>- {settings.user?.api_key ? (- <div className="flex gap-2">- <Button- variant="secondary"- size="sm"- className="h-9"- onClick={() => openUrl("https://dashboard.stripe.com/")}- >- manage- </Button>- <Button- variant="ghost"- size="icon"- className="h-9 w-9"- onClick={() => {- if (settings.user) {- const updatedUser = {- ...settings.user,- api_key: undefined,- stripe_connected: false,- };- updateSettings({ user: updatedUser });- toast({- title: "stripe disconnected",- description:- "your stripe account has been disconnected",- });- }- }}- >- <X className="h-4 w-4" />- </Button>- </div>- ) : (- <Button- variant="secondary"- size="sm"- onClick={handleConnectStripe}- className="h-9"- disabled={isConnectingStripe || !settings.user?.id}- >- {isConnectingStripe ? (- <RefreshCw className="w-4 h-4 animate-spin" />- ) : (- "connect"- )}- </Button>- )}- </div>- </div>+ </>+ )}{settings.user?.api_key && (<>diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex c5b38e053..e2dd3327a 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -5273,7 +5273,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "0.27.8"+version = "0.28.0"dependencies = ["anyhow","async-stream",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 8ff259845..90a21f656 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.27.9"+version = "0.28.0"description = ""authors = ["you"]license = ""