Skip to content

feat(ConfigProvider,DatePicker,TimePicker): support rangePicker.separator config - #56499

Merged
zombieJ merged 6 commits into
ant-design:featurefrom
guoyunhe:feature-date-picker-separator
Jan 16, 2026
Merged

zombieJ merged 6 commits into
ant-design:featurefrom
guoyunhe:feature-date-picker-separator

Conversation

@guoyunhe

@guoyunhe guoyunhe commented Jan 6, 2026 •

Copy link
Copy Markdown
Contributor

中文版模板 / 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

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

📝 Change Log

Language Changelog
🇺🇸 English feat(ConfigProvider,DatePicker,TimePicker): support rangePicker.separator config
🇨🇳 Chinese feat(ConfigProvider,DatePicker,TimePicker): 支持 rangePicker.separator 配置

@bolt-new-by-stackblitz

Copy link
Copy Markdown

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

@coderabbitai

coderabbitai Bot commented Jan 6, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

@github-actions

github-actions Bot commented Jan 6, 2026 •

Copy link
Copy Markdown
Contributor

Preview is ready

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @guoyunhe, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new feature that allows for global customization of the separator element within RangePicker components through the ConfigProvider. This provides a centralized way to define the visual separator, enhancing consistency and flexibility across applications using the component library.

Highlights

  • ConfigProvider Extension: The ConfigProvider now supports a new separator configuration for RangePicker components, allowing global customization of the separator element.
  • Type Definition Update: The RangePickerConfig type in components/config-provider/context.ts has been updated to include the separator property, reflecting the new configuration option.
  • Documentation Updates: Both English and Chinese documentation for ConfigProvider have been updated to reflect the new rangePicker.separator option and its availability from version 6.2.0.
  • RangePicker Implementation: The generateRangePicker.tsx file has been modified to consume the separator prop, prioritizing the component's direct prop, then the ConfigProvider's setting, and falling back to the default SwapRightOutlined icon.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@github-actions

github-actions Bot commented Jan 6, 2026 •

Copy link
Copy Markdown
Contributor

👁 Visual Regression Report for PR #56499 Failed ❌

🎯 Target branch: feature (7d35e11)
📖 View Full Report ↗︎
📖 Alternative Report ↗︎
📊 Summary: 🔄 1 changed

Expected (Branch feature) Actual (Current PR) Diff
table-sticky.default.png table-sticky.default.png table-sticky.default.png table-sticky.default.png

Important

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

  • Visual diff is acceptable

@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 adds support for configuring the separator for RangePicker via ConfigProvider. The changes look good, including updates to types and documentation. However, I've found a logic issue in generateRangePicker.tsx where using the nullish coalescing operator (??) leads to incorrect behavior when null is passed as a separator. null should be treated as a valid value to render no separator, but the current implementation falls back to the default icon. I've left two comments with suggestions to fix this by checking for undefined instead.

@pkg-pr-new

pkg-pr-new Bot commented Jan 6, 2026 •

Copy link
Copy Markdown

@guoyunhe guoyunhe changed the title feat(ConfigProvider): support rangePicker.separator config feat(ConfigProvider,DatePicker,TimePicker): support rangePicker.separator config Jan 6, 2026
@guoyunhe guoyunhe mentioned this pull request Jan 6, 2026
7 of 52 tasks
@codecov

codecov Bot commented Jan 9, 2026 •

Copy link
Copy Markdown

Bundle Report

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

Detailed changes
Bundle name Size Change
antd.min-array-push 3.86MB 62 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 31 bytes 2.12MB 0.0%
antd.min.js 31 bytes 1.73MB 0.0%

Files in antd-with-locales.min.js:

  • ./components/config-provider/context.ts → Total Size: 1.93kB

Files in antd.min.js:

  • ./components/config-provider/context.ts → Total Size: 1.93kB

@codecov

codecov Bot commented Jan 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7d35e11) to head (2c81516).
⚠️ Report is 14 commits behind head on feature.

Additional details and impacted files
@@            Coverage Diff            @@
##           feature    #56499   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          807       807           
  Lines        14926     14928    +2     
  Branches      3936      3938    +2     
=========================================
+ Hits         14926     14928    +2     

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

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jan 16, 2026
@zombieJ
zombieJ merged commit 18ed518 into ant-design:feature Jan 16, 2026
38 checks passed
@guoyunhe
guoyunhe deleted the feature-date-picker-separator branch January 16, 2026 07:17
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants