feat(integrations): show webhook script compilation status#40127
feat(integrations): show webhook script compilation status#40127goncaloremelhe wants to merge 1 commit intoRocketChat:developfrom
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
💤 Files with no reviewable changes (3)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (7)📚 Learning: 2026-03-20T13:51:23.302ZApplied to files:
📚 Learning: 2026-03-27T14:52:56.865ZApplied to files:
📚 Learning: 2026-01-17T01:51:47.764ZApplied to files:
📚 Learning: 2025-09-18T17:32:33.969ZApplied to files:
📚 Learning: 2026-03-15T14:31:28.969ZApplied to files:
📚 Learning: 2026-03-16T21:50:42.118ZApplied to files:
📚 Learning: 2025-11-19T12:32:29.696ZApplied to files:
🔇 Additional comments (5)
WalkthroughThe changes implement a feature to display UI feedback about webhook integration script compilation status. Three TODO comments are removed from the server-side integration methods, while the client-side webhook forms now conditionally render error and success messages based on script compilation state. The OutgoingWebhookForm component is updated to accept a webhookData prop, and a new translation key is added for the success message. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
Proposed changes
The Webhook Integration Editor now clearly informs admins when a webhook script compiles successfully after saving.
scriptEnabledis on and the server returnsscriptCompiled(and noscriptError).Issue
Closes #40094
Steps to test or reproduce
SyntaxError: ...) and the success hint is not shown.Further comments
Script compilation already happens server-side and is persisted as
scriptCompiledorscriptError; this PR makes that result visible in the editor to reduce uncertainty after saving.Summary by CodeRabbit
Release Notes
New Features
Chores