-
-
Notifications
You must be signed in to change notification settings - Fork 722
docs(bubble): update content and messageRender type #814
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
docs(bubble): update content and messageRender type #814
Conversation
📝 Walkthrough## Walkthrough
此次更改将 Bubble 组件 API 文档中 `content` 属性的类型由 `string` 更新为更为具体的 `BubbleContentType`,并将 `messageRender` 的类型改为泛型函数以支持更灵活的内容渲染。
## Changes
| 文件路径 | 变更摘要 |
|------------------------------------|--------------------------------------------------------------------------------------------|
| components/bubble/index.zh-CN.md | 将 `content` 属性类型从 `string` 改为 `BubbleContentType`,`messageRender` 类型改为泛型函数,关联源码定义。 |
| components/bubble/index.en-US.md | 将 `content` 属性类型从 `string` 改为 `BubbleContentType`,`messageRender` 类型改为泛型函数,关联源码定义。 |
## Possibly related PRs
- ant-design/x#403:该 PR 引入并定义了 `BubbleContentType`,与本次 PR 中 `content` 属性类型的更新直接相关。
## Suggested reviewers
- afc163
## Poem
> 🐇
> 气泡内容新类型,
> 文档更新显神奇。
> 不再只是字符串,
> 明确类型更安心。
> 代码小兔乐开怀,
> 共赏进步每一笔!
> Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (3)
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Bundle ReportBundle size has no change ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
< 8000 p class="mb-3"> 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 selected for processing (1)
components/bubble/index.zh-CN.md
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: test / react component workflow
- GitHub Check: build preview
- GitHub Check: size
🔇 Additional comments (2)
components/bubble/index.zh-CN.md (2)
47-47
: 文档更新:content
类型从string
改为BubbleContentType
此修改使文档与源码中Bubble
组件的实际类型定义保持一致,提升了 API 文档的准确性。
47-47
: 请同步更新英文文档
请确认components/bubble/index.en-US.md
中的content
类型标注是否已从string
更新至BubbleContentType
,确保中英文文档内容一致。
f0d14df
to
4aef923
Compare
ci 挂了 |
抱歉,我尚不清楚test执行失败的原因,但从报错内容看,似乎和pr改动无关,也许是bun的近期的发行版和现有ci配置不兼容? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #814 +/- ##
=======================================
Coverage 92.35% 92.35%
=======================================
Files 66 66
Lines 1492 1492
Branches 405 405
=======================================
Hits 1378 1378
Misses 114 114 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
* chore: sync main to feature branch (#810) * fix(attachment): fix image display style (#751) * chore: update CodePreviewer to support React 19 (#758) * docs: update a new contributions charts (#761) * fix: fix some potential issue (#773) * refactor: using setState function (#774) Co-authored-by: vanndxh <wangyuezhou.wyz@digital-engine.com> * type: fix some potential issue (#775) * fix: watch config three sub-items (#777) * feat: function setState * fix: watch config --------- Co-authored-by: vanndxh <wangyuezhou.wyz@digital-engine.com> * fix: fix Conversations ellipsis tooltip issues by removing it (#776) * fix: fix Conversations ellipsis tooltip issues by removing it * test: update snapshot * style: use native text overflow style * docs: changelog of 1.2.0 (#778) * fix: fix some potential issue * fix: fix some potential issue * fix: fix some potential issue * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * 🏷️ type: add Conversation type export (#258) Co-authored-by: afc163 <afc163@gmail.com> * docs: fix the wrong docs of ThoughtChain (#781) * fix: fix some potential issue * fix: fix some potential issue * fix: fix some potential issue * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: changelog of 1.2.0 * docs: fix the wrong docs of ThoughtChain * docs: optimize Bubble.List scoll position * docs: fix thought-chain and changelog * fix: Prompts scroll styles (#785) * fix: Prompts srollX * fix: Prompts srollX * docs: optimize Bubble.List scroll bar position (#783) * docs: optimize Bubble.List scoll position * docs: optimize Bubble.List scoll position * test: demo snap * fix: Prompts srollX * chore: sync main to feature branch --------- Co-authored-by: wzc520pyfm <1528857653@qq.com> Co-authored-by: ice <49827327+coding-ice@users.noreply.github.com> Co-authored-by: Shinji-Li <1349021570@qq.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Vanndxh <77873426+vanndxh@users.noreply.github.com> Co-authored-by: vanndxh <wangyuezhou.wyz@digital-engine.com> Co-authored-by: afc163 <afc163@gmail.com> * chore: fix warning of deprecated API (#827) * chore: fix warning of deprecated API * chore: fix ts * chore: fix logic * test: ignore legacy * chore: delete webpack.config.js (#229) * docs(bubble): update content and messageRender type (#814) * docs: sender supplement documents to address user inquiries (#835) * docs: supplement documents to address user inquiries * docs: sender * chore: sync main to feature branch * feat: make the Bubble foot and header to get from context & Bubble can get key (#683) * feat: 调整Bubble foot,header参数,支持头部获取上下文 * fix: # 支持useXAgent通过deps 获取最新状态 * fix: 剔多余提交 * fix: 英文文档格式修复 * fix 简化参数 * Update header-and-footer.tsx fix: 调整用例 * feat: bubble's footer and header * feat: bubble's footer and header * test: bubble's footer and header * fix: ts of key * fix: ts of key --------- Co-authored-by: Mickey <951203214@qq.com> * fix: resolve the security issues of apikey (#840) * fix: Resolve the security issues of apikey * fix: Resolve the security issues of apikey * test: update snap * fix:api key and stream * fix:api key and stream * docs: modification tips (#844) * docs: changelog of 1.3.0 (#845) * test: sender * test: delete * docs: changelog of 1.3.0 * docs: changelog of 1.3.0 * docs: changelog of 1.3.0 --------- Co-authored-by: wzc520pyfm <1528857653@qq.com> Co-authored-by: ice <49827327+coding-ice@users.noreply.github.com> Co-authored-by: Shinji-Li <1349021570@qq.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Vanndxh <77873426+vanndxh@users.noreply.github.com> Co-authored-by: vanndxh <wangyuezhou.wyz@digital-engine.com> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: 二货爱吃白萝卜 <smith3816@gmail.com> Co-authored-by: Lawliet <37376096+L-Hknu@users.noreply.github.com>
中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
📝 Change Log
Summary by CodeRabbit
content
属性的类型说明,由简单的字符串类型调整为更复杂的BubbleContentType
,提升了类型描述的准确性和一致性。messageRender
属性的类型说明,支持更灵活的泛型内容渲染回调。