[Discover + Join/Leave] Display cancelled and past card states
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PLpgSQL
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DevDogsUGA/DogPack
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
DevDogsUGA/DogPack#106 ·
Tutte le issue di DevDogsUGA/DogPack
Issue simili
-
Unsampled pageload span is profiled when profileLifecycle is 'trace' (browser UI profiling)Forse già presa @Jxxunnn l’ha presa oggi. ApertaBrowser Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
getsentry/sentry-javascript#25497 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
qew21/Genshin-Subtitles#45 ·
-
bug status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
facebook/docusaurus#12739 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
obsidianmd/pele#25 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno