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

ux(dateien): add an empty-state message to FilesView

Aperta Adatta ai principianti
#347 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
91/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
frontend

Direzione di ricerca

Leggi src/LageBuch.App.Shared/Views/FilesView.axaml e confrontalo con src/LageBuch.App.Shared/Views/LinksView.axaml intorno alla riga 52. Aggiungi il messaggio in tedesco per lo stato vuoto usando TextMutedBrush e associa la visibilità del bordo dell’elenco al conteggio dei file; limita la modifica a FilesView. Verifica con make test PROJECT=tests/LageBuch.Acceptance.Tests FILTER=Name~Files e make run.

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

Descrizione

good first issue ux

The Dateien tab shows an empty bordered table when an incident has no
attachments. There is no sentence telling the user that this is normal and what
to do about it.

LinksView already solves exactly this, and it is three lines. From
src/LageBuch.App.Shared/Views/LinksView.axaml line 52:

<TextBlock DockPanel.Dock="Top" x:Name="EmptyText" Text="Keine Links hinterlegt."
           Foreground="{StaticResource TextMutedBrush}"
           IsVisible="{Binding !Links.Count}" />

with the counterpart IsVisible="{Binding Links.Count}" on the list Border so
the two never show at once.

What to do

Apply the same pattern to src/LageBuch.App.Shared/Views/FilesView.axaml:

  • add an EmptyText block bound to the inverse of the file collection's count
  • bind the existing list Border visibility to the count so the empty frame
    does not sit behind the message
  • use TextMutedBrush, matching the Links tab

Keep the message German, calm and short. Something in the spirit of
Keine Dateien angehängt. fits the house style; the existing add button right
below already tells the user how to add one.

Scope this PR to FilesView only. Several other tabs have the same gap and will
get their own issues.

Verify
make test PROJECT=tests/LageBuch.Acceptance.Tests FILTER=Name~Files
make run

Difficulty: easy.


New here?

Comment to claim this issue and it is yours. If no pull request appears within
seven days it goes back in the pool, no hard feelings.

Before you open the PR, please skim CONTRIBUTING.md:
commits need DCO sign-off (git commit -s) and a Conventional Commit subject.
Changes under src/ additionally need an entry under ## [Unreleased] in
CHANGELOG.md — CI fails the PR otherwise.

Questions are welcome right here or in
Discussions.

Lingua principale
C#
Stelle
1
Fork
3
Merge medio
4h 34m
PR unite (30g)
182

Preparare l'ambiente

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 CodeForFire/lagebuch

Tutte le issue di CodeForFire/lagebuch

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.