Skip to content

Conversation

anxLiang
Copy link

中文版模板 / Chinese template

🤔 This is a ...

  • 🆕 New feature
  • 🐞 Bug fix
  • 📝 Site / documentation improvement
  • 📽️ Demo improvement
  • 💄 Component style improvement
  • 🤖 TypeScript definition improvement
  • 📦 Bundle size optimization
  • ⚡️ Performance optimization
  • ⭐️ Feature enhancement
  • 🌐 Internationalization
  • 🛠 Refactoring
  • 🎨 Code style optimization
  • ✅ Test Case
  • 🔀 Branch merge
  • ⏩ Workflow
  • ⌨️ Accessibility improvement
  • ❓ Other (about what?)

🔗 Related Issues

  • Describe the source of related requirements, such as links to relevant issue discussions.
  • For example: close #xxxx, fix #xxxx

💡 Background and Solution

  • The specific problem to be addressed.
  • List the final API implementation and usage if needed.
  • If there are UI/interaction changes, consider providing screenshots or GIFs.

📝 Change Log

Language Changelog
🇺🇸 English Add Bubble.System、Bubble.Divider
🇨🇳 Chinese 新增 Bubble.System、Bubble.Divider

Copy link
Contributor

github-actions bot commented Oct 11, 2025

Preview is ready

Copy link
Contributor

coderabbitai bot commented Oct 11, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/Bubble-s-d

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Summary of Changes

Hello @anxLiang, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request expands the Bubble component's capabilities by adding two specialized sub-components: Bubble.System and Bubble.Divider. These additions provide more structured ways to present system-generated information and visual separators within chat-like interfaces, enhancing the flexibility and utility of the Bubble component for various conversational UI needs.

Highlights

  • New Bubble Sub-components: Introduced Bubble.System for displaying system messages and Bubble.Divider for integrating Ant Design's Divider within the Bubble component.
  • Style Adjustments: Refined the padding logic within the core Bubble component's content area and removed specific max-width and margin-inline-end styles from Bubble.List roles in demo configurations.
  • Documentation and Tests: Added comprehensive documentation and unit tests for the newly introduced Bubble.System and Bubble.Divider components, along with updating existing snapshot tests.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@dosubot dosubot bot added the enhancement New feature or request label Oct 11, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces two new components, Bubble.System and Bubble.Divider, which are valuable additions to the Bubble component family. The implementation is clean, well-structured, and includes corresponding tests, documentation, and demos. I've found one minor issue in the demo code for Bubble.Divider regarding incorrect prop usage and have provided a suggestion for a fix. Overall, this is a solid contribution.

Copy link

cloudflare-workers-and-pages bot commented Oct 11, 2025

Deploying ant-design-x with  Cloudflare Pages  Cloudflare Pages

Latest commit: 35e16c3
Status: ✅  Deploy successful!
Preview URL: https://d33fafe8.ant-design-x.pages.dev
Branch Preview URL: https://feat-bubble-s-d.ant-design-x.pages.dev

View logs

Copy link

codecov bot commented Oct 11, 2025

Bundle Report

Changes will increase total bundle size by 9.86kB (0.24%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
x-markdown-array-push 3.94MB 9.86kB (0.25%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: x-markdown-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
mermaid.min.js 9.86kB 3.94MB 0.25%

Copy link

codecov bot commented Oct 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.69%. Comparing base (28b8fe9) to head (35e16c3).
⚠️ Report is 2 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1239      +/-   ##
==========================================
+ Coverage   94.61%   94.69%   +0.07%     
==========================================
  Files         131      135       +4     
  Lines        3457     3506      +49     
  Branches      964      981      +17     
==========================================
+ Hits         3271     3320      +49     
  Misses        184      184              
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

github-actions bot commented Oct 13, 2025

size-limit report 📦

Path Size
packages/x/dist/antdx.min.js 65.84 KB (+289 B 🔺)
packages/x-sdk/dist/x-sdk.min.js 7.17 KB
packages/x-markdown/dist/x-markdown.min.js 43.48 KB
packages/x-markdown/dist/plugins/code-high-light.min.js 278.82 KB
packages/x-markdown/dist/plugins/latex.min.js 61.94 KB
packages/x-markdown/dist/plugins/mermaid.min.js 850.69 KB

@kimteayon kimteayon added the 2.x Ant Design X 2.x label Oct 13, 2025
@kimteayon kimteayon added this to the Ant Design X v2 milestone Oct 13, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 15, 2025
@kimteayon kimteayon merged commit 8f26bdf into next Oct 15, 2025
13 checks passed
@kimteayon kimteayon deleted the feat/Bubble-s-d branch October 15, 2025 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.x Ant Design X 2.x enhancement New feature or request lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants