chore: standardize repository config#228
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Preview is ready!
↩️ Previous: ⚡️ 🤖 Powered by surge-preview |
|||||||||||||||
|
Warning Review limit reached
Next review available in: 58 minutes Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable usage-based reviews in Billing to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information, and refer to the rate limits docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (14)
Walkthrough更新了包名与文档站点配置,调整 README、示例和首页标题,并同步改写构建、发布、Vercel、GitHub Actions、Dependabot 和资助配置。 Changes包名与文档站点
GitHub 自动化
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #228 +/- ##
=======================================
Coverage 94.28% 94.28%
=======================================
Files 6 6
Lines 140 140
Branches 41 41
=======================================
Hits 132 132
Misses 7 7
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Code Review
This pull request updates the repository to use the scoped package name @rc-component/resize-observer. It modernizes the documentation, updates example imports, refactors build and deployment scripts (including adding Vercel configuration), and updates dependency management. Feedback is provided to improve cross-platform compatibility in the gh-pages script using cross-env and to align TypeScript path mappings with bundler aliases in tsconfig.json.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
🧹 Nitpick comments (2)
.github/workflows/react-component-ci.yml (1)
7-8: 🔒 Security & Privacy | 🔵 Trivial复用工作流引用与 secrets 传递方式可收紧(可选)。
经核查下游工作流
test-utoo.yml,其仅在 Codecov 步骤显式使用CODECOV_TOKEN。建议:
- 将
secrets: inherit改为显式映射CODECOV_TOKEN,遵循最小权限原则。- 引用
test-utoo.yml@main属组织内常见做法,固定至 Commit SHA 可进一步增强供应链安全,视团队策略而定。示例:
uses: react-component/rc-test/.github/workflows/test-utoo.yml@main secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/react-component-ci.yml around lines 7 - 8, The reusable workflow invocation in the CI workflow currently passes all secrets via inherit, but the downstream test-utoo.yml only needs CODECOV_TOKEN. Update the workflow call to map CODECOV_TOKEN explicitly instead of inheriting all secrets, and keep the uses reference to react-component/rc-test/.github/workflows/test-utoo.yml@main unless your team decides to pin it to a specific commit SHA for stricter supply-chain control.Source: Linters/SAST tools
tsconfig.json (1)
13-16: 📐 Maintainability & Code Quality | 🔵 Trivial补齐
/es子路径的 TypeScript 映射以对齐构建配置
.dumirc.ts已为@rc-component/resize-observer/es配置了运行时别名,但tsconfig.json仅映射了裸包名。当前代码库虽未使用该子路径导入,但补齐映射可防止未来引入/es导入时导致编辑器类型解析失败或tsc --noEmit报错。建议修改
"paths": { "`@/`*": ["src/*"], "@@/*": [".dumi/tmp/*"], "`@rc-component/resize-observer`": ["src/index.tsx"], + "`@rc-component/resize-observer/es`": ["src/index.tsx"], + "`@rc-component/resize-observer/es/`*": ["src/*"] }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tsconfig.json` around lines 13 - 16, The TypeScript path mapping in tsconfig.json only covers the bare `@rc-component/resize-observer` package, while the build alias also supports the /es subpath. Update the paths configuration alongside the existing `@rc-component/resize-observer` entry so `@rc-component/resize-observer/es` resolves to the same source target, keeping TypeScript resolution aligned with the runtime alias setup.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/react-component-ci.yml:
- Around line 7-8: The reusable workflow invocation in the CI workflow currently
passes all secrets via inherit, but the downstream test-utoo.yml only needs
CODECOV_TOKEN. Update the workflow call to map CODECOV_TOKEN explicitly instead
of inheriting all secrets, and keep the uses reference to
react-component/rc-test/.github/workflows/test-utoo.yml@main unless your team
decides to pin it to a specific commit SHA for stricter supply-chain control.
In `@tsconfig.json`:
- Around line 13-16: The TypeScript path mapping in tsconfig.json only covers
the bare `@rc-component/resize-observer` package, while the build alias also
supports the /es subpath. Update the paths configuration alongside the existing
`@rc-component/resize-observer` entry so `@rc-component/resize-observer/es` resolves
to the same source target, keeping TypeScript resolution aligned with the
runtime alias setup.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 4208fed4-9e6c-40e4-b49f-20d0123f10d8
📒 Files selected for processing (17)
.dumirc.ts.github/FUNDING.yml.github/dependabot.yml.github/workflows/codeql.yml.github/workflows/react-component-ci.yml.github/workflows/react-doctor.yml.github/workflows/surge-preview.yml.gitignoreREADME.mddocs/index.mdexamples/basic.tsxexamples/collection.tsxexamples/debug.tsxexamples/renderProps.tsxpackage.jsontsconfig.jsonvercel.json
|
Deployment failed with the following error: Learn More: https://vercel.com/react-component?upgradeToPro=build-rate-limit |
|
Deployment failed with the following error: Learn More: https://vercel.com/afc163s-projects?upgradeToPro=build-rate-limit |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|

Summary
Standardize this rc-component repository as part of the Ant Design rc-component maintenance sweep.
Tracking issue: ant-design/ant-design#58514
Scope
types: "./es/index.d.ts", publishConfig, and release flow through@rc-component/np.react-component/rc-test/.github/workflows/test-utoo.yml@mainworkflow, React Doctor, Codecov, CodeQL, updated GitHub Actions versions, and guarded Surge preview fallback.docs-distoutput and remove legacynow-build/ Cloudflare Pages residue.Notes
secrets: inheritis kept untilreact-component/rc-test#176is merged, then it can be narrowed to explicitCODECOV_TOKENforwarding.