feat(admin): integrate form builder for events, surveys, and custom forms
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- json, react, tailwindcss
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- HTML
- 星标
- 33
- 派生
- 107
- 平均合并
- 14 小时 6 分钟
- 30 天内合并 PR
- 19
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
USRSE/usrse.github.io 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
USRSE/usrse.github.io#2117 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 63/100
USRSE/usrse.github.io#2115 · 1 条评论 ·
维护者通常 1 天内回复
-
broken-links
难度 2/5 1-3 小时 新手友好度 88/100
USRSE/usrse.github.io#2099 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
USRSE/usrse.github.io#2085 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
USRSE/usrse.github.io#2001 ·
维护者通常 1 天内回复
查看 USRSE/usrse.github.io 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
Abidemialade/mylonite#429 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
[Bug]: Reject non-numeric 10-character strings in enterWorld() phone validation on index.html可能已有人在做 @princepandey3 今天认领。 未关闭bug good first issue help wanted
难度 1/5 1-3 小时 新手友好度 88/100
Ayaan-20-11/Zentro-#76 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 81/100
alchemistry/alchemlyb#474 ·