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

semmelei: Admins edit, publish, withdraw and delete a News Post

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by reading the existing News Post admin routes and their tests to follow the validation and AdminRequiredLayer patterns. Then trace the admin list and frontend routing to add the editor at /admin/posts/$uuid. Done means the acceptance criteria pass, including publication-time behavior, access checks, unsaved-change warnings, just ci, and frontend checks.

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

Descrizione

ready-for-agent

Parent

#77

What to build

Admins can work on a News Post on its own editor page at /admin/posts/$uuid (a page, not a dialog): edit title and body in a large plain textarea, save without publishing, publish, withdraw, and delete after a confirmation dialog. The editor must be comfortable on a phone.

Publishing sets the publication time to now, also when re-publishing a withdrawn News Post (so it moves to the top again); withdrawing clears it and makes it a Draft. Editing title or body never touches the publication time.

Backend: admin routes to update title and body, publish, withdraw and delete, same validation and AdminRequiredLayer as the existing News Post admin routes.

Frontend: save, publish / withdraw depending on state, delete with confirmation; a warning when leaving with unsaved changes, both on in-app navigation and on tab close. No Markdown toolbar or preview yet (separate ticket), no editor library.

Acceptance criteria

  • HTTP test: publish sets a publication time; withdraw clears it; re-publish gives a newer publication time
  • HTTP test: update after publishing keeps the publication time
  • HTTP test: delete removes the News Post
  • HTTP test: validation and access (401 anonymous, 403 Verkauf) on the new routes
  • Admin can save, publish, withdraw and delete from the editor page; the list reflects the state
  • Unsaved-changes warning on in-app navigation and tab close (checked by hand)
  • just ci and the frontend checks are green
Lingua principale
TypeScript
Stelle
0
Fork
1
Merge medio
10h 20m
PR unite (30g)
36

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 myOmikron/code

Tutte le issue di myOmikron/code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.