chore: standardize repository maintenance - #48
Conversation
|
Warning Review limit reached
Next review available in: 59 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. 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 refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (22)
✨ 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 @@
## main #48 +/- ##
=======================================
Coverage 57.49% 57.49%
=======================================
Files 12 12
Lines 527 527
Branches 153 153
=======================================
Hits 303 303
Misses 162 162
Partials 62 62 ☔ 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's configuration, documentation, and dependencies. Key changes include adding a funding configuration, expanding Dependabot updates, rewriting the English README, adding a Chinese README, migrating docs/shadow-dom.tsx to React 18's createRoot, updating package.json scripts and dependencies, and adding a Vercel configuration. Feedback focuses on ensuring consistency by using pnpm instead of npm across the READMEs, package.json, and vercel.json. Additionally, it is recommended to clean up the redundant API header in the README and properly unmount the React root in docs/shadow-dom.tsx to prevent memory leaks.
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.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR standardizes repository maintenance and project metadata across docs, tooling, CI, and deployment previews for @rc-component/dom-align, aligning it with the Ant Design / rc-component ecosystem patterns (release flow, GitHub workflows, Dependabot, etc.).
Changes:
- Refresh English/Chinese READMEs and adjust package metadata/scripts (including switching release to
rc-np). - Replace legacy lint config with ESLint flat config, adjust TypeScript config, and modernize example/demo code for React 18+ APIs.
- Align GitHub maintenance automation (test workflow reuse, CodeQL, Dependabot grouping, Surge preview, funding) and replace legacy deployment config (
now.json→vercel.json).
Reviewed changes
Copilot reviewed 20 out of 22 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| vercel.json | Adds Vercel build/output configuration for the docs site. |
| tsconfig.json | Updates TS compiler settings and program include patterns. |
| README.zh-CN.md | Adds refreshed Simplified Chinese README with standardized sections. |
| README.md | Rewrites README layout/sections and updates commands/release docs. |
| package.json | Updates package metadata, scripts, and dev tooling dependencies. |
| now.json | Removes legacy Now/Vercel v2 config. |
| global.d.ts | Adds a global *.css module declaration. |
| eslint.config.mjs | Introduces ESLint flat-config setup (React/TS/Jest rules). |
| docs/shadow-dom.tsx | Modernizes shadow DOM demo (refs + createRoot + cleanup). |
| cypress.config.ts | Removes TS Cypress config. |
| cypress.config.js | Adds JS Cypress config with explicit webpack+babel devServer setup. |
| app/shadow-dom/page.tsx | Improves typing and non-null assertions for refs in demo page. |
| app/fail/page.tsx | Improves typing and non-null assertions for refs in demo page. |
| app/body-overflow/page.tsx | Improves typing for refs/timers and non-null assertions. |
| .github/workflows/test.yml | Adds standardized reusable test workflow invocation. |
| .github/workflows/surge-preview.yml | Adds Surge preview workflow gated by SURGE_TOKEN. |
| .github/workflows/react-doctor.yml | Adds React Doctor workflow for PR/push analysis. |
| .github/workflows/codeql.yml | Adds CodeQL scanning workflow. |
| .github/workflows/ci.yml | Removes legacy CI workflow. |
| .github/FUNDING.yml | Adds funding links for GitHub/OpenCollective. |
| .github/dependabot.yml | Standardizes Dependabot schedules and groups updates. |
| .eslintrc.js | Removes legacy ESLint config in favor of flat config. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
@rc-component/np; remove legacy Now configuration where present.Refs ant-design/ant-design#58514
Test
npm run lint\n-npm run tsc\n-npm run compile\n-npm run build\n-npm testwas blocked locally because Cypress binary download failed in this environment.\n-git diff --check