feat(admin): integrate form builder for events, surveys, and custom forms
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- json, react, tailwindcss
- Lĩnh vực
- authorization, backend, database, frontend, full-stack
Hướng nghiên cứu
Start by evaluating the four listed builder libraries against license, bundle size, theming, schema portability, and renderer integration. Then inspect the existing admin design system and canEditMembers/role-tier model to shape /forms access. Done means a library choice and a defined path for schema persistence, validation, rendering, submissions, permissions, and audit entries.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Add a drag-and-drop form-builder surface to the admin UI so staff/super_admins can compose forms (event registrations, surveys, applications, custom intake) without code, then publish them to the public site for members to fill out.
Requirements
- Evaluate candidate libraries and pick one. Initial shortlist:
- React Hook Form Form Builder — light, generates RHF schemas; minimal opinions
- Coltorapps Builder — headless, extensible; bring-your-own UI
- Form.io open source — heavyweight; bundled renderer + builder + server bits we may not want
- SurveyJS (React) — mature; commercial-license check required
- Define the form-schema persistence model (likely `forms` + `form_submissions` tables, schema stored as jsonb)
- Admin route at `/forms` (or similar) gated by an appropriate policy (likely `canEditForms`, staff+)
- Builder UI styled consistently with the existing admin design system (white background, rounded purple primaries, cool-toned palette — not a vendor's default theme)
- Server-side schema validation when submissions land (don't trust client-built schemas blindly)
- Public renderer on the member-facing site that consumes the same schema
- Submission storage + a basic admin view of submissions per form
- Audit-log entries for form publish / unpublish / edit actions
Context
This is groundwork for several near-term workflows: annual event registration, post-event surveys, leadership-position applications, ad-hoc community polls. Each one would otherwise be a one-off Google Form or a custom-coded page.
The four candidate libraries have very different shapes — picking one is the load-bearing decision. Library evaluation should weigh: license, bundle size, theming flexibility, schema portability (can we read the schema server-side without the builder runtime?), and how well the renderer integrates with our existing Tailwind/design-system surface on the public site.
Implementation Notes
- The form schema should be portable: serialized JSON that we own, not a library-specific binary blob.
- Renderer on the public site needs to work without authoring dependencies (admins build, members render — different bundles).
- Permissions: who can build forms? who can publish? who can read submissions? Tie into the existing `canEditMembers` / role tier model.
- Consider whether form approval (next issue) is a v1 feature or a follow-up gate.
- 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ự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Abidemialade/mylonite#429 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ 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
-
[Bug]: Reject non-numeric 10-character strings in enterWorld() phone validation on index.htmlCó thể đã có người làm @princepandey3 đã nhận hôm nay. Đang mởbug good first issue help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Ayaan-20-11/Zentro-#76 · 1 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 81/100
alchemistry/alchemlyb#474 ·