Skip to content

projects: explain the empty repository list on the add project page - #770

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

projects: explain the empty repository list on the add project page#770
ericholscher wants to merge 1 commit into
mainfrom
claude/import-empty-states

Conversation

@ericholscher

Copy link
Copy Markdown
Member

A user who lands on the add project page with an empty repository list currently gets a search box that can never return results, and the guidance that would fix their situation (install the GitHub App, refresh the sync, request organization approval) is hidden behind the "Repair" popup that only appears after a failed search. Users who signed up with Google alone get the same dead end with no hint that they need to connect a Git provider at all.

This shows the right guidance inline on first load, branching on context from readthedocs/readthedocs.org#13244: no Git provider connected → connect prompt; connected but nothing synced → the repair guidance, with the GitHub App item distinguishing "never installed" from "installed but restricted". The organization-approval item previously rendered only for the legacy OAuth provider — explicitly not for the GitHub App, whose users are the ones that hit pending-approval installs — so it now covers both. The repair items move to a shared partial so the inline state and the Repair modal stay in sync. The dashboard's empty state also gains an Add project button; it previously only linked the tutorial.

Merge order is safe in both directions: the new states key on explicit == False comparisons, so until the application PR deploys, undefined context falls through to the current placeholder rather than showing the connect prompt to everyone. Worth double-checking that reasoning in review, since it's load-bearing.


Generated by Claude Code

Show connect, install, and sync guidance inline when the repository
list is empty on page load, instead of only behind the post-search
Repair popup. Cover the GitHub App in the organization approval
guidance, prompt for installation when the App has no repositories yet,
and add an Add project button to the dashboard empty state.

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