Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

[FR] Improve UX for empty repositories

Offen
#821 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

  • #836 von @Naresh-official — ohne Merge geschlossen
  • #1380 von @DivyamTalwar — ohne Merge geschlossen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
typescript
Bereich
frontend

Rechercherichtung

Start by tracing how the main UI and file tree panel handle the generic “Error loading tree preview” state for repositories with no commits or files. Confirm how an empty default branch is represented, then ensure both surfaces show a clear empty-repository message without sync or error guidance; verify the result with an empty repository.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Feature
Feature Description

When a repository is empty, Sourcebot currently displays a generic error such as "Error loading tree preview". This can confuse users by making it seem like there is a problem with syncing or an internal error, when in reality the repository is simply empty.

Image

Image

Image

Proposed improvements:

  • Detect when a repository is empty (no commits or no files in the default branch).
  • Display a clear, user-friendly message in the main UI and file tree panel, like "This repository is empty".
  • Ensure no misleading error states or sync suggestions are shown when a repo is simply empty.
  • Optionally, provide a hint for users to initialize the repository if it is empty.

Benefits:

  • Prevents user confusion about repo sync issues or technical errors.
  • Communicates the actual repo state, improving clarity and onboarding.
  • Aligns Sourcebot UX with GitHub's behaviour for empty repositories.

User Story
As a user viewing a repository with Sourcebot, if the repo is empty, I want to see a clear message that the repository is empty, so I don't think there's an error or bug syncing the repo.

Vorherrschende Sprache
TypeScript
Sterne
3.9k
Forks
374
Ø Merge
2 T. 21 Std.
Gemergte PRs (30 T.)
43

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus sourcebot-dev/sourcebot

Alle Issues in sourcebot-dev/sourcebot

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.