Skip to content

chore: standardize repository config#994

Open
afc163 wants to merge 5 commits into
masterfrom
codex/standardize-rc-config
Open

chore: standardize repository config#994
afc163 wants to merge 5 commits into
masterfrom
codex/standardize-rc-config

Conversation

@afc163

@afc163 afc163 commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Redesign README around @rc-component/tabs, including badges, install, usage, API, development, and release notes.
  • Standardize repository automation with test-utoo, CodeQL, React Doctor, Vercel, Surge fallback, Funding, and Dependabot.
  • Remove legacy now-build, align dumi output to docs-dist, and update docs examples to import from the scoped package entry.

Test Plan

  • npx prettier --write --ignore-unknown README.md package.json tsconfig.json .dumirc.ts .github/dependabot.yml .github/workflows/*.yml .github/FUNDING.yml docs/index.md docs/examples/*.tsx vercel.json
  • npm run tsc
  • npm test -- --runInBand
  • npm run build
  • npx vercel build --yes
  • npm run lint

Refs ant-design/ant-design#58514

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tabs Ready Ready Preview, Comment Jun 26, 2026 5:43pm

@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@afc163, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 3 minutes and 23 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 credits.

🚦 How do rate 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.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 59c30e7c-86ff-4640-8e40-5ea75ef61b0d

📥 Commits

Reviewing files that changed from the base of the PR and between 8c7ea8d and 5498027.

📒 Files selected for processing (25)
  • .dumirc.ts
  • .github/FUNDING.yml
  • .github/dependabot.yml
  • .github/workflows/codeql.yml
  • .github/workflows/main.yml
  • .github/workflows/react-component-ci.yml
  • .github/workflows/react-doctor.yml
  • .github/workflows/surge-preview.yml
  • .gitignore
  • README.md
  • docs/examples/animated.tsx
  • docs/examples/basic.tsx
  • docs/examples/dynamic-extra.tsx
  • docs/examples/editable.tsx
  • docs/examples/extra.tsx
  • docs/examples/indicator.tsx
  • docs/examples/mix.tsx
  • docs/examples/overflow.tsx
  • docs/examples/position.tsx
  • docs/examples/renderTabBar-dragable.tsx
  • docs/examples/renderTabBar-sticky.tsx
  • docs/index.md
  • package.json
  • tsconfig.json
  • vercel.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/standardize-rc-config

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

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

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

❌ Deploy failed

PR preview ❌ Failed ❌ Failed
🔗 Preview https://react-component-tabs-preview-pr-994.surge.sh (may be unavailable)
📝 Commit5498027
🪵 LogsView logs
📋 Build log (last lines)
npm warn exec The following package was not found and will be installed: surge@0.27.4

   Running as afc163@gmail.com (Student)

        project: ./docs-dist
         domain: react-component-tabs-preview-pr-994.surge.sh
           size: 67 files, 1.8 MB

   Aborted - you do not have permission to publish to react-component-tabs-preview-pr-994.surge.sh

🤖 Powered by surge-preview

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 5498027.

@socket-security

socket-security Bot commented Jun 26, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​cross-env@​7.0.310010010082100

View full report

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the repository configuration, documentation, and build scripts to support Dumi-based documentation, Vercel deployments, and cleaner package distribution. Key changes include rewriting the README, updating example imports, configuring path aliases in .dumirc.ts and tsconfig.json, and adjusting package.json scripts. Feedback on these changes suggests packaging the entire assets directory to preserve .less files for consumers, restoring linting and type-checking in the prepublishOnly script, and optimizing the Vercel build command to only build the documentation.

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.

Comment thread package.json
Comment on lines 22 to 26
"files": [
"assets/*.css",
"lib",
"es",
"assets/index.css"
"es"
],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

By restricting the packaged assets to only "assets/*.css", the source .less files (such as assets/index.less) will be excluded from the published npm package.

In the Ant Design ecosystem, consumers often import the source .less files directly (e.g., @import "~@rc-component/tabs/assets/index.less";) to customize theme variables. Excluding them will break these consumer builds.

Please include the entire assets directory to ensure both .css and .less files are packaged.

Suggested change
"files": [
"assets/*.css",
"lib",
"es",
"assets/index.css"
"es"
],
"files": [
"assets",
"lib",
"es"
],

Comment thread package.json
"lint": "eslint src/ docs/examples/ --ext .tsx,.ts,.jsx,.js",
"now-build": "npm run build",
"prepublishOnly": "npm run lint && npm run test && npm run compile && rc-np",
"prepublishOnly": "npm run compile && rc-np",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Removing npm run lint and npm run test (or npm run tsc) from prepublishOnly removes the safety checks that prevent publishing broken, unlinted, or type-incorrect code to npm.

Since this PR introduces a new "tsc" script, it is highly recommended to run both lint and tsc as part of the prepublish checks to ensure code quality and type safety before publishing.

Suggested change
"prepublishOnly": "npm run compile && rc-np",
"prepublishOnly": "npm run lint && npm run tsc && npm run compile && rc-np",

Comment thread vercel.json
{
"framework": "umijs",
"installCommand": "npm install",
"buildCommand": "npm run build",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

On Vercel, you only need to build the documentation site (docs-dist).

Currently, npm run build runs both npm run compile (which compiles the library to lib and es for npm publishing) and npm run docs:build. Since .dumirc.ts configures aliases to resolve @rc-component/tabs directly from the src directory, compiling the library is redundant and unnecessarily slows down Vercel deployment builds.

Optimizing this to "npm run docs:build" will speed up Vercel builds.

Suggested change
"buildCommand": "npm run build",
"buildCommand": "npm run docs:build",

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.98%. Comparing base (8c7ea8d) to head (5498027).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #994   +/-   ##
=======================================
  Coverage   98.98%   98.98%           
=======================================
  Files          18       18           
  Lines         788      788           
  Branches      235      235           
=======================================
  Hits          780      780           
  Misses          8        8           

☔ View full report in Codecov by Harness.
📢 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.

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/afc163s-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/react-component?upgradeToPro=build-rate-limit

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.

1 participant