pagination icon indicating copy to clipboard operation
pagination copied to clipboard

Pagination size selector props are grouped with the `pageSizeChanger` prop on `rc-pagination`

Open prakashks20 opened this issue 1 year ago • 2 comments

Ant Design Pagination enhanced feature added in https://github.com/ant-design/ant-design/pull/46757 depends on this PR changes

prakashks20 avatar Jul 25 '24 03:07 prakashks20

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pagination ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 22, 2024 0:48am

vercel[bot] avatar Jul 25 '24 03:07 vercel[bot]

Waiting for the code review of this pull request. This pull request depends on fixing the Ant Design pagination issue

prakashmallow avatar Jul 31 '24 02:07 prakashmallow

@afc163 Code review changes have been addressed. Please review these changes.

prakashmallow avatar Aug 05 '24 15:08 prakashmallow

@afc163 @MadCcc @zombieJ Waiting for the changes in this pull request to fix the Antd pagination size selector issue. Could you please review it as soon as possible?

prakashks20 avatar Aug 07 '24 16:08 prakashks20

[!WARNING]

Rate limit exceeded

@afc163 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 21 minutes and 41 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between ab723a5d12c33dc7ae0f25b194d8ad2cadc47e56 and f4c6b4bca8c3a89bdaff408b4a9426244cd8f586.

Walkthrough

此次更改涉及多个文件,主要集中在对分页组件的API文档、示例代码和功能的增强。README.md文件中的API参数描述得到了扩展和格式化,以提高可读性。新增的showSizeChanger.md文件提供了关于大小更改功能的演示文档。同时,showSizeChanger.tsx文件展示了如何在React应用中使用rc-pagination库。Options.tsxPagination.tsx文件中引入了新的属性和逻辑,以支持动态行为。最后,新增的测试文件确保了这些功能的正确性。

Changes

文件 更改摘要
README.md 更新showSizeChanger参数描述,增强API文档的可读性。
docs/demo/showSizeChanger.md 新增文档文件,包含关于大小更改功能的演示。
docs/examples/showSizeChanger.tsx 新增React组件,展示rc-pagination库的用法,包含不同配置的分页实例。
src/Options.tsx 更新OptionsProps接口,新增showSizeChanger属性。
src/Pagination.tsx 修改showSizeChanger逻辑,支持动态设置pageSizeOptions
package.json 新增依赖@testing-library/user-event,版本^14.5.2
tests/options.test.tsx WrapperOptions组件中新增showSizeChanger属性。
tests/sizer.test.tsx 新增测试用例,验证Pagination组件的大小更改功能。

Poem

在兔子洞里欢跳跃,
新功能来真不小。
大小更改随心选,
文档清晰乐无边。
测试确保无烦恼,
兔子欢歌庆变化。 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

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.

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

[!TIP]

Early access features: enabled

We are currently testing new code review model(s) that may lead to higher noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience.

Note:

  • You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.

coderabbitai[bot] avatar Sep 22 '24 09:09 coderabbitai[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.75%. Comparing base (0176824) to head (f4c6b4b). Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #597      +/-   ##
==========================================
+ Coverage   98.72%   98.75%   +0.03%     
==========================================
  Files           3        3              
  Lines         314      322       +8     
  Branches      141      149       +8     
==========================================
+ Hits          310      318       +8     
  Misses          4        4              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Sep 22 '24 09:09 codecov[bot]

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@testing-library/[email protected] Transitive: environment, eval +21 3.6 MB testing-library-bot
npm/[email protected] filesystem Transitive: environment +40 30.1 MB simenb
npm/[email protected] Transitive: environment, filesystem, shell +26 6.13 MB sindresorhus
npm/[email protected] environment, filesystem Transitive: eval, shell, unsafe +62 10.3 MB eslintbot
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +273 578 MB yifankakaxi
npm/[email protected] filesystem, shell Transitive: environment +22 944 kB tschaub
npm/[email protected] None +1 510 kB isaacs
npm/[email protected] environment, filesystem, shell 0 4.03 kB typicode
npm/[email protected] None 0 8.38 kB keyanzhang
npm/[email protected] eval, filesystem Transitive: environment +2 2.91 MB matthew-dean
npm/[email protected] Transitive: environment, filesystem, shell +13 540 kB okonet
npm/[email protected] Transitive: environment, filesystem, shell +24 2.07 MB sindresorhus
npm/[email protected] environment, filesystem, unsafe 0 7.7 MB prettier-bot
npm/[email protected] None +1 448 kB afc163, chenshuai2144, madccc, ...6 more
npm/[email protected] environment, filesystem Transitive: eval, shell, unsafe +75 14.7 MB zombiej
npm/[email protected] environment +1 265 kB zombiej
npm/[email protected] environment 0 4.51 MB react-bot
npm/[email protected] environment 0 318 kB react-bot

View full report↗︎

socket-security[bot] avatar Sep 22 '24 12:09 socket-security[bot]