Submitted lead form builder #4639
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 398 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.358
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4639"
general
weight: 0.35
Joker666
Summary
Adds a submitted lead form builder to the Submitted Leads page (Figma). Workspaces pick the form fields and which partner groups can submit leads.
PartnerGroup.submittedLeadFormDataandsubmittedLeadsEnabledAt), likeapplicationFormData. For now, a save writes one form to all groups.submittedLeadsbeta flag instead of a hardcoded program list. The partner side uses the partner's group.Not included: Legal fields and "Create lead".
Program.referralFormDatais removed in a follow-up.Deployment
PartnerGroupcolumns deployed to production (PlanetScale deploy request 595)submittedLeadFormData(PlanetScale deploy request 596)betaFeatures.submittedLeadsin Edge ConfigHow to test
1. In
apps/web, runpnpm prisma:push, and leaveEDGE_CONFIGempty in.env.local.2. On
http://localhost:8888/acme/program/leads, click the sliders button, add fields, turn on the groups, and save.3. As an Acme partner, open
http://partners.localhost:8888/programs/acme/leadsand submit a lead with the new fields.4. Turn off the partner's group. The tab is hidden, and partners without leads are redirected to the program overview.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added a lead-form builder that lets teams customize fields and choose which partner groups can collect submitted leads.
Added URL fields and configurable character limits, numeric bounds, and selection options.
Lead forms now follow group-level settings, and newly created campaign groups inherit the default group’s form settings.
Improvements
Added clearer validation for required fields and configured limits.
Submitted Leads access is now controlled by workspace and group settings rather than a fixed program list.
Improved scroll fades in payout tables.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Screenshots
<img width="664" alt="Submitted Leads page header with the form button" src="https://github.com/user-attachments/assets/f5455f6d-189b-4678-9bd0-281c9159366a" />
<img width="540" alt="Edit submitted lead form drawer" src="https://github.com/user-attachments/assets/7df497f5-384e-4842-b68d-f9663239c860" />
<img width="540" alt="Partner submit lead form with a custom field" src="https://github.com/user-attachments/assets/f52bd519-8cbe-4d75-975c-b2d05530d53a" />