-
Notifications
You must be signed in to change notification settings - Fork 73
[LG-5532] feat(time-input): Segment state #3386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shaneeza
wants to merge
150
commits into
shaneeza/segment-logic-integration
Choose a base branch
from
LG-5532/segments-display-values-state
base: shaneeza/segment-logic-integration
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[LG-5532] feat(time-input): Segment state #3386
shaneeza
wants to merge
150
commits into
shaneeza/segment-logic-integration
from
LG-5532/segments-display-values-state
Conversation
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
…omponents with context integration
…tate handling in TimeInputInputs component
…segment rules and default values
… support 12/24 hour formats
…cale dependency and enhancing formatting logic
… format output with and without seconds
…meInputDisplayContext
…kMode and size, and add console log for debugging in TimeInputInputs
…omponent, covering rendering, value updates, and keyboard interactions
…omponent, covering rendering, value updates, and keyboard interactions
…12HourFormat prop, replacing TimeSegments with TimeSegment for improved clarity and consistency
…mponents with UTC conversion and logging for better time handling
…comparison logic in useSelectUnit hook
…logic for improved clarity
…alidation and date handling logic, including new utility functions for explicit segment checks
…n TimeInputInputs, removing unnecessary console logs and enhancing segment checks
…ime change checks for improved clarity and accuracy
… segment validation and date handling, enhancing utility functions for better clarity and performance
…d 24 hour formats, improving clarity on explicit value checks and segment validation
…across components, enhancing clarity and organization
…ate and segment updates, enhancing clarity in handling locale and timezone changes
…fygreen-ui into LG-5532/segments-display-values-state
…ting setSegment logic and cleaning up imports
…eparating date and segment change effects for improved clarity and functionality
…SegmentsAndSelectUnit for better clarity on date update logic
…es in useTimeSegmentsAndSelectUnit
… format handling in TimeInputInputs
… up imports in shouldSetValue
…ment handling and improving type safety
…TimeSegmentValidator for clarity and update its usage in isEverySegmentValueExplicit
…eExplicit tests for clarity and consistency
…ce getNewUTCDateFromSegments logic for better clarity
…and adjust related logic in TimeInputInputs and getFormattedDateTimeParts
…t handling and update getNewUTCDateFromSegments to utilize it
…ec for improved readability and consistency
…proving comments and consistency in date conversions
… by renaming timeZone variable for clarity
…rity across various utility tests
…and isSameUTCMonth.spec for better clarity and consistency
… across components
…imeSegmentAndSelectUnit.spec for improved clarity and consistency
… improve test descriptions for clarity
Base automatically changed from
LG-5532/segments-state-utils
to
shaneeza/segment-logic-integration
December 31, 2025 15:40
Contributor
|
Coverage after merging LG-5532/segments-display-values-state into shaneeza/segment-logic-integration will be
Coverage Report for Changed Files
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
✍️ Proposed changes
🎟 Jira ticket: Name of ticket
This PR implements state management for time input segments and the AM/PM select unit. The changes introduce
useTimeSegmentsAndSelectUnit(open to improving this name) hook to manage time segment state, select unit state, and coordinate updates between them while handling timezone and locale changes.This PR is the fourth PR in a chain of PRs
🧪 How to test changes