Skip to content
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: changelog of 1.0.4 #392

Merged
merged 11 commits into from
Dec 25, 2024
Merged

docs: changelog of 1.0.4 #392

merged 11 commits into from
Dec 25, 2024

Conversation

YumoImer
Copy link
Collaborator

@YumoImer YumoImer commented Dec 23, 2024

Summary by CodeRabbit

  • 新特性

    • XStream 组件现在支持取消功能。
    • Bubble 组件新增对 typing.suffix 的支持。
    • Sender 组件的 onChange 参数更新为包含事件对象。
    • Sender 组件的 ref 增强以支持焦点控制方法,具体为 focusblur
  • 错误修复

    • 解决了 ThoughtChain 组件在未应用 cssVar 时的样式问题。
  • 文档与用户体验

    • 新增 Petercat 助手功能。
    • 改进了官方网站以提升用户体验。

Copy link
Contributor

coderabbitai bot commented Dec 23, 2024

📝 Walkthrough

总览

演练

这个拉取请求更新了 @ant-design/x 库到版本 1.0.4。主要变更包括 XStream 组件的取消功能支持、Bubble 组件的 typing.suffix 特性、Sender 组件的事件和引用方法增强,以及修复了 ThoughtChain 组件的样式问题。同时引入了 Petercat 助手功能,并改进了官方网站的用户体验。

变更

文件 变更摘要
CHANGELOG.en-US.md 添加 1.0.4 版本更新日志
CHANGELOG.zh-CN.md 添加 1.0.4 版本更新日志
package.json 版本从 1.0.3 更新到 1.0.4

可能相关的 PRs

诗歌

兔子轻跳代码飞,
版本升级又一期,
XStream 取消添新翼,
Bubble 打字更随意,
Sender 引用控制力,
技术进步不停歇,
兔子笑看代码梦!🐰✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.

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. (Beta)
  • @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

github-actions bot commented Dec 23, 2024

Preview is ready

Copy link

Walkthrough

This pull request updates the changelog for version 1.0.4, detailing new features, bug fixes, and improvements. It also updates the package version in package.json to 1.0.4.

Changes

File Summary
CHANGELOG.en-US.md, CHANGELOG.zh-CN.md Added entries for version 1.0.4, including new features, bug fixes, and improvements.
package.json Updated version from 1.0.3 to 1.0.4.

Copy link

codecov bot commented Dec 23, 2024

Bundle Report

Bundle size has no change ✅

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.45%. Comparing base (b0f538a) to head (6d41986).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #392   +/-   ##
=======================================
  Coverage   91.45%   91.45%           
=======================================
  Files          67       67           
  Lines        1462     1462           
  Branches      384      385    +1     
=======================================
  Hits         1337     1337           
  Misses        125      125           

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

Copy link

github-actions bot commented Dec 23, 2024

size-limit report 📦

Path Size
dist/antdx.min.js 40.76 KB (+90 B 🔺)

Copy link

cloudflare-workers-and-pages bot commented Dec 23, 2024

Deploying ant-design-x with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6d41986
Status: ✅  Deploy successful!
Preview URL: https://0a3301dc.ant-design-x.pages.dev
Branch Preview URL: https://docs-changelog-1-0-4.ant-design-x.pages.dev

View logs

@YumoImer YumoImer changed the title chore: changelog of 1.0.4 docs: changelog of 1.0.4 Dec 23, 2024
@YumoImer YumoImer marked this pull request as draft December 23, 2024 07:12
YumoImer and others added 6 commits December 25, 2024 14:37
* feat: Sender support focus.

* refactor: demo dom

* chore: update test snap

* fix: ts error

* refactor: remove export SenderRef and use GetRef instead

* refactor: SenderRef

* docs: update SenderRef

* docs: add blur demo

* chore: update test snap

* refactor: useProxyImperativeHandle instead of React.useImperativeHandle

* test: add test for useProxyImperativeHandle
@YumoImer YumoImer marked this pull request as ready for review December 25, 2024 07:08
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

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 8d46606 and a685f8c.

📒 Files selected for processing (3)
  • CHANGELOG.en-US.md (1 hunks)
  • CHANGELOG.zh-CN.md (1 hunks)
  • package.json (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • package.json
🔇 Additional comments (2)
CHANGELOG.zh-CN.md (1)

18-21: 版本号和发布日期格式正确!

版本号和日期格式符合项目规范。

CHANGELOG.en-US.md (1)

19-30: 中英文变更日志内容一致!

两个语言版本的变更日志在结构和内容上保持一致。

Comment on lines +22 to +29
- 🆕 扩展 `XStream` 对取消功能的支持。 [#319](https://github.com/ant-design/x/pull/319) by [@ppbl](https://github.com/ppbl)
- 🆕 扩展 `Bubble` 对 `typing.suffix`打字后缀的支持。 [#316](https://github.com/ant-design/x/pull/316) by [@BQXBQX](https://github.com/BQXBQX)
- 🆕 扩展 `Sender` 组件 `onChange` 对 `event` 事件参数的支持。 [#362](https://github.com/ant-design/x/pull/362) by [@defaultjacky](https://github.com/defaultjacky)
- 🆕 扩展 `Sender` 组件 `ref` 对 `focus`、`blur` 等焦点控制能力的支持。 [#397](https://github.com/ant-design/x/pull/397) by [@YumoImer](https://github.com/YumoImer)
- 🐛 修复 `ThoughtChain` 在非 cssVar 下的样式问题。 [#373](https://github.com/ant-design/x/pull/373) by [@YumoImer](https://github.com/YumoImer)
- 📖 添加 `Petercat` 助理功能。 [#375](https://github.com/ant-design/x/pull/375) by [@xingwanying](https://github.com/xingwanying)
- 📖 优化官网站点提升用户体验。 [#389](https://github.com/ant-design/x/pull/389)、[#377](https://github.com/ant-design/x/pull/377)、[#364](https://github.com/ant-design/x/pull/364)、[#368](https://github.com/ant-design/x/pull/368) by [@afc163](https://github.com/afc163)、[@YumoImer](https://github.com/YumoImer)

Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

变更日志与代码实现存在部分不一致

基于代码验证结果,我们发现以下问题:

  • Bubble 组件已实现 typing 功能,包括 stepintervalsuffix 的支持,与变更日志描述一致。
  • Sender 组件的 onChange 事件参数和 ref 的 focus/blur 功能已完整实现,与变更日志一致。
  • XStream 的取消功能在代码库中未找到具体实现,仅在变更日志中提及。
  • ThoughtChain 的 cssVar 样式修复在变更日志中提及,但未能找到相关的具体实现代码。
  • Petercat 助理功能在代码库中未找到具体实现。

建议:

🔗 Analysis chain

请确保变更日志中的功能更新与代码实现一致

建议运行以下脚本验证变更日志中提到的功能更新是否都已实现:


Let me try a different approach to verify these changes.


需要进一步验证部分功能实现

根据搜索结果,我们发现:

  • Sender 组件的 onChange 事件参数支持和 ref 的 focus/blur 功能已经在代码中实现,这与变更日志一致。
  • Bubble 组件文件存在,但需要进一步验证 typing.suffix 的具体实现。
  • XStream 的取消功能未能在代码中找到明确实现。
  • ThoughtChain 的样式相关代码存在,但需要进一步确认具体的 cssVar 修复。
  • Petercat 助理功能的文件未找到。

让我们进一步验证这些功能:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# 描述:验证变更日志中提到的功能更新

# 验证 XStream 的取消功能
ast-grep --pattern 'XStream.*cancel'

# 验证 Bubble 的 typing.suffix 功能
ast-grep --pattern 'Bubble.*typing.suffix'

# 验证 Sender 组件的 onChange 事件参数
ast-grep --pattern 'Sender.*onChange.*event'

# 验证 Sender 组件的 ref focus/blur 方法
ast-grep --pattern 'Sender.*ref.*(focus|blur)'

# 验证 ThoughtChain 的样式修复
ast-grep --pattern 'ThoughtChain.*style'

Length of output: 222


Script:

#!/bin/bash
# Search for relevant files and their content
echo "=== Searching for XStream files and cancel functionality ==="
fd XStream --type f
rg "XStream.*cancel" -A 3

echo -e "\n=== Searching for Bubble files and typing suffix ==="
fd Bubble --type f
rg "typing\.suffix" -A 3

echo -e "\n=== Searching for Sender component files ==="
fd Sender --type f
rg "onChange.*event" -A 3
rg "ref.*focus|blur" -A 3

echo -e "\n=== Searching for ThoughtChain style fixes ==="
fd ThoughtChain --type f
rg "ThoughtChain.*style" -A 3

echo -e "\n=== Searching for Petercat assistant ==="
fd Petercat --type f

Length of output: 12320


Script:

#!/bin/bash
# 检查 Bubble 组件的 typing.suffix 实现
echo "=== 检查 Bubble 组件的 typing.suffix 实现 ==="
rg -t typescript "typing" components/bubble/ -A 3

echo -e "\n=== 检查 XStream 的取消功能实现 ==="
rg -t typescript "cancel" -A 3

echo -e "\n=== 检查 ThoughtChain 的 cssVar 样式修复 ==="
rg -t typescript "cssVar" components/thought-chain/ -A 3

echo -e "\n=== 检查 Petercat 相关实现 ==="
rg -t typescript "Petercat" -A 3

Length of output: 622


Script:

#!/bin/bash
# 检查 Bubble 组件的 typing.suffix 实现
echo "=== 检查 Bubble 组件的 typing.suffix 实现 ==="
rg "typing" components/bubble/

echo -e "\n=== 检查 XStream 的取消功能实现 ==="
# 搜索所有可能的 XStream 相关文件
fd -e tsx -e ts XStream
rg "XStream.*cancel"

echo -e "\n=== 检查 ThoughtChain 的 cssVar 样式修复 ==="
# 检查 ThoughtChain 的样式文件
fd -e ts -e tsx ThoughtChain
rg "cssVar.*ThoughtChain|ThoughtChain.*cssVar"

echo -e "\n=== 检查 Petercat 相关实现 ==="
# 搜索所有可能包含 Petercat 的文件
rg "Petercat" -g "!CHANGELOG*"

Length of output: 6602

@YumoImer YumoImer merged commit 6c01bad into main Dec 25, 2024
16 checks passed
@YumoImer YumoImer deleted the docs/changelog-1.0.4 branch December 25, 2024 07:31
@gehuama
Copy link

gehuama commented Dec 30, 2024

取消功能怎么调用啊,我的代码没有用到xstream ,直接在useXChat 中onRequest, messages, setMessages 如何在监听messages时候打断发送呢,因为此过程中存在会话切换,但messages 还在接收上一个会话中的消息内容

@YumoImer
Copy link
Collaborator Author

取消功能怎么调用啊,我的代码没有用到xstream ,直接在useXChat 中onRequest, messages, setMessages 如何在监听messages时候打断发送呢,因为此过程中存在会话切换,但messages 还在接收上一个会话中的消息内容

OK,那这是一个需求,我在你的 issues 里回复吧,这样上下文能够串起来。

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