Session card widget from the generated Session model with fake data
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 91/100
Línea de trabajo
Empieza con los pasos de configuración de docs/getting-started/first-contribution.md y luego añade el widget en lib/widgets/session_card.dart y el helper de datos falsos en test/support/fake_sessions.dart. Usa SessionCardData tal como se especifica en el issue y cubre los cuatro estados, el truncamiento y las horas localizadas en test/session_card_test.dart. Ejecuta flutter test test/session_card_test.dart; se considera terminado cuando se superan los criterios de aceptación sin importar lib/generated/.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What to build
A SessionCard widget for the Discover list: course code, title, host name, time range, location, and seats (memberCount + 1 of capacity, because the host counts as a seat; see the comment in supabase/schemas/dogpack/tables/sessions.sql). States: open, full (shows "Full", no join affordance), cancelled (struck through, "Cancelled"), and past. The card takes a plain value class defined in its own file, SessionCardData (id, courseCode, title, hostName, startsAt, endsAt, location, memberCount, capacity, status), and does not import anything from lib/generated/. The generated models are git-ignored and CI's flutter job does not create them, so a widget that imports them would fail flutter analyze and flutter test in CI. The generated Sessions model carries only hostId, no host name and no course title join; a later Discover-feed issue maps query results (with the host name from the profile) into SessionCardData, so that mapping is out of scope here. Provide a fakeSessions() helper in test/support/ returning SessionCardData so the widget can be developed without a database.
Files
- new
lib/widgets/session_card.dart - new
test/support/fake_sessions.dart - new
test/session_card_test.dart
Acceptance
- Renders all four states; seats read "2 of 4 seats" style, and the host is counted.
- Long titles and locations truncate with an ellipsis; no overflow at 320 dp.
- Times display in the device's locale and time zone.
- Widget tests for each state; a golden is optional.
How to check
flutter test test/session_card_test.dart.
Before you start
Setup is in first contribution. Run flutter analyze and flutter test before you open the PR; both must pass. Keep the change to the files listed. Comment on this issue to claim it.
- Lenguaje dominante
- PLpgSQL
- Estrellas
- 0
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DevDogsUGA/DogPack
-
onboarding
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
DevDogsUGA/DogPack#10 ·
-
good first issue onboarding
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
DevDogsUGA/DogPack#8 ·
-
good first issue onboarding
Dificultad 2/5 1-3 horas Aptitud para principiantes 91/100
DevDogsUGA/DogPack#7 ·
-
good first issue polish
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
DevDogsUGA/DogPack#4 ·
-
good first issue polish
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
DevDogsUGA/DogPack#3 ·
Todos los issues de DevDogsUGA/DogPack
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
quarto-dev/quarto-cli#15042 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
zsviczian/obsidian-excalidraw-plugin#3000 ·
Los mantenedores suelen responder en 1 día
-
fe: spell out "Auto increment" in the table editor, "AI" reads as artificial intelligence todayAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
landsman/adminer-desktop#120 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Diff panel hides the current branch name and the arrow overlaps the base ref when the panel is narrowPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoaccepted bug via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
pingdotgg/t3code#19048 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
saisaharsh3/Leftovers#13 · 1 comentario ·