ux(dateien): add an empty-state message to FilesView
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
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ả
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.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeForFire/lagebuch
-
bug ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CodeForFire/lagebuch#714 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
CodeForFire/lagebuch#713 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
CodeForFire/lagebuch#405 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
CodeForFire/lagebuch#349 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
CodeForFire/lagebuch#348 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CodeForFire/lagebuch
Issue tương tự
-
/api/oauth/introspect emits clientId and tokenType instead of RFC 7662's client_id and token_typeĐang mởbug P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nightscout/nocturne#2317 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: Position intent set on a simple order is dropped when it becomes a bracket, OCO or OTO orderCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
alpacahq/alpaca-trade-api-csharp#903 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
joinrpg/joinrpg-net#5752 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
dimitar-radenkov/Pointframe#294 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/feature-request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Altinn/altinn-correspondence#2154 ·
Maintainer thường phản hồi trong vòng 1 ngày