Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#347 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
91/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
frontend

調査の方向性

src/LageBuch.App.Shared/Views/FilesView.axamlを読み、52行目あたりをsrc/LageBuch.App.Shared/Views/LinksView.axamlと比較してください。TextMutedBrushを使って空状態のドイツ語メッセージを追加し、リストの枠線の表示をファイル数にバインドしてください。変更はFilesViewに限定してください。make test PROJECT=tests/LageBuch.Acceptance.Tests FILTER=Name~Filesとmake runで確認してください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
1
フォーク
3
平均マージ
4時間 49分
マージ済み PR(30日)
177

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeForFire/lagebuch のほかの issue

CodeForFire/lagebuch の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。