add edit an activity button
I maintainer di solito rispondono entro 1 giorno
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,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.
- Lingua principale
- HTML
- Stelle
- 3
- Fork
- 29
- Merge medio
- 2g 4h
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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 alphaonelabs/learn
-
Password change returns 500 because `username` is used before it is setForse già presa @10done l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
alphaonelabs/learn#138 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Active Navigation State Is Not Highlighted in the NavbarForse già presa @Taha254511 l’ha presa 8 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
alphaonelabs/learn#91 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
POST /api/seed creates verified host accounts with no authenticationForse già presa @10done l’ha presa oggi. Aperta
alphaonelabs/learn#140 ·
I maintainer di solito rispondono entro 1 giorno
-
Add a "Resend verification email" option on the login pageForse già presa @gopikrishna-20 l’ha presa 6 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
alphaonelabs/learn#131 ·
I maintainer di solito rispondono entro 1 giorno
-
[Security] Use random salts for new password hashes, with backward-compatible migrationForse già presa @Taha254511 l’ha presa 6 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
alphaonelabs/learn#130 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di alphaonelabs/learn
Issue simili
-
[BUG]: Header avatar and display name don't update after editing the profileForse già presa @dhruvbit l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
AOSSIE-Org/DebateAI#770 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
GDQuest/learn-gdscript#1452 ·