Home

madison / open-git

public
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

feat(web): send the GitHub import straight where it needs to go

2 months ago

8cb8e2d
Authored
VC7/27/2026, 5:15:29 AM
Every import entry point opened the same dialog and made the viewer find
out from inside it whether GitHub was connected. They now resolve the link
state on click and go exactly one place: to GitHub when it needs
connecting, or to the repository picker when it does not. The menu stays
open while that resolves so the wait is visible on the item rather than the
menu vanishing into nothing.

The connect flow takes a callback URL instead of always returning to the
standalone import page, so a viewer who started in the modal resumes there.
The home sidebar picks up a connect nudge, gated on an account-row lookup
with no token read behind it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Parent7582a51

8 files changed
  • apps/web/app/(home)/connect-github-widget.tsx+115−0
  • apps/web/app/(home)/feed-sidebar.tsx+7−3
  • apps/web/app/repositories/import/github/github-import-form.tsx+30−3
  • apps/web/app/workspace/import-from-github-menu-item.tsx+19−7
  • apps/web/components/github-import-modal.tsx+8−2
  • apps/web/components/new-repository-modal.tsx+12−3
  • apps/web/components/use-github-import-launch.ts+65−0
apps/web/lib/github/repositories.ts
+14
−0