Skip to content

Server: Auto-Generated A2H Forms - #29

Merged
github-actions[bot] merged 1 commit into
meta/17from
claude/17-issue-12-20260410-2321
Apr 10, 2026
Merged

Server: Auto-Generated A2H Forms#29
github-actions[bot] merged 1 commit into
meta/17from
claude/17-issue-12-20260410-2321

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

fixes#12

- GET /form/[formKey] — server component that lazily creates a FormRecord
from the turn on first access, checks TTL expiry, renders FormClient
- FormClient — Ant Design 5 UI with AUTHORIZE (approve/deny + context),
COLLECT (free-text, multi-field, select/radio/checkbox), batch layout,
and loading/success/error/expired states
- POST /api/form/[formKey] — validates responses, marks form submitted in
MongoDB, resolves in-process formRegistry promise to unblock Reply Engine
- FormResponseRegistry singleton (globalThis) bridges form submission to
in-process Reply Engine without cross-module type coupling
- FormRecord type + CRUD helpers + TTL index in db.ts
- AntdRegistry wrapper in layout.tsx for Next.js SSR support
- antd ^5, @ant-design/icons ^5, @ant-design/nextjs-registry ^1 added
fixes#12
Co-authored-by: Gustavo Gondim <ggondim@users.noreply.github.com>
@github-actions
github-actionsBot merged commit a347679 into meta/17Apr 10, 2026
@claudeclaudeBot mentioned this pull request Apr 10, 2026
16 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants