add edit an activity button
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- html
- Área
- full-stack
Línea de trabajo
The issue names the /api/activities/:id endpoint, the edit-activity page, and wrangler.toml; begin by locating the activity creation flow to see how fields, encryption, tags, and routing are handled. Compare the proposed edit flow with those existing entry points. Done means hosts can update their activity, non-hosts cannot, and the route loads and saves the pre-filled form; linked pull request #135 is already open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Once an activity is created, there is no way for the host to change it. Title, description, type, format, schedule, level, learning objectives, prerequisites and tags are all fixed at creation time. Fixing a typo or updating the details means creating a new activity.
Expected behavior
- A host can open an edit page for an activity they own.
- The form is pre-filled with the current values.
- Saving updates only the fields that changed.
- Non-hosts cannot edit someone else's activity.
Proposed solution
Backend
- Add
PATCH /api/activities/:id, restricted to the activity host. - Validate all inputs: allowed
type,formatandschedule_typevalues, length limits, and at most 10 tags. - Encrypt
description,learning_objectivesandprerequisiteswith AES-256-GCM, as on create. - Apply the field update and tag changes in a single D1 batch so they succeed or fail together.
Frontend
- Add an
edit-activitypage, reached from the dashboard, that loads the activity, shows the form, and sends aPATCHon save. - Redirect unauthenticated users to login and show an error to non-hosts.
Routing
- Register
/edit-activityas a clean route and add it torun_worker_firstinwrangler.toml.
- Lenguaje dominante
- HTML
- Estrellas
- 3
- Forks
- 28
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 alphaonelabs/learn
-
Password change returns 500 because `username` is used before it is setPosiblemente ocupada @10done la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
alphaonelabs/learn#138 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Active Navigation State Is Not Highlighted in the NavbarPosiblemente ocupada @Taha254511 la tomó hace 7 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
alphaonelabs/learn#91 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add a "Resend verification email" option on the login pagePosiblemente ocupada @gopikrishna-20 la tomó hace 5 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
alphaonelabs/learn#131 ·
Los mantenedores suelen responder en 1 día
-
[Security] Use random salts for new password hashes, with backward-compatible migrationPosiblemente ocupada @Taha254511 la tomó hace 5 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
alphaonelabs/learn#130 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add Google Sign-In AuthenticationPosiblemente ocupada @gopikrishna-20 la tomó hace 6 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
alphaonelabs/learn#126 ·
Los mantenedores suelen responder en 1 día
Todos los issues de alphaonelabs/learn
Issues similares
-
frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
uoftblueprint/canada-basketball#79 ·
Los mantenedores suelen responder en 1 día
-
[Feature Request] Update the DimCode agent icon to the 45:32 brand markPosiblemente ocupada @eric8810 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
enhancement good first issue web
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Accessibility Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día