Skip to content

Conversation

Aviatorscode2
Copy link
Contributor

@Aviatorscode2 Aviatorscode2 commented Jun 30, 2025

Summary by CodeRabbit

  • Documentation
    • Improved clarity and conciseness of the notification lifecycle documentation.
    • Enhanced explanations of key entities such as events, workflows, notifications, and messages.
    • Updated formatting for better readability and emphasis.
    • Removed redundant sections and streamlined content flow.

Copy link
Contributor

coderabbitai bot commented Jun 30, 2025

Walkthrough

The documentation for the Novu notification lifecycle was revised for clarity and conciseness. Explanations of events, workflows, notifications, and messages were rephrased and reorganized, with redundant sections removed and references to related APIs and documentation updated. No changes were made to any exported or public code entities.

Changes

File(s) Change Summary
content/docs/platform/concepts/notifications.mdx Rewrote and reorganized documentation for notification lifecycle concepts; removed redundancy, clarified entity roles, updated references, and deleted FAQ and properties table.

Sequence Diagram(s)

Possibly related PRs

Suggested reviewers

  • DianaHackmamba

Poem

In the warren of docs, we hop and revise,
Trimming and tidying, making concepts concise.
Events spark the journey, workflows pave the way,
Notifications and messages brighten the day.
With clarity now, our users will cheer—
🐇 Documentation’s never been so clear!


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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

🧹 Nitpick comments (2)
content/docs/platform/concepts/notifications.mdx (2)

23-26: Fix comma-splice and improve flow of the “Event” definition

The sentence is currently a comma-splice and reads a bit heavy. Splitting it keeps the pace consistent with the rest of the page.

-The notification lifecycle starts with an event, this event represents something meaningful that has happened in your application, such as a new comment, user sign-up, or password reset request.
+The notification lifecycle starts with an **event**. An event represents something meaningful that has happened in your application—such as a new comment, user sign-up, or password-reset request.

27-32: Minor consistency tweak: terminate introductory line with a colon

For bullet-list intros elsewhere you end with a colon; do the same here for uniformity.

-Each event in Novu contains
+Each event in Novu contains:
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bdcf848 and a114e02.

⛔ Files ignored due to path filters (1)
  • public/images/concepts/notifications/notification-life-cycle.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • content/docs/platform/concepts/notifications.mdx (2 hunks)
🧰 Additional context used
🪛 LanguageTool
content/docs/platform/concepts/notifications.mdx

[uncategorized] ~35-~35: Possible missing comma found.
Context: ...errides or metadata ### Workflow This event that was triggered in your application,...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~35-~35: Possible missing comma found.
Context: ...be used to send the notification to the user and also the format in which the notifi...

(AI_HYDRA_LEO_MISSING_COMMA)


[style] ~37-~37: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...various channels. This is covered in depth in the [Workflows c...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Build and Lint
🔇 Additional comments (2)
content/docs/platform/concepts/notifications.mdx (2)

35-37: Re-phrase to remove the dangling introductory clause and missing comma

-This event that was triggered in your application, in turn triggers the workflow(s) attached to it. This workflow determines the delivery channels to be used to send the notification to the user and also the format in which the notification content will be displayed in the various channels.
+When Novu receives the event, it triggers the attached workflow(s).  
+The workflow decides which delivery channels to use and how the notification content should be formatted for each channel.

This eliminates the dangling “This event that was triggered…” construction, removes the comma splice, and shortens the second sentence for clarity.
[tag: suggest_nitpick]


53-61: Verify the API links & avoid duplication

Both the Notification and Message sections link to
/api-reference/notifications/list-all-events.
The second link should probably point to the Message API (e.g. /api-reference/messages/*). Please confirm the correct endpoint and update accordingly to prevent user confusion.

Copy link

netlify bot commented Jun 30, 2025

Deploy Preview for docs-novu ready!

Name Link
🔨 Latest commit e0b070d
🔍 Latest deploy log https://app.netlify.com/projects/docs-novu/deploys/686281a99ce123000887d5f2
😎 Deploy Preview https://deploy-preview-886--docs-novu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
content/docs/platform/concepts/notifications.mdx (2)

23-26: Break up the comma-splice for readability

Current sentence contains two independent clauses joined only by a comma. Split into two sentences (or use an em-dash/semicolon) to avoid a comma splice and improve clarity.

-The notification lifecycle starts with an event, this event represents something meaningful that has happened in your application, such as a new comment, user sign-up, or password reset request.
+The notification lifecycle starts with an event. This event represents something meaningful that has happened in your application—such as a new comment, user sign-up, or password-reset request.

35-38: Streamline wording and remove superfluous comma

  1. Introductory “This event that was triggered…” is clunky and the comma after application is unnecessary.
  2. Two consecutive sentences start with This—varying the structure reads better.
-This event that was triggered in your application, in turn triggers the workflow(s) attached to it. This workflow determines the delivery channels to be used to send the notification to the user and also the format in which the notification content will be displayed in the various channels.
+When the event is triggered in your application, it in turn activates the attached workflow(s). The workflow decides which delivery channels to use and how the notification content is formatted for each channel.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a114e02 and e0b070d.

📒 Files selected for processing (1)
  • content/docs/platform/concepts/notifications.mdx (2 hunks)
🧰 Additional context used
🪛 LanguageTool
content/docs/platform/concepts/notifications.mdx

[uncategorized] ~35-~35: Possible missing comma found.
Context: ...errides or metadata ### Workflow This event that was triggered in your application,...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~35-~35: Possible missing comma found.
Context: ...be used to send the notification to the user and also the format in which the notifi...

(AI_HYDRA_LEO_MISSING_COMMA)


[style] ~37-~37: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...various channels. This is covered in depth in the [Workflows c...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

⏰ Context from checks skipped due to timeout of 90000ms (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 (2)
content/docs/platform/concepts/notifications.mdx (2)

53-54: Verify Message-API link target

Both Notification and Message sections point to notifications/list-all-events. The second link should presumably reference a Message-specific endpoint (e.g., /messages). Please confirm and adjust if needed to avoid misleading users.


57-57: “phase” typo corrected — good catch

The earlier typo (phrase) has been fixed. ✅

Copy link
Member

@jainpawan21 jainpawan21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • revisit this doc
  • mention notification event
  • since we have this page only once, try to have crisp but all information related to event on this page

These events are how your application communicates to Novu that it is time to send a particular notification to certain subscribers.

Each event in Novu contains:
- A name that maps to a specific workflow (`user_signed_up`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rephrase this line,

A name that maps to

- When and how messages should be sent

The workflow is where message personalization, conditional logic, and multi-channel orchestration happens.
This event that was triggered in your application, in turn triggers the workflow(s) attached to it. This workflow determines the delivery channels to be used to send the notification to the user and also the format in which the notification content will be displayed in the various channels.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revisit this

in my opinion, bullet points are more easy to comprehend by user

@jainpawan21
Copy link
Member

@Aviatorscode2

Please take a look on above comments

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.

2 participants