Skip to content

Conversation

xiaoyatong
Copy link
Collaborator

@xiaoyatong xiaoyatong commented Aug 15, 2025

🤔 这个变动的性质是?

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他改动(是关于什么的改动?)

🔗 相关 Issue

💡 需求背景和解决方案

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • fork仓库代码是否为最新避免文件冲突
  • Files changed 没有 package.json lock 等无关文件

Summary by CodeRabbit

  • Chores
    • 升级部分图标相关依赖至测试版,获取最新图标与修复,潜在提升兼容性与稳定性。
    • 不涉及功能或界面变更,无需用户操作。

Copy link

coderabbitai bot commented Aug 15, 2025

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (17)
  • src/packages/address/__test__/__snapshots__/address.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/audio/__test__/__snapshots__/audio.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/backtop/__test__/__snapshots__/backtop.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/badge/__test__/__snapshots__/badge.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/cascader/__tests__/__snapshots__/cascader.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/checkbox/__test__/__snapshots__/checkbox.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/collapse/__test__/__snapshots__/collapse.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/grid/__test__/__snapshots__/grid.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/hoverbutton/__test__/__snapshots__/hoverbutton.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/image/__test__/__snapshots__/image.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/menu/__test__/__snapshots__/menu.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/noticebar/__test__/__snapshots__/noticebar.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/numberkeyboard/_test_/__snapshots__/index.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/rate/__test__/__snapshots__/rate.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/resultpage/__test__/__snapshots__/resultpage.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/tabbar/__tests__/__snapshots__/tabbar.spec.tsx.snap is excluded by !**/*.snap
  • src/packages/timeselect/__test__/__snapshots__/timeselect.spec.tsx.snap is excluded by !**/*.snap

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

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

Walkthrough

将 package.json 中的依赖版本更新为 beta:@nutui/icons-react 升至 ^3.0.2-beta.5,@nutui/icons-react-taro 升至 ^3.0.2-beta.2。无其他文件和导出/公开 API 变更。

Changes

Cohort / File(s) Summary of Changes
依赖版本升级
package.json
将 @nutui/icons-react 从 ^3.0.1 升级到 ^3.0.2-beta.5;将 @nutui/icons-react-taro 从 ^3.0.1 升级到 ^3.0.2-beta.2;无其他更改。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • Alex-huxiyang
  • irisSong

Poem

小兔提笔蹦三跳,
两枚图标升到“β”妙。
package.json 轻轻敲,
版本如星闪亮耀。
耳朵一动说声好:发布在即,稳步跑。 🐰✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@github-actions github-actions bot added 3.x Target branch 3.x action:review This PR needs more reviews (less than 2 approvals) and removed 3.x Target branch 3.x labels Aug 15, 2025
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: 1

📜 Review details

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

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 2ab966f and 253ee4e.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • package.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: build
  • GitHub Check: test

Comment on lines +111 to +112
"@nutui/icons-react": "^3.0.2-beta.5",
"@nutui/icons-react-taro": "^3.0.2-beta.2",
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

升级到 beta OK,但建议固定预发布版本并补充验证项

  • 目前使用的 caret 范围 ^3.0.2-beta.* 在 npm 语义下可能在 CI/发布时解析到更新的 beta/stable 3.x,带来不可预期变更(尤其图标重命名/导出路径调整这类细小变更)。在 beta 阶段建议固定精确版本,或改用 ~ 以降低漂移风险。
  • PR 描述里补充“升级动机/变更影响”更利于后续追溯:是否包含新图标、修复渲染问题、或 tree-shaking 调整等。

可以考虑如下微调(保持可回滚与可复现):

-    "@nutui/icons-react": "^3.0.2-beta.5",
-    "@nutui/icons-react-taro": "^3.0.2-beta.2",
+    "@nutui/icons-react": "3.0.2-beta.5",
+    "@nutui/icons-react-taro": "3.0.2-beta.2",

建议核对与冒烟:

  • 核对是否存在破坏性变更:图标命名/命名导出是否一致、导入路径是否变更(例如是否仍然 import { Xxx } from '@nutui/icons-react' / @nutui/icons-react-taro')、是否有移除的图标。
  • 在 H5 与 Taro demo 中各做一次图标相关组件(Icon、Button+Icon 等)的冒烟。

可用以下脚本快速罗列代码库中对两个包的实际导入位置,辅助评估影响面(在仓库根目录执行):


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Direct imports from @nutui/icons-react =="
rg -nP -C2 --type=ts --type=tsx $'from\\s+[\'"]@nutui/icons-react[\'"]|require\\([\'"]@nutui/icons-react[\'"]\\)'

echo
echo "== Direct imports from @nutui/icons-react-taro =="
rg -nP -C2 --type=ts --type=tsx $'from\\s+[\'"]@nutui/icons-react-taro[\'"]|require\\([\'"]@nutui/icons-react-taro[\'"]\\)'

echo
echo "== Deep path imports (potentially breaking across versions) =="
rg -nP -C2 --type=ts --type=tsx $'@nutui/(icons-react|icons-react-taro)/'

Length of output: 266


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Search for any mention of @nutui/icons-react =="
rg -n -S "@nutui/icons-react" || true

echo
echo "== Direct import/require of @nutui/icons-react =="
rg -n -S "from\s+['\"]@nutui/icons-react['\"]|require\(['\"]@nutui/icons-react['\"]\)" || true

echo
echo "== Search for any mention of @nutui/icons-react-taro =="
rg -n -S "@nutui/icons-react-taro" || true

echo
echo "== Direct import/require of @nutui/icons-react-taro =="
rg -n -S "from\s+['\"]@nutui/icons-react-taro['\"]|require\(['\"]@nutui/icons-react-taro['\"]\)" || true

echo
echo "== Deep path imports under @nutui/(icons-react|icons-react-taro)/ =="
rg -n -S "@nutui/(icons-react|icons-react-taro)/" || true

Length of output: 93026


请固定 @nutui/icons-react / @nutui/icons-react-taro 的预发布版本并补充兼容验证

原因简述:package.json 仍使用 caret(^3.0.2-beta.*),仓库中有大量直接从这两个包导入(见下),存在安装时解析到不同 beta/3.x 版本导致导出/命名/路径变更的风险。pnpm-lock.yaml 当前已解析为 3.0.2-beta.5 / 3.0.2-beta.2,但为了可回滚与可复现,建议在 package.json 固定精确版本并在 PR 描述里说明变更动机与影响。

需要改动(最小变更建议):

-    "@nutui/icons-react": "^3.0.2-beta.5",
-    "@nutui/icons-react-taro": "^3.0.2-beta.2",
+    "@nutui/icons-react": "3.0.2-beta.5",
+    "@nutui/icons-react-taro": "3.0.2-beta.2",

需要关注 / 验证的代码位置(示例):

  • package.json(lines 111-112)
  • pnpm-lock.yaml(已包含 @nutui/[email protected] 与 @nutui/[email protected]
  • 打包脚本:scripts/build.mjs (≈ line 384), scripts/build-taro.mjs (≈ line 500) — 注意这些脚本会修改 packageJson.dependencies
  • 代表性直接导入(需逐项核对命名导出与路径):
    • src/packages/uploader/uploader.tsx
    • src/packages/uploader/uploader.taro.tsx
    • src/packages/icon/demo.tsx (含 '@nutui/icons-react/dist/style_iconfont.css')
    • src/packages/tabs/tabs.tsx / src/packages/tabs/tabs.taro.tsx
    • src/packages/toast/Notification.tsx / src/packages/toast/toast.taro.tsx
    • src/packages/tabbar/demos/h5/demo1.tsx / src/packages/tabbar/demos/taro/demo1.tsx
    • 以及大量 demo/test 文件(见仓库搜索结果)

建议的最小验证清单(冒烟):

  • 核对命名导出是否 unchanged(eg. import { Xxx } from '@nutui/icons-react' 仍有效)
  • 核对导入路径(包括 style_iconfont.css 或 dist 下的类型声明路径)是否未变
  • 在 H5 与 Taro 的若干 demo 中分别验证:Icon、Button+Icon、IconFont、Uploader 等(示例文件见上)
  • 运行相关单元/快照测试(tests 引用较多 icons),确保没有断裂

如需,我可以把仓库中引用该包的文件列表导出成清单,或把 build 脚本附近的具体行贴出来供进一步评审。

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@nutui/icons-react": "^3.0.2-beta.5",
"@nutui/icons-react-taro": "^3.0.2-beta.2",
"@nutui/icons-react": "3.0.2-beta.5",
"@nutui/icons-react-taro": "3.0.2-beta.2",

@github-actions github-actions bot added the 3.x Target branch 3.x label Aug 15, 2025
Copy link

codecov bot commented Aug 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.13%. Comparing base (2ab966f) to head (9a051fb).
⚠️ Report is 2 commits behind head on feat_v3.x.

Additional details and impacted files
@@              Coverage Diff              @@
##           feat_v3.x    #3330      +/-   ##
=============================================
- Coverage      88.13%   88.13%   -0.01%     
=============================================
  Files            290      291       +1     
  Lines          19113    19140      +27     
  Branches        2960     2971      +11     
=============================================
+ Hits           16846    16869      +23     
- Misses          2262     2266       +4     
  Partials           5        5              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Miles-hxy Miles-hxy merged commit c1dc515 into jdf2e:feat_v3.x Aug 15, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x Target branch 3.x action:review This PR needs more reviews (less than 2 approvals) size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants