Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[FR] Improve UX for empty repositories

Aperta
#821 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
3.9k
Fork
374
Merge medio
21h 18m
PR unite (30g)
39

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sourcebot-dev/sourcebot

Tutte le issue di sourcebot-dev/sourcebot

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.