Skip to content

Projects: expose repository list state to the import page - #13244

Draft
ericholscher wants to merge 1 commit into
mainfrom
claude/import-empty-state-context
Draft

Projects: expose repository list state to the import page#13244
ericholscher wants to merge 1 commit into
mainfrom
claude/import-empty-state-context

Conversation

@ericholscher

Copy link
Copy Markdown
Member

The import page renders the same whether a user has repositories to pick from, connected an account that can never list repositories (Google or SSO only), or connected a Git provider whose sync found nothing — for example when our GitHub App isn't installed yet. The dashboard templates can't explain an empty repository list without knowing which of these states the user is in, so today the page fails silently and users stall at the exact step where we lose most of them.

This adds three context flags the theme's empty states branch on (companion PR in ext-theme). Things a reviewer may want to double-check: the "connected a Git provider" check derives the provider list from the OAuth service registry rather than hardcoding it, deliberately excluding identity-only providers like Google — this is stricter than the form prevalidation, which counts any social account; and repository visibility uses the same queryset as the repository list API, so the flag matches what the picker would actually show.


Generated by Claude Code

Expose whether the user has a Git provider connected and any synced
repositories in the import page context, so the dashboard can explain
an empty repository list (provider not connected, or GitHub App with no
repositories granted) instead of showing a search box with no results.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019yjYstmBb2HiscZUc5eKH4
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