[#1] Fix forms callback delivery and action feedback - #533
Conversation
|
Important Approval pendingCodeRabbit has no unresolved comments, but it has not reviewed the latest commit. Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.
📝 WalkthroughWalkthroughThe PR updates callback delivery with typed mappings, router-based procedure dispatch, respondent data, and Discord-compliant nonces. It updates the callback editor with metadata-driven inputs, validation, responsive controls, and operation feedback. It adds persistent submission receipts and multiple-response navigation. It adds deletion and retry feedback in the responses dashboard. API, component, browser, and end-to-end tests cover these flows. Merge Risk: 🟡 Moderate · up to Callback delivery can omit required recruiting content, role assignments can diverge between Discord and the platform, and older callback settings may not be remapped before use. These should be resolved before merge. 🚥 Pre-merge checks | ✅ 7 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (7 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 53 functions across 28 files. (4 skipped: 4 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
6cd145a to
f512430
Compare
|
Implemented the callback mapping refinement and rebased this PR onto current What changed:
Verification:
The screenshots below use the authenticated Blade admin route with synthetic local data. The fixture was removed after capture. DesktopMobile |
There was a problem hiding this comment.
Actionable comments posted: 3
Note
Quiet mode is enabled, so only the most important comments were posted inline. Other review comments are grouped below.
🟡 Other comments (1)
.forge/features/forms-delivery-feedback/status.md-51-52 (1)
51-52: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winReconcile the publication status.
Mark the pre-publication entries in lines 20–21 and 46–47 as historical with dates, or remove them. The current status states that the branch and pull request were published.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: QUIET
Plan: Team
Run ID: 4cf05fda-7cbb-4335-bc4f-94b784bc0d29
📒 Files selected for processing (23)
.forge/features/forms-delivery-feedback/spec.md.forge/features/forms-delivery-feedback/srd.md.forge/features/forms-delivery-feedback/status.md.forge/features/forms-delivery-feedback/test-cases.mdapps/blade/src/app/_components/admin/forms/admin-form-builder.tsxapps/blade/src/app/_components/admin/forms/form-builder-types.tsapps/blade/src/app/_components/admin/forms/form-callback-mappings.tsapps/blade/src/app/_components/admin/forms/form-callbacks-dialog.tsxapps/blade/src/tests/forms/admin-form-builder-dialogs.test.tsxapps/blade/src/tests/forms/form-callback-delivery.test.tsxapps/blade/src/tests/forms/form-callback-mappings.test.tspackages/api/src/routers/forms.tspackages/api/src/tests/config/discord-config.test.tspackages/api/src/tests/forms/callbacks.test.tspackages/api/src/tests/forms/database-callbacks.test.tspackages/api/src/trpc.tspackages/api/src/utils/forms/callbacks.tspackages/api/src/utils/forms/database-callbacks.tspackages/api/src/utils/forms/procedures.tspackages/api/src/utils/forms/registry.tspackages/consts/src/discord.tspackages/validators/src/forms-platform.tspackages/validators/src/tests/forms-platform.test.ts
💤 Files with no reviewable changes (1)
- packages/api/src/utils/forms/registry.ts
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.
|
@coderabbitai resolve |
✅ Action performedComments resolved and changes approved. |


Closes #1.
Why
Form submission side effects need to survive transient Discord failures, and admins need a clear way to connect form data to registered callback inputs without editing application code for every form.
What changed
formCallbackmetadata and exposes their input descriptions to the admin mapper.name,email,major,gradTerm,gradYear, andteaminputs, plus the legacy structured embed, configured director mention, and role-derived team color.The latest desktop and mobile callback-mapper screenshots are attached to the implementation update.
Verification
Deployment
No database migration, dependency, or environment-variable change is required by this update.