Skip to content

chore: standardize repository setup#1491

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

chore: standardize repository setup#1491
afc163 wants to merge 29 commits into
masterfrom
codex/standardize-rc-config

Conversation

@afc163

@afc163 afc163 commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Redesign README with badges, scoped install usage, Ant Design ecosystem note, development checks, and release instructions.
  • Standardize rc repository config: dumi output, Vercel preview, Surge fallback, React Doctor, test-utoo workflow, CodeQL, FUNDING, tsconfig, and package scripts.
  • Move demo imports from legacy rc-* packages to @rc-component/* packages without changing component runtime behavior.

Verification

  • npm install --ignore-scripts --no-audit --loglevel=warn
  • npm run tsc
  • npm run lint (passes with existing warnings)
  • npm test
  • npm run build
  • npm run compile (passes with existing warnings)
  • npx vercel build --yes

Refs ant-design/ant-design#58514

Summary by CodeRabbit

  • 新功能
    • 新增 PR 阶段的 Surge Preview 与 react-doctor 自动诊断,并启用并发与权限控制。
  • 文档
    • 重写 README 结构;首页文案与使用示例调整为 TypeScript。
    • 文档示例与说明中的表格/相关组件引用统一迁移到新版包路径。
  • 优化
    • 文档构建与部署产物目录调整为 docs-dist(同时更新 Dumi/忽略/部署配置)。
  • 维护
    • 精简资助配置;更新 CI(触发分支、CodeQL/Dependabot)与 TypeScript/测试覆盖范围策略。

@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)
table Ready Ready Preview, Comment Jun 28, 2026 4:35am

@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

更新了构建与部署配置、示例导入和文档内容,并同步调整了依赖策略与 GitHub Actions 配置。

Changes

构建、示例与文档迁移

Layer / File(s) Summary
构建输出与别名
.dumirc.ts, tsconfig.json, vercel.json, vitest.config.mts, .gitignore
Dumi、TypeScript、Vercel、Vitest 和忽略规则更新为新的输出目录与路径映射。
包脚本与依赖
package.json
package.json 的描述、脚本和开发依赖列表切换到新的表格包组合。
基础示例导入
docs/examples/*
多数基础示例将 Table 和相关类型的导入从 rc-table 切换到 @rc-component/table
特殊示例
docs/examples/aria.tsx, docs/examples/dropdown.tsx, docs/examples/ellipsis-custom-tooltip.tsx, docs/examples/measureRowRender.tsx, docs/examples/stickyHeaderAndSummary.tsx
ARIA、measureRowRender、sticky summary 和下拉/tooltip 示例切到新包,同时保留各自的渲染行为。
首页与说明文案
docs/index.md, README.md, README.zh-CN.md
首页 hero、README 与中文文档更新为新的产品表述、使用说明和本地发布信息。

仓库自动化

Layer / File(s) Summary
依赖策略
.github/FUNDING.yml, .github/dependabot.yml
FUNDING 和 Dependabot 的资助与忽略规则更新为新的依赖名称。
工作流更新
.github/workflows/codeql.yml, .github/workflows/main.yml, .github/workflows/react-doctor.yml, .github/workflows/surge-preview.yml
CodeQL、测试、react-doctor 和 Surge Preview 工作流更新了触发条件、权限、固定引用和执行步骤。

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

  • react-component/table#1347: 该 PR 也触及 docs/examples/measureRowRender.tsx,且与 measureRowRender 相关的表格示例/实现同一条代码路径有关。

Suggested reviewers

  • zombieJ

Poem

🐰 兔耳一抖换新包,
docs-dist 落地草更高。
示例齐刷刷改门牌,
CI 也把新路跑。

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题与本次仓库配置、文档和工具链标准化的主要变更一致。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ 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-table-preview-pr-1491.surge.sh (may be unavailable)
📝 Commitebf5643
🪵 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-table-preview-pr-1491.surge.sh
           size: 226 files, 2.7 MB

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

🤖 Powered by surge-preview

@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 migrates the repository and its examples from the legacy rc-table and related rc- packages to the scoped @rc-component/table, @rc-component/menu, @rc-component/dropdown, and @rc-component/tooltip packages. It also updates configuration files (such as .dumirc.ts, tsconfig.json, package.json, and vercel.json) to support the new build and documentation output directory (docs-dist). The reviewer recommends using __dirname with path.resolve in .dumirc.ts to ensure robust path resolution across different execution environments.

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 .dumirc.ts Outdated
@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

React Doctor found 26 issues in 22 files · 26 warnings · score 74 / 100 (Needs work) · vs master

26 warnings

docs/examples/animation.tsx

  • ⚠️ L59 Anchor used as a button anchor-is-valid

docs/examples/childrenIndent.tsx

  • ⚠️ L23 Anchor used as a button anchor-is-valid

docs/examples/className.tsx

  • ⚠️ L34 Anchor used as a button anchor-is-valid

docs/examples/colspan-rowspan-legacy.tsx

  • ⚠️ L29 Anchor used as a button anchor-is-valid
  • ⚠️ L128 Anchor used as a button anchor-is-valid

docs/examples/colspan-rowspan.tsx

  • ⚠️ L23 Anchor used as a button anchor-is-valid
  • ⚠️ L102 Anchor used as a button anchor-is-valid

docs/examples/column-resize.tsx

  • ⚠️ L45 Anchor used as a button anchor-is-valid

docs/examples/dropdown.tsx

  • ⚠️ L87 Anchor used as a button anchor-is-valid

docs/examples/ellipsis-custom-tooltip.tsx

  • ⚠️ L51 Anchor used as a button anchor-is-valid

docs/examples/ellipsis.tsx

  • ⚠️ L22 Anchor used as a button anchor-is-valid

docs/examples/expandIcon.tsx

  • ⚠️ L25 Anchor used as a button anchor-is-valid

docs/examples/expandedRowRender.tsx

  • ⚠️ L51 Anchor used as a button anchor-is-valid

docs/examples/fixedColumnsAndHeader.tsx

  • ⚠️ L58 Anchor used as a button anchor-is-valid

docs/examples/hide-header.tsx

  • ⚠️ L15 Anchor used as a button anchor-is-valid

docs/examples/jsx.tsx

  • ⚠️ L22 Anchor used as a button anchor-is-valid

docs/examples/key.tsx

  • ⚠️ L51 Anchor used as a button anchor-is-valid

docs/examples/no-data.tsx

  • ⚠️ L14 Anchor used as a button anchor-is-valid

docs/examples/react-dnd.tsx

  • ⚠️ L127 Anchor used as a button anchor-is-valid

docs/examples/scrollY.tsx

  • ⚠️ L29 Anchor used as a button anchor-is-valid
  • ⚠️ L36 Anchor used as a button anchor-is-valid

docs/examples/stickyHeader.tsx

  • ⚠️ L68 preventDefault on a form or link no-prevent-default
  • ⚠️ L68 Anchor used as a button anchor-is-valid

docs/examples/styled-components.tsx

  • ⚠️ L16 Anchor used as a button anchor-is-valid

docs/examples/subTable.tsx

  • ⚠️ L64 Anchor used as a button anchor-is-valid

docs/examples/title-and-footer.tsx

  • ⚠️ L40 Anchor used as a button anchor-is-valid

Reviewed by React Doctor for commit ebf5643. See inline comments for fixes.

@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 99.04%. Comparing base (b611eb2) to head (ebf5643).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1491      +/-   ##
==========================================
+ Coverage   96.10%   99.04%   +2.93%     
==========================================
  Files          57       45      -12     
  Lines        3442     1362    -2080     
  Branches      639      409     -230     
==========================================
- Hits         3308     1349    -1959     
+ Misses        129       13     -116     
+ Partials        5        0       -5     

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

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

Inline comments:
In @.github/workflows/codeql.yml:
- Around line 27-43: The CodeQL workflow is pinned to an older fixed commit for
github/codeql-action in Initialize CodeQL, Autobuild, and Perform CodeQL
Analysis; update those action references to the latest stable v4 release and
keep them pinned to the corresponding official commit SHA. Use the
github/codeql-action entries in the workflow as the places to change, and make
sure all three steps stay on the same updated SHA for consistency.

In `@docs/examples/stickyHeaderAndSummary.tsx`:
- Line 3: 示例里的默认导入 Table 上没有挂载 Summary,导致 Table.Summary、Table.Summary.Row 和
Table.Summary.Cell 运行时为 undefined;请在 stickyHeaderAndSummary.tsx 中改用命名导入的
Summary(以及需要的话 Column/ColumnGroup),并把所有 Table.Summary
相关引用替换为该命名成员,或者如果要保留默认导入用法,则在 src/index.ts 中把 Summary 显式挂到默认导出的 Table 对象上。
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8ffe63fb-b76a-408e-b18c-57dc3b7d2eee

📥 Commits

Reviewing files that changed from the base of the PR and between b611eb2 and cd0a3b2.

📒 Files selected for processing (63)
  • .dumirc.ts
  • .github/FUNDING.yml
  • .github/dependabot.yml
  • .github/workflows/codeql.yml
  • .github/workflows/main.yml
  • .github/workflows/react-doctor.yml
  • .github/workflows/surge-preview.yml
  • .gitignore
  • README.md
  • docs/examples/animation.tsx
  • docs/examples/aria.tsx
  • docs/examples/caption.tsx
  • docs/examples/childrenIndent.tsx
  • docs/examples/className.tsx
  • docs/examples/click-summary-row.tsx
  • docs/examples/colspan-rowspan-legacy.tsx
  • docs/examples/colspan-rowspan.tsx
  • docs/examples/column-hidden.tsx
  • docs/examples/column-resize.tsx
  • docs/examples/components.tsx
  • docs/examples/dropdown.tsx
  • docs/examples/ellipsis-custom-tooltip.tsx
  • docs/examples/ellipsis.tsx
  • docs/examples/expandIcon.tsx
  • docs/examples/expandedRowClassName.tsx
  • docs/examples/expandedRowRender.tsx
  • docs/examples/expandedSticky.tsx
  • docs/examples/fixedColumns-auto-height.tsx
  • docs/examples/fixedColumns-resize.tsx
  • docs/examples/fixedColumns.tsx
  • docs/examples/fixedColumnsAndHeader.tsx
  • docs/examples/fixedColumnsAndHeaderRtl.tsx
  • docs/examples/grouping-columns-hidden.tsx
  • docs/examples/grouping-columns.tsx
  • docs/examples/hide-header.tsx
  • docs/examples/hover-perf.tsx
  • docs/examples/jsx.tsx
  • docs/examples/key.tsx
  • docs/examples/measureRowRender.tsx
  • docs/examples/nested.tsx
  • docs/examples/no-data.tsx
  • docs/examples/react-dnd.tsx
  • docs/examples/row-hoverable.tsx
  • docs/examples/rowAndCellClick.tsx
  • docs/examples/scopeCol.tsx
  • docs/examples/scopeRow.tsx
  • docs/examples/scrollX.tsx
  • docs/examples/scrollXY.tsx
  • docs/examples/scrollY.tsx
  • docs/examples/shadow.tsx
  • docs/examples/simple.tsx
  • docs/examples/stickyHeader.tsx
  • docs/examples/stickyHeaderAndSummary.tsx
  • docs/examples/styled-components.tsx
  • docs/examples/subTable.tsx
  • docs/examples/title-and-footer.tsx
  • docs/examples/virtual-list-grid.tsx
  • docs/examples/virtual-list.tsx
  • docs/index.md
  • package.json
  • tsconfig.json
  • vercel.json
  • vitest.config.mts

Comment thread .github/workflows/codeql.yml Outdated
Comment thread docs/examples/stickyHeaderAndSummary.tsx Outdated
@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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

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

Inline comments:
In @.github/workflows/surge-preview.yml:
- Around line 27-31: The Surge preview job is referencing secrets.SURGE_TOKEN
directly in step conditions, which can cause workflow validation failure; move
SURGE_TOKEN to the job-level env for this workflow and update the Build preview
and afc163/surge-preview steps to gate on env.SURGE_TOKEN instead. Use the
existing surge-preview job and the two conditional steps as the place to apply
the change.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b8a87c7b-852a-41ea-ba61-e4acf9b2cd87

📥 Commits

Reviewing files that changed from the base of the PR and between 1ff1d63 and 20fec19.

📒 Files selected for processing (2)
  • .github/workflows/surge-preview.yml
  • README.md
✅ Files skipped from review due to trivial changes (1)
  • README.md

Comment thread .github/workflows/surge-preview.yml Outdated
@socket-security

socket-security Bot commented Jun 27, 2026

Copy link
Copy Markdown

@socket-security

socket-security Bot commented Jun 27, 2026

Copy link
Copy Markdown

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.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm @emnapi/runtime is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: ?npm/vitest@4.1.9npm/@emnapi/runtime@1.11.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@emnapi/runtime@1.11.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm data-urls is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: ?npm/jsdom@29.1.1npm/data-urls@7.0.0

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/data-urls@7.0.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm jsdom is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: package.jsonnpm/jsdom@29.1.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/jsdom@29.1.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm jsdom is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: package.jsonnpm/jsdom@29.1.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/jsdom@29.1.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

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