Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#347 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
91/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
frontend

Hướng nghiên cứu

Đọc src/LageBuch.App.Shared/Views/FilesView.axaml và so sánh với src/LageBuch.App.Shared/Views/LinksView.axaml quanh dòng 52. Thêm thông báo tiếng Đức cho trạng thái trống bằng TextMutedBrush và liên kết khả năng hiển thị của viền danh sách với số lượng tệp; giới hạn thay đổi trong FilesView. Xác minh bằng make test PROJECT=tests/LageBuch.Acceptance.Tests FILTER=Name~Files và make run.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C#
Star
1
Fork
3
Merge trung bình
4 giờ 34 phút
Pull request đã merge (30 ngày)
182

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CodeForFire/lagebuch

Tất cả issue của CodeForFire/lagebuch

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.