Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

add edit an activity button

Aperta
#134 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@gopikrishna-20 ci sta già lavorando.

Dal 21/10/2026.

  • #135 di @gopikrishna-20 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
html
Ambito
full-stack

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
HTML
Stelle
3
Fork
29
Merge medio
2g 4h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di alphaonelabs/learn

Tutte le issue di alphaonelabs/learn

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.