[Discover + Join/Leave] Display cancelled and past card states
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start in lib/widgets/session_card.dart, which the issue says to extend after #99 (host-counted seats and full state) is done, and read supabase/schemas/dogpack/tables/sessions.sql for the scheduled/cancelled status values. Add an optional now DateTime that defaults to the current time, and classify cancelled before past or full. Done means cancelled cards show Cancelled with a struck-through title even when past, past cards show Past with Join disabled, and test/widgets/session_card_14_4_test.dart passes under flutter test and flutter analyze.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What to build
Make cancelled and past meetings visibly different from joinable meetings. Show cancelled meetings as cancelled even when they are also in the past, and disable joining in both cases.
Files
lib/widgets/session_card.dart(extend the prerequisite’s file)- Starting example: supabase/schemas/dogpack/tables/sessions.sql
Steps
- Add optional DateTime now for tests, default current DateTime in widget; classify cancelled before past/full.
- Cancelled shows Cancelled and title crossed out; endsAt<=now shows Past and disables Join.
- Keep DB status values scheduled/cancelled rather than inventing stored full/past.
Example
Cancelled test example stays Cancelled even if past; fixed now makes tests deterministic.
Check it works
In test/widgets/session_card_14_4_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/widgets/session_card_14_4_test.dart and flutter analyze.
Before starting
- #99 — Display host-counted seats and full state
References
Assign yourself before starting, or comment to claim the issue. Project setup.
- Ngôn ngữ chính
- PLpgSQL
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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 DevDogsUGA/DogPack
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
DevDogsUGA/DogPack#106 ·
Tất cả issue của DevDogsUGA/DogPack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/rocketmq-dashboard#6896 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Endpoint links in the tag operations list are below the 24px target sizeCó thể đã có người làm @AdzerKI đã 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
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 76/100
keyxmakerx/Chronicle#1469 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: runtime type: bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
eknowledger/toolbench#154 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug confirmed issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
open-webui/open-webui#32635 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày