Skip to content

ENG-3714: Form builder registry, SSE streaming, and useFormBuilder hook#8205

Draft
jpople wants to merge 1 commit into
jpople/eng-3714/form-builder-pc-renderingfrom
jpople/eng-3714/form-builder-registry-streaming
Draft

ENG-3714: Form builder registry, SSE streaming, and useFormBuilder hook#8205
jpople wants to merge 1 commit into
jpople/eng-3714/form-builder-pc-renderingfrom
jpople/eng-3714/form-builder-registry-streaming

Conversation

@jpople
Copy link
Copy Markdown
Contributor

@jpople jpople commented May 15, 2026

Summary

  • Adds registry.tsx — json-render component bindings for all 9 field types
  • Adds LocationField.tsx and PhoneField.tsx with dynamic imports
  • Adds streaming.ts — SSE parser and streamChatTurn fetch wrapper
  • Adds useFormBuilder.ts — state machine hook with sanitizeSpec() security hardening
  • Patches jest.setup.ts for nwsapi/jsdom compat with antd v6

Security

sanitizeSpec() strips elements with unknown component types before rendering in preview, defending against malicious LLM responses.

Test plan

  • npx jest --testPathPattern="(registry|streaming|useFormBuilder)" — all pass
  • Typecheck clean

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fides-plus-nightly Ready Ready Preview, Comment May 15, 2026 9:42pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
fides-privacy-center Ignored Ignored May 15, 2026 9:42pm

Request Review

@jpople jpople force-pushed the jpople/eng-3714/form-builder-pc-rendering branch from a1d4a57 to f51cfc5 Compare May 15, 2026 21:40
@jpople jpople force-pushed the jpople/eng-3714/form-builder-registry-streaming branch from a78c25c to b29cd26 Compare May 15, 2026 21:40
Sign up for free to 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.

1 participant