Skip to content

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

release-app more changes to reduce friction for dev to go from building a pipe to monetizing it

Louis Beaumont6d7aa2be0216
diff --git a/screenpipe-app-tauri/components/settings/account-section.tsx b/screenpipe-app-tauri/components/settings/account-section.tsx
index f62299a6d..9c2f51b2a 100644
--- a/screenpipe-app-tauri/components/settings/account-section.tsx
+++ b/screenpipe-app-tauri/components/settings/account-section.tsx
@@ -109,16 +109,14 @@ export function AccountSection() {
});
}
}
- // eg stripe / dev flow
- if (url.includes("return") || url.includes("refresh")) {
+ // eg stripe / dev flow
+ if (url.includes("stripe-connect")) {
console.log("stripe connect url:", url);
if (url.includes("/return")) {
- const apiKey = new URL(url).searchParams.get("api_key")!;
if (settings.user) {
updateSettings({
user: {
...settings.user,
- api_key: apiKey, // should not be needed
stripe_connected: true,
},
});
@@ -240,11 +238,6 @@ export function AccountSection() {
}
};
- useEffect(() => {
- const updatedUser = { ...settings.user, stripe_connected: true };
- updateSettings({ user: updatedUser });
- }, []);
-
const updateProfile = async (updates: Partial<typeof settings.user>) => {
if (!settings.user?.token) return;
@@ -503,7 +496,27 @@ export function AccountSection() {
/>
</div>
<div className="space-y-1">
- <div className="text-sm font-medium">stripe connect</div>
+ <div className="text-sm font-medium flex items-center gap-2">
+ stripe connect
+ {settings.user?.stripe_connected &&
+ settings.user?.stripe_account_status && (
+ <div
+ className={cn(
+ "px-2 py-0.5 text-xs rounded-full",
+ settings.user.stripe_account_status === "pending"
+ ? "bg-yellow-500/10 text-yellow-500"
+ : "bg-green-500/10 text-green-500"
+ )}
+ title={
+ settings.user.stripe_account_status === "pending"
+ ? "go to stripe and complete your account verification (bank account, id verification...)"
+ : "your stripe account is fully verified and you can start receiving earnings from your pipes"
+ }
+ >
+ {settings.user.stripe_account_status}
+ </div>
+ )}
+ </div>
<p className="text-xs text-muted-foreground">
receive earnings from your pipes (
<a
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index a7b725fb6..b8b96270b 100644
--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -47,6 +47,7 @@ export type User = {
amount: number;
};
stripe_connected?: boolean;
+ stripe_account_status?: "active" | "pending";
github_username?: string;
bio?: string;
website?: string;
@@ -369,9 +370,7 @@ export function useSettings() {
const data = await response.json();
console.log("data", data);
const userData = {
- api_key: settings.user.api_key,
...data.user,
- stripe_connected: data.user.stripe_connected ?? false,
} as User;
setSettings({
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 90a21f656..f61a33a9a 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.28.0"
+version = "0.28.1"
description = ""
authors = ["you"]
license = ""