Skip to content

Conversation

@Aviatorscode2
Copy link
Contributor

@Aviatorscode2 Aviatorscode2 commented Jun 12, 2025

Summary

  • Fix the naming convention for some headings to properly communicate what the feature actually does.
  • Removed the custom bell section since it is covered in the component page
  • Moved Data object section to the top. This is because the "Render based on data object" section talks about the data object even before it is documented or mentioned.

Summary by CodeRabbit

  • Documentation
    • Enhanced the <Inbox /> component documentation with a detailed section on the data object, including usage examples, best practices, type safety guidance, and a warning about sensitive data.
    • Improved heading formatting and removed duplicate content for clarity.
    • Updated the Preferences component documentation to replace "Filter" with "Group" in headings and descriptions for clearer terminology.

@netlify
Copy link

netlify bot commented Jun 12, 2025

Deploy Preview for docs-novu ready!

Name Link
🔨 Latest commit cc6fcb4
🔍 Latest deploy log https://app.netlify.com/projects/docs-novu/deploys/684c2f93dc92f80008ba8648
😎 Deploy Preview https://deploy-preview-877--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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 12, 2025

Walkthrough

The documentation for the React <Inbox /> component was updated to add a detailed section about the data object in notifications, including usage, type safety, and best practices. Additionally, the Preferences component documentation was revised to replace "Filter" terminology with "Group" for clarity. No code or API changes were made.

Changes

File(s) Change Summary
content/docs/platform/inbox/react/components/inbox.mdx Added comprehensive "Data object" section with examples, warning, and TypeScript typing advice; removed duplicate section; adjusted heading styles.
content/docs/platform/inbox/react/components/preferences.mdx Replaced "Filter" with "Group" in all relevant headings and descriptions related to preference grouping.

Poem

In docs we hop, with paws so neat,
"Data" explained, so clear and sweet.
Filters now are groups, you see—
More clarity for you and me!
With warnings wise and types in tow,
Our burrow’s knowledge starts to grow.
🥕✨


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between bf2cdb1 and cc6fcb4.

📒 Files selected for processing (1)
  • content/docs/platform/inbox/react/components/preferences.mdx (4 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • content/docs/platform/inbox/react/components/preferences.mdx
⏰ 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

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: 0

🧹 Nitpick comments (3)
content/docs/platform/inbox/react/components/preferences.mdx (1)

62-62: Align descriptive text with grouping terminology
The sentence “Here are the key ways to filter preferences:” still refers to “filter.” Consider updating it to “Here are the key ways to group preferences:”.

- Here are the key ways to filter preferences:
+ Here are the key ways to group preferences:
content/docs/platform/inbox/react/components/inbox.mdx (2)

151-151: Grammar: remove colon before list introduction
Avoid a colon after “such as” when introducing the list. For example:

- You can pass data such as:
+ You can pass data such as the following
🧰 Tools
🪛 LanguageTool

[typographical] ~151-~151: Do not use a colon (:) before a series that is introduced by a preposition (‘as’). Remove the colon or add a noun or a noun phrase after the preposition.
Context: ...dividual users. You can pass data such as: * reactionType: To display specific i...

(RP_COLON)


320-320: Normalize heading sentence case
Several headings use Title Case for the final word (“Item”, “Subject”, “Body”, “Filtering Preferences”). Convert to sentence case for consistency:

  • “Custom notification item”
  • “Custom notification subject”
  • “Custom notification body”
  • “Filtering preferences”

Also applies to: 341-341, 363-363, 545-545

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 987b8dc and bf2cdb1.

📒 Files selected for processing (2)
  • content/docs/platform/inbox/react/components/inbox.mdx (12 hunks)
  • content/docs/platform/inbox/react/components/preferences.mdx (4 hunks)
🧰 Additional context used
🪛 LanguageTool
content/docs/platform/inbox/react/components/inbox.mdx

[typographical] ~151-~151: Do not use a colon (:) before a series that is introduced by a preposition (‘as’). Remove the colon or add a noun or a noun phrase after the preposition.
Context: ...dividual users. You can pass data such as: * reactionType: To display specific i...

(RP_COLON)

⏰ 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 (5)
content/docs/platform/inbox/react/components/preferences.mdx (4)

64-64: Heading terminology updated correctly
The change from “#### Filter by tags” to “#### Group by tags” aligns with the grouping feature semantics.


79-79: Heading terminology updated correctly
“#### Group by tags and workflow IDs” clearly conveys the combined grouping criteria.


96-96: Heading terminology updated correctly
“#### Group all workflows” accurately describes including every workflow in the group.


110-110: Heading terminology updated correctly
“#### Group using custom logic” correctly replaces the earlier “Custom filtering logic.”

content/docs/platform/inbox/react/components/inbox.mdx (1)

144-189: Well-structured Data object section
The newly introduced “Data object” section is clear, comprehensive, and placed logically before downstream examples. It covers static/dynamic values, usage, and TS type safety with practical code snippets and imagery.

🧰 Tools
🪛 LanguageTool

[typographical] ~151-~151: Do not use a colon (:) before a series that is introduced by a preposition (‘as’). Remove the colon or add a noun or a noun phrase after the preposition.
Context: ...dividual users. You can pass data such as: * reactionType: To display specific i...

(RP_COLON)

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.

@victorbmlabs

Please look into coderabbit suggestions

@Aviatorscode2
Copy link
Contributor Author

Kindly merge when you can @jainpawan21

@jainpawan21 jainpawan21 merged commit 9dc7041 into main Jun 13, 2025
7 checks passed
@jainpawan21 jainpawan21 deleted the fixes-naming-convention branch June 13, 2025 14:22
@coderabbitai coderabbitai bot mentioned this pull request Aug 13, 2025
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.

3 participants