-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Refactor DateTime selection to use serialized model (#401)
### TL;DR Updated the date/time selector to pass structured data instead of formatted strings between screens. ### What changed? - Modified `DateTimeSelectorScreen` to pass `DateTimeSelectionItem` objects instead of formatted strings - Added JSON serialization/deserialization support for `DateTimeSelectionItem` - Updated `TimeTableScreen` and `TimeTableDestination` to handle the new structured data format - Added a TODO for handling initial date/time data in the selector screen ### How to test? 1. Navigate to the time table screen 2. Click on the date/time selector 3. Select different dates and times 4. Verify the selected date/time appears correctly on the time table screen 5. Verify the selection persists after configuration changes ### Why make this change? Using structured data instead of formatted strings provides better type safety and flexibility in handling date/time selections. This change also makes it easier to modify the date/time display format without changing the underlying data structure.
- Loading branch information
1 parent
45e1e6b
commit 0f4a628
Showing
4 changed files
with
33 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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