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(onboarding): give outcome selection more room
Louis Beaumontee1dd5c9e7d4
diff --git a/apps/screenpipe-app-tauri/app/onboarding/page.test.tsx b/apps/screenpipe-app-tauri/app/onboarding/page.test.tsxindex 7819c0f2f..1c9125196 100644--- a/apps/screenpipe-app-tauri/app/onboarding/page.test.tsx+++ b/apps/screenpipe-app-tauri/app/onboarding/page.test.tsx@@ -135,6 +135,19 @@ describe("enterprise onboarding authentication", () => {expect(screen.queryByRole("button", { name: /use enterprise key/i })).not.toBeInTheDocument();});+ it("gives the use-case step more room with a scroll fallback", async () => {+ onboardingData.currentStep = "first-dashboard";++ render(<OnboardingPage />);++ await waitFor(() =>+ expect(mocks.setWindowSize).toHaveBeenCalledWith("Onboarding", 500, 720),+ );+ expect(screen.getByTestId("onboarding-scroll-region")).toHaveClass(+ "overflow-y-auto",+ );+ });+it("advances after either enterprise credential is verified", async () => {mocks.enterprisePolicy.authenticationState = "authenticated";mocks.enterprisePolicy.isManagedAuthenticated = true;diff --git a/apps/screenpipe-app-tauri/app/onboarding/page.tsx b/apps/screenpipe-app-tauri/app/onboarding/page.tsxindex fa57292e7..8f0e9b755 100644--- a/apps/screenpipe-app-tauri/app/onboarding/page.tsx+++ b/apps/screenpipe-app-tauri/app/onboarding/page.tsx@@ -30,7 +30,7 @@ const SLIDE_WINDOW_SIZES: Record<SlideKey, { width: number; height: number }> =permissions: { width: 500, height: 560 },engine: { width: 500, height: 620 },"connect-apps": { width: 500, height: 680 },- "first-dashboard": { width: 500, height: 660 },+ "first-dashboard": { width: 500, height: 720 },};const SLIDE_ORDER: SlideKey[] = [@@ -290,10 +290,14 @@ export default function OnboardingPage() {{/* Drag region */}<div className="w-full bg-background p-3" data-tauri-drag-region />- {/* Content */}- <div className="flex-1 flex items-center justify-center p-6 overflow-hidden">+ {/* Keep short steps centered, but let content taller than the available+ display grow naturally and scroll from its top instead of clipping. */}+ <div+ data-testid="onboarding-scroll-region"+ className="min-h-0 flex-1 overflow-y-auto overscroll-contain p-6"+ ><div- className={`w-full max-w-lg mx-auto transition-opacity duration-300 ${+ className={`mx-auto flex min-h-full w-full max-w-lg flex-col justify-center transition-opacity duration-300 ${isVisible ? "opacity-100" : "opacity-0"}`}>