Skip to content

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented May 7, 2025

Add emojis to section headers and reorganize content into four clear sections:

  • What You'll Find Here
  • Continuous Improvement
  • Technical Details
  • Support

Improved readability and first-time user experience by better highlighting key features and resources.

Notes

before now (not the final rendering, but close to it)
before after

Summary by CodeRabbit

  • Documentation
    • Expanded and restructured the Storybook demo introduction with detailed insights on features, organization, technical background, and support resources.
    • Updated the demo migration timeline from JavaScript to TypeScript to reflect ongoing progress more accurately.

Add emojis to section headers and reorganize content into four clear sections:
- What You'll Find Here
- Continuous Improvement
- Technical Details
- Support

Improved readability and first-time user experience by better highlighting key features and resources.
@tbouffard tbouffard added the documentation Improvements or additions to documentation label May 7, 2025
Copy link

coderabbitai bot commented May 7, 2025

"""

Walkthrough

The changes update and expand documentation for the maxGraph project. The Introduction section in the Storybook demo markdown was extensively rewritten and structured, while the website documentation was updated to clarify the status and process of migrating stories from JavaScript to TypeScript. No code or API changes were made.

Changes

File(s) Change Summary
packages/html/stories/Introduction.mdx Rewrote and expanded the Storybook introduction with more detailed sections, technical background, and support info.
packages/website/docs/demo-and-examples.md Updated narrative about JavaScript-to-TypeScript migration for Storybook stories to clarify ongoing progress.

Possibly related PRs

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.


📜 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 279bccd and a6bee8d.

📒 Files selected for processing (1)
  • packages/html/stories/Introduction.mdx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/html/stories/Introduction.mdx

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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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

@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 (5)
packages/website/docs/demo-and-examples.md (1)

24-24: Align migration phrasing across documentation
The update clarifies the origin and ongoing TypeScript migration. For consistency with other docs (e.g., “are being progressively migrated” in Introduction.mdx), consider:

-  - The stories were originally written in `JavaScript` and are progressively migrated to `TypeScript`.
+  - The stories were originally written in `JavaScript` and are being progressively migrated to `TypeScript`.
packages/html/stories/Introduction.mdx (4)

52-53: Technical Details – migration context
The phrasing accurately conveys both the migration status and origin from mxGraph. Consider aligning tense and wording with related docs for a unified voice.


62-62: Refine wording for stronger impact
Replace “please feel free to open” with “open” or “submit” to strengthen the call to action:

-  If you find any issues, please feel free to open a sub-issue...
+  If you find any issues, open a sub-issue...
🧰 Tools
🪛 LanguageTool

[style] ~62-~62: Consider using a different verb to strengthen your wording.
Context: ...github.io/maxGraph/docs/intro). If you find any issues, please feel free to open a ...

(FIND_ENCOUNTER)


64-64: Correct pluralization in “discussion”
Change “create a new discussions” to “create a new discussion”:

-  If you have any questions or suggestions, create a new discussions...
+  If you have any questions or suggestions, create a new discussion...
🧰 Tools
🪛 LanguageTool

[grammar] ~64-~64: The plural noun “discussions” cannot be used with the article “a”. Did you mean “a new discussion” or “new discussions”?
Context: ...ve any questions or suggestions, create a new discussions on the [GitHub repository](https://gith...

(A_NNS)


67-67: Fix rendering tip spacing and path reference
Add a space after the closing span and update the file path for accuracy:

-  <span className="tip">Tip</span>To edit this page...
+  <span className="tip">Tip</span> To edit this page...

Also update the path to packages/html/stories/Introduction.mdx to match the actual location.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between aa579c1 and c888997.

📒 Files selected for processing (2)
  • packages/html/stories/Introduction.mdx (1 hunks)
  • packages/website/docs/demo-and-examples.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
packages/html/stories/Introduction.mdx

[style] ~62-~62: Consider using a different verb to strengthen your wording.
Context: ...github.io/maxGraph/docs/intro). If you find any issues, please feel free to open a ...

(FIND_ENCOUNTER)


[grammar] ~64-~64: The plural noun “discussions” cannot be used with the article “a”. Did you mean “a new discussion” or “new discussions”?
Context: ...ve any questions or suggestions, create a new discussions on the [GitHub repository](https://gith...

(A_NNS)

⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: build
  • GitHub Check: build (windows-2022)
  • GitHub Check: build (macos-14)
  • GitHub Check: build (ubuntu-22.04)
🔇 Additional comments (6)
packages/html/stories/Introduction.mdx (6)

31-31: Add engaging welcome header with emoji
Great addition of the emoji in the title—sets a welcoming tone and aligns with the PR’s goal of better organization and appeal.


33-33: Clarified Storybook demo overview
The expanded description succinctly explains Storybook usage and story organization—excellent for first-time users.


35-35: Enhanced “What You’ll Find Here” section
Adding an emoji and detailed list header improves visual hierarchy and readability.


37-40: Detailed feature list
The four bullet points clearly outline demo capabilities. The consistent formatting and bolding enhance scanability.


42-42: Clearly marked Continuous Improvement section
The rocket emoji and header draw attention to ongoing updates—well aligned with the PR objectives.


44-48: Expanded ongoing examples list
Great detail on what new examples cover; reinforces commitment to continuous improvement.

Copy link

@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: 2

🧹 Nitpick comments (3)
packages/html/stories/Introduction.mdx (3)

35-41: Ensure consistent punctuation in list items.
The bullet points under "What You'll Find Here" currently lack terminating periods, which can feel inconsistent in Markdown. Consider adding a period at the end of each item for uniformity:

- **Feature Demonstrations**: Each story focuses on specific capabilities, from basic graph rendering to advanced interactions
+ **Feature Demonstrations**: Each story focuses on specific capabilities, from basic graph rendering to advanced interactions.

- **Combination Examples**: See how multiple features work together to create powerful graph applications
+ **Combination Examples**: See how multiple features work together to create powerful graph applications.

42-49: Consider unifying bullet voice and punctuation.
The "Continuous Improvement" section uses imperative verbs without periods, whereas other lists are descriptive. To enhance consistency, either:

  • Add terminating periods to these bullets, or
  • Rewrite them in a descriptive voice (e.g., "New examples are regularly added to demonstrate …").

58-64: Refine wording for opening sub-issues.
The phrase "open a sub-issue" can be aligned more closely with GitHub terminology. For example:

If you find any issues, create a sub-issue under the [issue tracking all demo improvements](https://github.com/maxGraph/maxGraph/issues/505) issue.
🧰 Tools
🪛 LanguageTool

[style] ~62-~62: Consider using a different verb to strengthen your wording.
Context: ...github.io/maxGraph/docs/intro). If you find any issues, open a sub-issue of the [is...

(FIND_ENCOUNTER)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between c888997 and ed589f4.

📒 Files selected for processing (2)
  • packages/html/stories/Introduction.mdx (1 hunks)
  • packages/website/docs/demo-and-examples.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/website/docs/demo-and-examples.md
🧰 Additional context used
🪛 LanguageTool
packages/html/stories/Introduction.mdx

[style] ~62-~62: Consider using a different verb to strengthen your wording.
Context: ...github.io/maxGraph/docs/intro). If you find any issues, open a sub-issue of the [is...

(FIND_ENCOUNTER)

⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: build
  • GitHub Check: build (windows-2022)
  • GitHub Check: build (macos-14)
  • GitHub Check: build (ubuntu-22.04)
🔇 Additional comments (1)
packages/html/stories/Introduction.mdx (1)

31-34: Engaging header and introduction are clear and inviting.
The emoji and title formatting make for a friendly first impression, and the concise paragraph effectively explains the purpose of the demo.

Copy link

@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

♻️ Duplicate comments (1)
packages/html/stories/Introduction.mdx (1)

67-68: Add missing space after tip badge
Without a space, “TipTo” renders incorrectly. Update to:

-   <span className="tip">Tip</span>To edit this page…
+   <span className="tip">Tip</span> To edit this page…
🧹 Nitpick comments (3)
packages/html/stories/Introduction.mdx (3)

35-41: Ensure consistent punctuation in bullet points
The items under “What You’ll Find Here” are complete sentences but lack terminal punctuation. For consistency and clarity, consider adding a period at the end of each bullet. For example:

- - **Feature Demonstrations**: Each story focuses on specific capabilities, from basic graph rendering to advanced interactions
+ - **Feature Demonstrations**: Each story focuses on specific capabilities, from basic graph rendering to advanced interactions.

50-57: Unify inline formatting for languages
You’ve italicized JavaScript and TypeScript, while using backticks for code identifiers like mxGraph. For consistency, consider using backticks for language names as well (e.g., JavaScript, TypeScript), aligning with code styling elsewhere.


60-65: Consider using a bulleted list for support resources
To match the list-driven layout of earlier sections, you could transform the three support paragraphs into bullets. For example:

## 🤝 Support

- For detailed usage, see the [documentation]().
- If you find issues, create a sub-issue in [demo improvements]().
- For questions or suggestions, open a discussion in [GitHub Discussions]().

This would improve scannability.

🧰 Tools
🪛 LanguageTool

[style] ~62-~62: Consider using a different verb to strengthen your wording.
Context: ...github.io/maxGraph/docs/intro). If you find any issues, open a sub-issue of the [is...

(FIND_ENCOUNTER)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between ed589f4 and d679001.

📒 Files selected for processing (1)
  • packages/html/stories/Introduction.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
packages/html/stories/Introduction.mdx

[style] ~62-~62: Consider using a different verb to strengthen your wording.
Context: ...github.io/maxGraph/docs/intro). If you find any issues, open a sub-issue of the [is...

(FIND_ENCOUNTER)

🔇 Additional comments (2)
packages/html/stories/Introduction.mdx (2)

31-34: Clear, welcoming introduction
The new heading and opening paragraph effectively set context for first-time users, highlighting Storybook and the demo’s organizational structure. Great job improving readability.


42-49: Great overview of ongoing updates
The “Continuous Improvement” section clearly outlines future demo enhancements and links to deeper documentation. This will help users understand that the content is actively maintained.

Copy link

@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

♻️ Duplicate comments (1)
packages/html/stories/Introduction.mdx (1)

52-55: Maintain consistent verb tense.
For improved consistency, consider changing "The examples evolved" to "The examples have evolved" to match the present-perfect tense used elsewhere.

🧹 Nitpick comments (2)
packages/html/stories/Introduction.mdx (2)

1-28: Centralize styling for tip components.
Consider moving the inline <style> block for .tip and .tip-wrapper into a shared global stylesheet or MDX theme configuration to ensure consistency across documentation and avoid duplication across stories pages.


60-63: Use stronger action verb.
Consider replacing "find any issues" (line 62) with "encounter any issues" to strengthen the call to action.

🧰 Tools
🪛 LanguageTool

[style] ~62-~62: Consider using a different verb to strengthen your wording.
Context: ...github.io/maxGraph/docs/intro). If you find any issues, create a sub-issue under th...

(FIND_ENCOUNTER)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between d679001 and d166103.

📒 Files selected for processing (1)
  • packages/html/stories/Introduction.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
packages/html/stories/Introduction.mdx

[style] ~62-~62: Consider using a different verb to strengthen your wording.
Context: ...github.io/maxGraph/docs/intro). If you find any issues, create a sub-issue under th...

(FIND_ENCOUNTER)

🔇 Additional comments (4)
packages/html/stories/Introduction.mdx (4)

31-34: Clear and engaging introduction.
The new welcome heading and overview are concise and inviting for first-time users.


35-41: Organized feature overview.
The "What You'll Find Here" section effectively highlights demo capabilities with clear bullet points.


42-49: Continuous improvement emphasis.
The "Continuous Improvement" section aptly communicates ongoing updates and directs users to additional documentation.


66-68: Tip badge spacing is correct.
The space after the tip badge ensures proper rendering, and the instructions accurately reference the file path.

Copy link

@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

♻️ Duplicate comments (1)
packages/html/stories/Introduction.mdx (1)

50-61: Consistency: update verb tense for “evolved”
A past review suggested changing “The examples evolved” to “The examples have evolved” to maintain tense consistency with surrounding bullet items. Please adjust accordingly.

🧹 Nitpick comments (1)
packages/html/stories/Introduction.mdx (1)

62-69: Refine support wording for stronger tone
Consider replacing “If you find any issues” (line 66) with “If you encounter any issues” to better match the professional tone used elsewhere in the docs.

🧰 Tools
🪛 LanguageTool

[style] ~66-~66: Consider using a different verb to strengthen your wording.
Context: ...github.io/maxGraph/docs/intro). If you find any issues, create a sub-issue under th...

(FIND_ENCOUNTER)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between d166103 and 279bccd.

📒 Files selected for processing (1)
  • packages/html/stories/Introduction.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
packages/html/stories/Introduction.mdx

[style] ~66-~66: Consider using a different verb to strengthen your wording.
Context: ...github.io/maxGraph/docs/intro). If you find any issues, create a sub-issue under th...

(FIND_ENCOUNTER)

🔇 Additional comments (3)
packages/html/stories/Introduction.mdx (3)

31-34: Well-structured introduction with emoji header
The new welcome section is clear and engaging. The “✨” emoji adds a friendly touch, and the concise description sets the right expectations for first-time users.


35-41: Clear “What You’ll Find Here” section
This bullet list effectively highlights key demo features, and the “🔍” emoji improves scannability. The concise phrasing makes it easy to skim.


42-49: “Continuous Improvement” section enhances confidence
Outlining ongoing additions and linking to deeper docs reassures users that the demo is actively maintained. The “🚀” emoji visually reinforces progress.

Copy link

sonarqubecloud bot commented May 8, 2025

@tbouffard tbouffard merged commit c0c4c41 into main May 8, 2025
2 checks passed
@tbouffard tbouffard deleted the docs/improve_storybook_demo_intro_page branch May 8, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant