Repository navigation
[TimePicker] Update documentation and add validation for StartHour, EndHour and Increment - #5346
Merged
Denis Voituron (dvoituron) merged 2 commits intoSep 27, 2026
Merged
Conversation
Denis Voituron (dvoituron)
requested a review
from Vincent Baaij (vnbaaij)
as a code owner
September 26, 2026 08:12
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Address the two moderate validation/range issues and clarify the Native-mode documentation.
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Updates FluentTimePicker with parameter validation, native input constraints, tests, and documentation clarifications.
Changes:
- Validates hour ranges and increments.
- Applies native
min,max, andstepconstraints. - Adds tests and updates Native-mode documentation.
| File | Summary |
|---|---|
tests/Core/Components/DateTimes/FluentTimePickerTests.razor |
Adds coverage for constraints, boundaries, and invalid parameters. |
src/Core/Components/DateTime/FluentTimePicker.razor.cs |
Adds validation and native constraint handling. Moderate issues remain with StartHour upper-bound validation and excluding the 24:00 endpoint. |
examples/Demo/FluentUI.Demo.Client/Documentation/Components/DateTime/TimePicker/FluentTimePicker.md |
Updates Native-mode documentation. A nit remains regarding documentation of parameter-based constraints. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 98.4%
Microsoft.FluentUI.AspNetCore.Components.Charts - 100%
|
Denis Voituron (dvoituron)
enabled auto-merge (squash)
September 26, 2026 08:22
Closed
2 tasks
Vincent Baaij (vnbaaij)
approved these changes
Sep 27, 2026
Denis Voituron (dvoituron)
deleted the
users/dvoituron/fix-timepicker-max
branch
September 27, 2026 05:20
This was referenced Oct 14, 2026
Closed
Closed
Merged
This was referenced Oct 19, 2026
Closed
Closed
This was referenced Oct 28, 2026
Merged
Closed
This was referenced Nov 9, 2026
This was referenced Nov 19, 2026
Merged
Closed
This was referenced Nov 27, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

[TimePicker] Update documentation and add validation for StartHour, EndHour and Increment
Enhance the TimePicker component by updating documentation to clarify limitations and adding validation for
StartHour,EndHour, andIncrementparameters.This change ensures that invalid values throw appropriate exceptions, improving the robustness of the component.
Example