Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭 适合新手
#347 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 分钟
30 天内合并 PR
177

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeForFire/lagebuch 的其他 Issue

查看 CodeForFire/lagebuch 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。