refactor(shared): extract artifact status/scope/type vocab into shared constants module
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- react, typescript
- Área
- full-stack
Línea de trabajo
Start with the Drizzle pgEnum definitions and inspect the existing monorepo workspace pattern, then trace the listed API and admin files for their duplicated vocabularies. Choose a shared module importable by packages/api and apps/admin, replace the redeclarations with its arrays and label maps, and verify every listed file uses the shared definitions.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Artifact lifecycle status, scope, and event-type enum values are currently re-declared in multiple files (admin route validation, admin list-page filters, public route filters). The drizzle pgEnum is the authoritative source but isn't easy to import as a const array for UI dropdowns and zod schemas.
Requirements
- Create a shared module exporting
constarrays + label maps for:artifactStatus,artifactScope,artifactReviewDecision,broadcastChannel,broadcastChannelStatus,eventType - The shared module must be importable from both
packages/apiandapps/admin(possiblyapps/webtoo) - Refactor existing redeclarations to import from the shared module:
packages/api/src/routes/admin/events/index.tspackages/api/src/routes/admin/events/byId.tspackages/api/src/routes/admin/announcements/index.tspackages/api/src/routes/admin/announcements/byId.tspackages/api/src/routes/eventsSubmit.tsapps/admin/src/pages/events/EventsListPage.tsxapps/admin/src/pages/events/NewEventPage.tsxapps/admin/src/pages/announcements/AnnouncementsListPage.tsx
Context
Flagged in the Plan 3 review. As Plan 4 (forms) and Plan 5 (broadcast) add more surfaces touching these enums, drift risk compounds.
Implementation Notes
The existing monorepo structure suggests a new packages/shared/ workspace or extending packages/design-system/ with a constants subpath. Pick whichever fits the existing pattern.
- Lenguaje dominante
- HTML
- Estrellas
- 33
- Forks
- 107
- Merge medio
- 14 h 6 min
- PR fusionados (30 d)
- 19
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de USRSE/usrse.github.io
-
update community awardsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
USRSE/usrse.github.io#2117 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 63/100
USRSE/usrse.github.io#2115 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Broken URLs on the websiteAbiertobroken-links
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
USRSE/usrse.github.io#2099 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
USRSE/usrse.github.io#2085 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
USRSE/usrse.github.io#2001 ·
Los mantenedores suelen responder en 1 día
Todos los issues de USRSE/usrse.github.io
Issues similares
-
area:sessions bug needs-info platform:windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
openchamber/openchamber#7919 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ietf-tools/errata#109 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día