ux(dateien): add an empty-state message to FilesView
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 91/100
Línea de trabajo
Lee src/LageBuch.App.Shared/Views/FilesView.axaml y compáralo con src/LageBuch.App.Shared/Views/LinksView.axaml alrededor de la línea 52. Añade el mensaje en alemán para el estado vacío usando TextMutedBrush y vincula la visibilidad del borde de la lista al recuento de archivos; limita el cambio a FilesView. Verifica con make test PROJECT=tests/LageBuch.Acceptance.Tests FILTER=Name~Files y make run.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
EmptyTextblock bound to the inverse of the file collection's count - bind the existing list
Bordervisibility 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.
- Lenguaje dominante
- C#
- Estrellas
- 1
- Forks
- 3
- Merge medio
- 4 h 34 min
- PR fusionados (30 d)
- 182
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CodeForFire/lagebuch
-
bug ux
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CodeForFire/lagebuch#714 ·
Los mantenedores suelen responder en 1 día
-
bug ux
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
CodeForFire/lagebuch#713 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
CodeForFire/lagebuch#405 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
CodeForFire/lagebuch#349 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
CodeForFire/lagebuch#348 ·
Los mantenedores suelen responder en 1 día
Todos los issues de CodeForFire/lagebuch
Issues similares
-
/api/oauth/introspect emits clientId and tokenType instead of RFC 7662's client_id and token_typeAbiertobug P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nightscout/nocturne#2317 ·
Los mantenedores suelen responder en 1 día
-
[BUG]: Position intent set on a simple order is dropped when it becomes a bracket, OCO or OTO orderPosiblemente ocupada @RaphaelFakhri la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
alpacahq/alpaca-trade-api-csharp#903 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
joinrpg/joinrpg-net#5752 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
dimitar-radenkov/Pointframe#294 ·
Los mantenedores suelen responder en 1 día
-
kind/feature-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Altinn/altinn-correspondence#2154 ·
Los mantenedores suelen responder en 1 día