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

Replace access-check screens with Fragments to focus startup loader (#7754)

Louis Beaumontb5d67ca7d7ad
diff --git a/apps/screenpipe-app-tauri/components/app-entitlement-gate.test.tsx b/apps/screenpipe-app-tauri/components/app-entitlement-gate.test.tsx
index a2e99b525..ca6626eb5 100644
--- a/apps/screenpipe-app-tauri/components/app-entitlement-gate.test.tsx
+++ b/apps/screenpipe-app-tauri/components/app-entitlement-gate.test.tsx
@@ -166,6 +166,33 @@ describe("AppEntitlementGate", () => {
vi.unstubAllEnvs();
});
+ it("shows the branded loader until local settings are ready", () => {
+ mocks.state.isSettingsLoaded = false;
+
+ const { rerender } = render(
+ <AppEntitlementGate authenticationStatus="not_required">
+ {protectedApp}
+ </AppEntitlementGate>,
+ );
+
+ expect(screen.getByRole("status")).toHaveTextContent("Starting Screenpipe…");
+ expect(screen.getByRole("status")).toHaveTextContent(
+ "Turn what people know into what computers can scale",
+ );
+ expect(screen.queryByTestId("protected-app")).not.toBeInTheDocument();
+ expect(screen.queryByText(/checking local settings/i)).not.toBeInTheDocument();
+
+ mocks.state.isSettingsLoaded = true;
+ rerender(
+ <AppEntitlementGate authenticationStatus="not_required">
+ {protectedApp}
+ </AppEntitlementGate>,
+ );
+
+ expect(screen.queryByRole("status")).not.toBeInTheDocument();
+ expect(screen.getByTestId("protected-app")).toBeInTheDocument();
+ });
+
it("starts the application without an account when authentication is not required", () => {
render(
<AppEntitlementGate authenticationStatus="not_required">
@@ -298,7 +325,11 @@ describe("AppEntitlementGate", () => {
<AppEntitlementGate>{protectedApp}</AppEntitlementGate>,
);
- expect(screen.getByText(/checking access/i)).toBeInTheDocument();
+ expect(screen.getByRole("status")).toHaveTextContent("Starting Screenpipe…");
+ expect(screen.getByRole("status")).toHaveTextContent(
+ "Turn what people know into what computers can scale",
+ );
+ expect(screen.queryByText(/checking access/i)).not.toBeInTheDocument();
await new Promise((resolve) => setTimeout(resolve, 0));
expect(mocks.stopScreenpipe).not.toHaveBeenCalled();
@@ -346,7 +377,11 @@ describe("AppEntitlementGate", () => {
<AppEntitlementGate>{protectedApp}</AppEntitlementGate>,
);
- expect(screen.getByText(/checking enterprise access/i)).toBeInTheDocument();
+ expect(screen.getByRole("status")).toHaveTextContent("Starting Screenpipe…");
+ expect(screen.getByRole("status")).toHaveTextContent(
+ "Turn what people know into what computers can scale",
+ );
+ expect(screen.queryByText(/checking enterprise access/i)).not.toBeInTheDocument();
await new Promise((resolve) => setTimeout(resolve, 0));
expect(mocks.stopScreenpipe).not.toHaveBeenCalled();
expect(mocks.capture).not.toHaveBeenCalledWith(
diff --git a/apps/screenpipe-app-tauri/components/app-entitlement-gate.tsx b/apps/screenpipe-app-tauri/components/app-entitlement-gate.tsx
index e93112486..7ba73f6db 100644
--- a/apps/screenpipe-app-tauri/components/app-entitlement-gate.tsx
+++ b/apps/screenpipe-app-tauri/components/app-entitlement-gate.tsx
@@ -37,6 +37,7 @@ import { useManagedPolicy } from "@/lib/hooks/use-managed-policy";
import { isPrimaryWindow } from "@/lib/utils/is-primary-window";
import { commands } from "@/lib/utils/tauri";
import { EnterpriseLicensePrompt } from "@/components/enterprise-license-prompt";
+import { StartupLoader } from "@/components/startup-loader";
import { useGT } from "gt-react";
@@ -691,12 +692,10 @@ export function AppEntitlementGate({
if (!isSettingsLoaded) {
return (
- <EntitlementShell
- title={ui("Loading")}
- description={ui("Checking local settings before starting screenpipe.")}
- >
- <div className="h-10 w-full animate-pulse bg-muted" />
- </EntitlementShell>
+ <StartupLoader
+ label={ui("Starting Screenpipe…")}
+ vision={ui("Turn what people know into what computers can scale")}
+ />
);
}
@@ -726,23 +725,19 @@ export function AppEntitlementGate({
);
}
return (
- <EntitlementShell
- title={ui("Checking access")}
- description={ui("Checking which screenpipe build is installed on this device.")}
- >
- <div className="h-10 w-full animate-pulse bg-muted" />
- </EntitlementShell>
+ <StartupLoader
+ label={ui("Starting Screenpipe…")}
+ vision={ui("Turn what people know into what computers can scale")}
+ />
);
}
if (isManagedDeployment && authenticationState === "checking") {
return (
- <EntitlementShell
- title={ui("Checking enterprise access")}
- description={ui("Checking this device for an existing account or enterprise key.")}
- >
- <div className="h-10 w-full animate-pulse bg-muted" />
- </EntitlementShell>
+ <StartupLoader
+ label={ui("Starting Screenpipe…")}
+ vision={ui("Turn what people know into what computers can scale")}
+ />
);
}
diff --git a/apps/screenpipe-app-tauri/components/startup-loader.module.css b/apps/screenpipe-app-tauri/components/startup-loader.module.css
new file mode 100644
index 000000000..3d756081e
--- /dev/null
+++ b/apps/screenpipe-app-tauri/components/startup-loader.module.css
@@ -0,0 +1,68 @@
+/* screenpipe — AI that knows everything you've seen, said, or heard */
+/* https://screenpipe.com */
+
+.mark {
+ position: relative;
+ width: 232px;
+ height: 210px;
+}
+
+.mark img {
+ position: absolute;
+ left: 86px;
+ top: 75px;
+ width: 60px;
+ height: 60px;
+ animation: focus 4s ease-in-out infinite;
+}
+
+.fragment {
+ position: absolute;
+ left: 113px;
+ top: 102px;
+ width: 5px;
+ height: 5px;
+ background: currentColor;
+ opacity: 0;
+ animation: gather 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
+}
+
+.vision {
+ width: 100%;
+ max-width: 390px;
+ margin-top: 20px;
+ font-family: Georgia, Baskerville, serif;
+ font-size: 21px;
+ font-weight: 400;
+ line-height: 1.4;
+ text-wrap: balance;
+ animation: reveal 0.9s ease-out both;
+}
+
+@keyframes gather {
+ 0% { transform: translate(var(--x), var(--y)) rotate(45deg); opacity: 0; }
+ 15% { opacity: 0.6; }
+ 58% { transform: translate(0, 0) rotate(0); opacity: 0.25; }
+ 75%, 100% { transform: translate(0, 0); opacity: 0; }
+}
+
+@keyframes focus {
+ 0%, 100% { opacity: 0.4; transform: scale(0.94); }
+ 55%, 80% { opacity: 1; transform: scale(1); }
+}
+
+@keyframes reveal {
+ from { opacity: 0; transform: translateY(5px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .fragment {
+ display: none;
+ }
+
+ .mark img,
+ .vision {
+ animation: none;
+ }
+}
diff --git a/apps/screenpipe-app-tauri/components/startup-loader.tsx b/apps/screenpipe-app-tauri/components/startup-loader.tsx
new file mode 100644
index 000000000..5a2bfef30
--- /dev/null
+++ b/apps/screenpipe-app-tauri/components/startup-loader.tsx
@@ -0,0 +1,43 @@
+"use client";
+
+// screenpipe — AI that knows everything you've seen, said, or heard
+// https://screenpipe.com
+
+import React from "react";
+import styles from "./startup-loader.module.css";
+
+const FRAGMENTS = [
+ [-90, -60], [90, 60], [30, 90], [-75, 25],
+ [70, -80], [0, -95], [95, 0], [-95, 0],
+ [-40, 80], [45, -45], [-80, -20], [75, 35],
+];
+
+type FragmentStyle = React.CSSProperties & { "--x": string; "--y": string };
+
+/** Shared presentation for startup checks. Access decisions stay in the gate. */
+export function StartupLoader({ label, vision }: { label: string; vision: string }) {
+ return (
+ <div
+ className="flex min-h-screen w-full items-center justify-center bg-background px-6 text-foreground"
+ role="status"
+ aria-live="polite"
+ >
+ <div className="flex w-full max-w-[440px] flex-col items-center text-center">
+ <div className={styles.mark} aria-hidden="true">
+ {FRAGMENTS.map(([x, y], index) => {
+ const style: FragmentStyle = {
+ "--x": `${x}px`,
+ "--y": `${y}px`,
+ animationDelay: `${index * -0.13}s`,
+ };
+ return <span key={index} className={styles.fragment} style={style} />;
+ })}
+ <img src="/128x128.png" alt="" width={60} height={60} />
+ </div>
+ <h1 className="mt-1.5 text-xl font-medium tracking-tight">Screenpipe</h1>
+ <p className={styles.vision}>{vision}</p>
+ <p className="mt-6 text-[11px] text-muted-foreground">{label}</p>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/pr-assets/branded-startup-loader/after-dark.png b/docs/pr-assets/branded-startup-loader/after-dark.png
new file mode 100644
index 000000000..768a9da29
Binary files /dev/null and b/docs/pr-assets/branded-startup-loader/after-dark.png differ
diff --git a/docs/pr-assets/branded-startup-loader/after-light.png b/docs/pr-assets/branded-startup-loader/after-light.png
new file mode 100644
index 000000000..0728769c0
Binary files /dev/null and b/docs/pr-assets/branded-startup-loader/after-light.png differ
diff --git a/docs/pr-assets/branded-startup-loader/before-dark.png b/docs/pr-assets/branded-startup-loader/before-dark.png
new file mode 100644
index 000000000..ec67f1c07
Binary files /dev/null and b/docs/pr-assets/branded-startup-loader/before-dark.png differ
diff --git a/docs/pr-assets/branded-startup-loader/before-light.png b/docs/pr-assets/branded-startup-loader/before-light.png
new file mode 100644
index 000000000..6a74a3c30
Binary files /dev/null and b/docs/pr-assets/branded-startup-loader/before-light.png differ
diff --git a/docs/pr-assets/branded-startup-loader/compact.png b/docs/pr-assets/branded-startup-loader/compact.png
new file mode 100644
index 000000000..129aec6c7
Binary files /dev/null and b/docs/pr-assets/branded-startup-loader/compact.png differ
diff --git a/docs/pr-assets/branded-startup-loader/fragments-to-focus.gif b/docs/pr-assets/branded-startup-loader/fragments-to-focus.gif
new file mode 100644
index 000000000..78e0e07ba
Binary files /dev/null and b/docs/pr-assets/branded-startup-loader/fragments-to-focus.gif differ
diff --git a/docs/pr-assets/branded-startup-loader/reduced-motion.png b/docs/pr-assets/branded-startup-loader/reduced-motion.png
new file mode 100644
index 000000000..7640b40f3
Binary files /dev/null and b/docs/pr-assets/branded-startup-loader/reduced-motion.png differ