feat(admin): form approval workflow before publishing
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- html
調査の方向性
Start by reviewing the existing merge, unmerge, and role-change audit conventions under /admin/users/*, then confirm the form builder integration from #1974 and its forms schema. Done means authors can submit drafts, authorized reviewers can approve or request changes with comments, transitions are audited, self-approval is blocked, and published edits require re-approval.
索引モデルが issue の本文から書いたものです。
説明
Summary
Require an explicit admin approval step before a form built in the admin UI becomes available for public submission. Authors compose drafts, designated approvers review and publish (or send back with comments), and an audit trail captures every state transition.
Requirements
- Form lifecycle states: `draft` → `in_review` → `published` (+ `changes_requested`, `archived`)
- Submit-for-review action available to form authors
- Approval queue view in the admin (`/forms/queue` or similar) listing forms awaiting review
- Approve / request-changes actions, both gated by a new policy (e.g., `canApproveForms` — likely super_admin only)
- Reviewers can leave a comment when requesting changes; comment surfaces to the author
- Each state transition writes to `audit_log` with actor, before-state, after-state, and any comment
- Author cannot approve their own form (self-promotion guard analogous to PATCH role)
- Published forms cannot be edited in place — editing creates a new draft revision that must be re-approved
Context
Form misconfiguration (wrong required fields, leaky PII collection, broken submit URL) is a real failure mode once forms drive event registration and surveys. A required-approval gate gives the leadership team a check before anything lands on the public site.
This depends on #1974 (the form builder integration) being in place so there's something to approve in the first place.
Implementation Notes
- The state machine can live on the `forms` table as a status enum + a small `form_reviews` table for the comment/transition history.
- The audit_log entries pattern follows the existing merge / unmerge / role-change conventions on `/admin/users/*`.
- Consider whether "approve" requires two approvers (review by one, publish by another) — probably overkill for v1; single approver per form.
- Edit-after-publish creates a draft revision — model this as a new row pointing back to the published form via `parent_form_id`, or as a versioned `form_revisions` table; pick whichever fits the builder library's schema model best.
- 主要言語
- HTML
- スター
- 33
- フォーク
- 107
- 平均マージ
- 14時間 6分
- マージ済み PR(30日)
- 19
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 ·