Skip to content

fix: Table sticky header render blink bug#53803

Merged
afc163 merged 2 commits intomasterfrom
test/table-snapshot
May 12, 2025
Merged

fix: Table sticky header render blink bug#53803
afc163 merged 2 commits intomasterfrom
test/table-snapshot

Conversation

@afc163
Copy link
Copy Markdown
Member

@afc163 afc163 commented May 12, 2025

中文版模板 / Chinese template

🤔 This is a ...

  • 🆕 New feature
  • 🐞 Bug fix
  • 📝 Site / documentation improvement
  • 📽️ Demo improvement
  • 💄 Component style improvement
  • 🤖 TypeScript definition improvement
  • 📦 Bundle size optimization
  • ⚡️ Performance optimization
  • ⭐️ Feature enhancement
  • 🌐 Internationalization
  • 🛠 Refactoring
  • 🎨 Code style optimization
  • ✅ Test Case
  • 🔀 Branch merge
  • ⏩ Workflow
  • ⌨️ Accessibility improvement
  • ❓ Other (about what?)

🔗 Related Issues

  • Describe the source of related requirements, such as links to relevant issue discussions.
  • For example: close #xxxx, fix #xxxx

fix #49099

fix #45964

close #53802

💡 Background and Solution

  • The specific problem to be addressed.
  • List the final API implementation and usage if needed.
  • If there are UI/interaction changes, consider providing screenshots or GIFs.

react-component/table#1267

📝 Change Log

Language Changelog
🇺🇸 English Fix Table header blink issue when sticky is enable.
🇨🇳 Chinese 修复 Table 开启 sticky 时的一个列头渲染闪烁问题。

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 12, 2025

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • components/table/__tests__/__snapshots__/demo-extend.test.ts.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

Summary by CodeRabbit

  • Chores
    • 更新了依赖项“rc-table”的版本至 ~7.50.5。

Walkthrough

此次更改仅更新了 package.json 文件中 rc-table 依赖的版本,从 ~7.50.4 升级到 ~7.50.5,未涉及其他文件或导出实体的变动。

Changes

文件/分组 变更摘要
package.json rc-table 依赖版本从 ~7.50.4 升级到 ~7.50.5

Assessment against linked issues

Objective Addressed Explanation
修复使用 sticky 和 sorter 时,React 18 下通过 useEffect 设置 columns 导致表头 title 闪烁的问题 (#49099)

Suggested labels

skip-verify-files

Suggested reviewers

  • zombieJ

Poem

小兔子跳跃来升级,
rc-table 版本更上一层,
闪烁表头已不再,
体验顺滑如春风。
代码轻盈如兔影,
一行变更,安静无声。
🐇✨


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.
    • Generate unit testing code for this file.
    • 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. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • 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 src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

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

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

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

Documentation and Community

  • 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
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2025

Preview is ready

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2025

👁 Visual Regression Report for PR #53803 Failed ❌

🎯 Target branch: master (f8ea8c6)
📖 View Full Report ↗︎
📖 Alternative Report ↗︎
📊 Summary: 🔄 36 changed

Expected (Branch master) Actual (Current PR) Diff
statistic-timer.compact.png statistic-timer.compact.png statistic-timer.compact.png statistic-timer.compact.png
statistic-timer.compact.png statistic-timer.compact.png statistic-timer.compact.css-var.png statistic-timer.compact.css-var.png
statistic-timer.dark.png statistic-timer.dark.png statistic-timer.dark.png statistic-timer.dark.png
statistic-timer.dark.png statistic-timer.dark.png statistic-timer.dark.css-var.png statistic-timer.dark.css-var.png
statistic-timer.default.png statistic-timer.default.png statistic-timer.default.png statistic-timer.default.png
statistic-timer.default.png statistic-timer.default.png statistic-timer.default.css-var.png statistic-timer.default.css-var.png
table-fixed-columns-header.compact.png table-fixed-columns-header.compact.png table-fixed-columns-header.compact.png table-fixed-columns-header.compact.png
table-fixed-columns-header.compact.png table-fixed-columns-header.compact.png table-fixed-columns-header.compact.css-var.png table-fixed-columns-header.compact.css-var.png

Warning

There are more diffs not shown in the table. Please check the Full Report for details.


Important

There are 36 diffs found in this PR: 🔄 36 changed.
Please check all items:

  • Checked all diffs in the full report
  • Visual diff is acceptable

@petercat-assistant
Copy link
Copy Markdown

Walkthrough

This pull request addresses a bug fix for the Ant Design Table component, specifically resolving a rendering issue where the table header would blink when the sticky header feature was enabled. The fix involves updating the rc-table dependency to version ~7.50.5.

Changes

File Summary
package.json Updated rc-table dependency from ~7.50.4 to ~7.50.5 to fix the sticky header rendering issue.

Comment thread package.json
@coderabbitai coderabbitai Bot requested a review from zombieJ May 12, 2025 06:17
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2025

size-limit report 📦

Path Size
dist/antd.min.js 451.22 KB
dist/antd-with-locales.min.js 538.77 KB

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 12, 2025

@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2025

Bundle Report

Changes will increase total bundle size by 48 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
antd.min-array-push 3.4MB 48 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: antd.min-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
antd-with-locales.min.js 24 bytes 1.86MB 0.0%
antd.min.js 24 bytes 1.55MB 0.0%

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 12, 2025

Deploying ant-design with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2f30f01
Status: ✅  Deploy successful!
Preview URL: https://0186cc0b.ant-design.pages.dev
Branch Preview URL: https://test-table-snapshot.ant-design.pages.dev

View logs

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 12, 2025
@afc163 afc163 changed the title fix: Table sticky header render issue fix: Table sticky header render blink bug May 12, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (f8ea8c6) to head (2f30f01).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #53803   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          774       774           
  Lines        14005     14005           
  Branches      3705      3705           
=========================================
  Hits         14005     14005           

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

@afc163 afc163 merged commit 3f9244b into master May 12, 2025
50 checks passed
@afc163 afc163 deleted the test/table-snapshot branch May 12, 2025 06:47
EmilyyyLiu pushed a commit to EmilyyyLiu/ant-design that referenced this pull request May 15, 2025
@PeachScript PeachScript mentioned this pull request May 19, 2025
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer skip-verify-files

Projects

None yet

3 participants