Skip to content

feat(startups): refresh the onboarding review on focus and every 30s - #7289

Merged
idoshamun merged 1 commit into
mainfrom
feat/startups-onboarding-live-refresh
Nov 8, 2026
Merged

idoshamun merged 1 commit into
mainfrom
feat/startups-onboarding-live-refresh

Conversation

@idoshamun

@idoshamun idoshamun commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Requested by Ido · project thread

Changes

The founder's agent sets up the company page over MCP in another window, so the onboarding's setup step (the checklist and the page preview) now shows its changes without a reload.

  • New useStartupsSetupRefresh hook: invalidates the page (which covers products and branding), the subscription, the seats and the intel settings when the window gets focus back and every 30 seconds while the tab is visible.
  • It listens to the window's focus event as well as visibilitychange. React Query's own focus refetch only listens to visibilitychange, which doesn't fire when the founder switches from the terminal back to a browser window that was already visible. Switching tabs fires both, so refreshes within a second of each other are skipped.
  • Paused while a row's editor is open, so a refetch doesn't reset what the founder is typing.
  • Only the onboarding's setup step uses it. Manage › Plan's checklist is unchanged.

Recorded in Storybook with a fake API the "agent" edits: the cover, description and website show up on focus, the product on the 30s tick, and the intel topics on the next focus, ending at "Acme is ready".

Events

None.

Experiment

None.

Manual Testing

  • Unit tests for the hook (interval, focus, disabled and unmount).
  • Recorded the flow in Storybook at 1440×900.

Generated by Claude Code

Preview domain

https://feat-startups-onboarding-live-re.preview.app.daily.dev

The founder's agent edits the page over MCP in another window, so the
setup step's checklist and page preview now refetch the page, plan,
seats and intel settings when the window gets focus back and every 30
seconds while the tab is visible. Paused while a row is being edited.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FodmVtXrWfXgVxVCNq4CrA
@idoshamun idoshamun self-assigned this Nov 8, 2026
@vercel

vercel Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
daily-webapp Ready Ready Preview Nov 8, 2026 8:07am UTC
storybook Ready Ready Preview Nov 8, 2026 8:07am UTC

Request Review

@idoshamun
idoshamun merged commit 0b36bb5 into main Nov 8, 2026
13 checks passed
@idoshamun
idoshamun deleted the feat/startups-onboarding-live-refresh branch November 8, 2026 08:13

This branch was successfully deployed

2 active deployments
Preview – daily-webapp — a71d646f Deployed Nov 8, 2026 by vercel[bot]
Preview – storybook — a71d646f Deployed Nov 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants