refactor(shared): extract artifact status/scope/type vocab into shared constants module
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- react, typescript
- Lĩnh vực
- full-stack
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- HTML
- Star
- 33
- Fork
- 107
- Merge trung bình
- 14 giờ 6 phút
- Pull request đã merge (30 ngày)
- 19
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của USRSE/usrse.github.io
-
update community awardsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
USRSE/usrse.github.io#2117 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 63/100
USRSE/usrse.github.io#2115 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Broken URLs on the websiteĐang mởbroken-links
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
USRSE/usrse.github.io#2099 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
USRSE/usrse.github.io#2085 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
USRSE/usrse.github.io#2001 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của USRSE/usrse.github.io
Issue tương tự
-
area:sessions bug needs-info platform:windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
openchamber/openchamber#7919 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ietf-tools/errata#109 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày