[FR] Improve UX for empty repositories
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 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.
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sourcebot-dev/sourcebot
-
bug triage needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
sourcebot-dev/sourcebot#1681 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
sourcebot-dev/sourcebot#1633 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
sourcebot-dev/sourcebot#1384 · 4 commenti ·
-
ask_sb bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
sourcebot-dev/sourcebot#1137 · 4 commenti ·
-
bug triage needed
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
sourcebot-dev/sourcebot#1661 · 1 commento ·
Tutte le issue di sourcebot-dev/sourcebot
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
fil-donadoni/tolaria#4409 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
corsairdev/corsair#1764 ·