Skip to content

Conversation

@simonguo
Copy link
Member

@simonguo simonguo commented Dec 5, 2025

#4399

  • Add onAmPmToggle handler in DateInput component
  • Add onAmPmToggle handler in DateRangeInput component
  • Update useKeyboardInputEvent to allow 'a' and 'p' keys for AM/PM field
  • Add unit tests for AM/PM toggle functionality in both components
  • Pressing 'a' key switches to AM when in PM
  • Pressing 'p' key switches to PM when in AM

- Add onAmPmToggle handler in DateInput component
- Add onAmPmToggle handler in DateRangeInput component
- Update useKeyboardInputEvent to allow 'a' and 'p' keys for AM/PM field
- Add unit tests for AM/PM toggle functionality in both components
- Pressing 'a' key switches to AM when in PM
- Pressing 'p' key switches to PM when in AM
@codesandbox
Copy link

codesandbox bot commented Dec 5, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link

vercel bot commented Dec 5, 2025

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

Project Deployment Preview Comments Updated (UTC)
rsuite-main Ready Ready Preview Comment Dec 5, 2025 3:28am
rsuite-storybook Ready Ready Preview Comment Dec 5, 2025 3:28am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
rsuite-v5 Ignored Ignored Dec 5, 2025 3:28am

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 5, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

❌ Patch coverage is 96.96970% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 94.48%. Comparing base (e295873) to head (99c206f).
⚠️ Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
src/DateInput/hooks/useKeyboardInputEvent.ts 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4443      +/-   ##
==========================================
+ Coverage   94.47%   94.48%   +0.01%     
==========================================
  Files         559      559              
  Lines       13740    13773      +33     
  Branches     4081     4091      +10     
==========================================
+ Hits        12981    13014      +33     
  Misses        687      687              
  Partials       72       72              
Flag Coverage Δ
chromium 94.48% <96.96%> (+0.01%) ⬆️
firefox 94.48% <96.96%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@simonguo simonguo merged commit d56468c into main Dec 11, 2025
18 of 22 checks passed
@simonguo simonguo deleted the feat/date-input-ampm-toggle branch December 11, 2025 06:39
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.

2 participants