Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

add edit an activity button

Abierto
#134 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@gopikrishna-20 ya está trabajando en esto.

Desde el 21/10/2026.

  • #135 de @gopikrishna-20 — abierto

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, format and schedule_type values, length limits, and at most 10 tags.
  • Encrypt description, learning_objectives and prerequisites with 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-activity page, reached from the dashboard, that loads the activity, shows the form, and sends a PATCH on save.
  • Redirect unauthenticated users to login and show an error to non-hosts.

Routing

  • Register /edit-activity as a clean route and add it to run_worker_first in wrangler.toml.
Lenguaje dominante
HTML
Estrellas
3
Forks
28
Merge medio
2 d 4 h
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de alphaonelabs/learn

Todos los issues de alphaonelabs/learn

Issues similares

Más issues de Web Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.