feat(admin): replace window.prompt with proper modal for required review comments

Aperta
#2,004 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
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start with apps/admin/src/pages/events/EventDetailPage.tsx and apps/admin/src/pages/announcements/AnnouncementDetailPage.tsx, then inspect apps/admin/src/components/ for an existing modal primitive. Trace the reject and request_changes transitions and replace both window.prompt calls with the reusable required-comment flow. Done means empty comments show an inline error, cancellation is possible, and both pages use the modal.

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

Descrizione

Summary

apps/admin/src/pages/events/EventDetailPage.tsx and apps/admin/src/pages/announcements/AnnouncementDetailPage.tsx use window.prompt to collect the required comment for reject and request_changes transitions. Works but UX is rough — no validation, no formatting, no cancel-without-typing, blocks the JS thread.

Requirements

  • Build a reusable <RequiredCommentModal> component (or use an existing modal primitive if one exists in apps/admin/src/components/)
  • Replace the two window.prompt calls in EventDetailPage and AnnouncementDetailPage
  • Validate non-empty before submit; show inline error if empty
  • Add to any future artifact detail page (Plan 4 forms, Plan 5 broadcast UIs)

Context

Flagged in the Plan 3 review. Forms (Plan 4) will add another detail page with the same pattern — fix before that lands so the new code copies the modal instead of window.prompt.

Lingua principale
HTML
Stelle
33
Fork
107
Merge medio
14h 6m
PR unite (30g)
19

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 USRSE/usrse.github.io

Tutte le issue di USRSE/usrse.github.io

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.