-
Notifications
You must be signed in to change notification settings - Fork 111
Update content for Push webhook guide #990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
❌ Deploy Preview for docs-novu failed. Why did it fail? →
|
WalkthroughDocumentation restructuring and expansion for the Push Webhook integration guide. Changes include rewording for clarity on direct webhook delivery, restructuring the configuration flow into detailed steps with subsections, adding comprehensive examples for authentication validation and notification sending, and enhancing the payload explanation with detailed structure information. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes The changes are documentation-focused with restructuring, rewording, and expansion of existing content. No code logic changes are involved. Review complexity is limited to verifying content accuracy, clarity of technical descriptions, and appropriateness of code examples provided. Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
public/images/channels-and-providers/push/push-webhook/push-webhook-integration.pngis excluded by!**/*.png
📒 Files selected for processing (1)
content/docs/platform/integrations/push/(providers)/push-webhook.mdx(4 hunks)
⏰ 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). (4)
- GitHub Check: Redirect rules - docs-novu
- GitHub Check: Header rules - docs-novu
- GitHub Check: Pages changed - docs-novu
- GitHub Check: Build and Lint
🔇 Additional comments (7)
content/docs/platform/integrations/push/(providers)/push-webhook.mdx (7)
8-10: Clear and effective rewriting of the introduction. The new wording effectively communicates that Push Webhook provides direct webhook delivery without a third-party service and emphasizes user control. This framing sets appropriate expectations for the integration.
12-37: Well-structured configuration flow with clear step-by-step guidance. The two-step process (preparing webhook URL/secret key, then connecting to Novu) is logical and easy to follow. The inline descriptions of required fields and the dashboard UI steps are helpful. The reference to webhook.site for testing and the link to HMAC generation documentation are practical touches.
49-49: Inconsistent Tab component attributes. Line 49 usesvalue="Node.js"while line 74 usestitle="cURL". Verify that thefumadocs-uiTabs component accepts both attributes interchangeably, or standardize on one attribute name to ensure consistent rendering.Also applies to: 74-74
39-87: Device token registration example is practical and complete. The two code examples (Node.js SDK and cURL) clearly demonstrate how to register device tokens. The explanation that any random string can be used as a device token is helpful context. The use ofintegrationIdentifieris well-documented in the comments.
89-110: Clear notification trigger example with good inline documentation. The example effectively demonstrates triggering a workflow with a subscriber ID and custom payload. The comments explain that payload data is included in the webhook request, which helps users understand the data flow.
113-168: Comprehensive payload example with detailed structure. The JSON example effectively illustrates the complete payload structure including target device tokens, title, content, overrides, and nested subscriber profile data. The inline comments explaining what each section represents (e.g., "subscriber fields", "digest variables") enhance clarity. The example is realistic and includes multiple data types to demonstrate the full range of data included.
170-199: Correct and practical authentication validation example. The code example accurately demonstrates HMAC SHA256 signature verification using Node.js's crypto module. The logic correctly compares the providedx-novu-signatureheader against the computed hash of the payload. The explanation of thex-novu-signatureheader is clear, and the code structure (extracting header, computing hash, comparing) follows security best practices.
| }); | ||
| ``` | ||
|
|
||
| ## Paylod sent by Novu to webhook url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in section heading. "Paylod" should be "Payload".
Apply this diff to fix the typo:
-## Paylod sent by Novu to webhook url
+## Payload sent by Novu to webhook url📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| ## Paylod sent by Novu to webhook url | |
| ## Payload sent by Novu to webhook url |
🤖 Prompt for AI Agents
In content/docs/platform/integrations/push/(providers)/push-webhook.mdx around
line 112, the section heading has a typo "Paylod sent by Novu to webhook url";
change "Paylod" to "Payload" so the heading reads "Payload sent by Novu to
webhook url".
Summary by CodeRabbit