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

[Discover + Join/Leave] Display cancelled and past card states

Đang mở
#100 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, supabase
Lĩnh vực
frontend, mobile

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ả

discover

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

Steps

  1. Add optional DateTime now for tests, default current DateTime in widget; classify cancelled before past/full.
  2. Cancelled shows Cancelled and title crossed out; endsAt<=now shows Past and disables Join.
  3. 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

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 DevDogsUGA/DogPack

Tất cả issue của DevDogsUGA/DogPack

Issue tương tự

Thêm issue về Web Dev

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.