Repository navigation
Stabilize picker format and semantics API - #104
Merged
Merged
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR executes a comprehensive API refactoring across the datetime picker library, replacing the "display/accessibility" configuration model with a "format/semantics" model. The changes affect type definitions, composable signatures, validation logic, tests, sample apps, and public API surfaces. ChangesPicker API Model & Implementation Refactoring
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
|
kez-lab
force-pushed
the
feature/stabilize-picker-api
branch
2 times, most recently
from
May 30, 2026 00:09
7d7bf38 to
4a20e15
Compare
kez-lab
force-pushed
the
feature/stabilize-picker-api
branch
from
May 30, 2026 00:12
4a20e15 to
c7f66b0
Compare
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.
Summary
PickerItemFormat, whilePickerSemanticsis non-generic and handles labels/actions only.remember/derivedStateOf, remove deadcalculateTimeandPickerStyle.verticalAlignment, and move test-only validation overloads into commonTest helpers.TimePickerfast path so already-valid selections do not callcoerceTime()on every item change.AGENTS.mdwith maintainer rules from this review: measure before bespoke performance machinery, test non-standard invalidation logic, align shared invariants, and red-team PRs before review.Breaking Changes
PickerItemText->PickerItemFormat;*Display->*Format;PickerAccessibility/*Accessibility->PickerSemantics/*Semantics.displayparameters are nowformat;accessibilityparameters are nowsemantics.Validation
./gradlew :datetimepicker:compileKotlinMetadata --no-daemon./gradlew :datetimepicker:testDebugUnitTest :datetimepicker:assembleDebugAndroidTest :sample:assembleDebugAndroidTest --no-daemon./gradlew :sample:compileKotlinDesktop :datetimepicker:checkLegacyAbi --no-daemon./gradlew :datetimepicker:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.kez.picker.PickerFormatAndroidTest --no-daemon./gradlew :sample:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.kez.picker.sample.SampleAppSmokeAndroidTest#timePickerMenuAction_opensTimePickerSampleAndRendersDefaultTab --no-daemongit diff --checkSummary by CodeRabbit
Release Notes
New Features
Breaking Changes
display/accessibilityparameters withformat/semanticsacross all picker components.calculateTime()utility function andPickerStyle.verticalAlignmentconfiguration.Documentation