Skip to content
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

front: use Date in TrainScheduleWithDetails #9518

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

emersion
Copy link
Member

@emersion emersion commented Oct 30, 2024

Instead of passing around formatted strings, pass a Date object. That way we don't need to undo the formatting in TimetableTrainCard later on, and we get improved type safety.

No behavior change intended.

@emersion emersion requested review from clarani and Akctarus October 30, 2024 09:15
@emersion emersion requested a review from a team as a code owner October 30, 2024 09:15
Copy link
Contributor

@Akctarus Akctarus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested, LGTM, nice refactor :)

Copy link
Contributor

@theocrsb theocrsb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and tested!

Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

Instead of passing around formatted strings, pass a Date object.
That way we don't need to undo the formatting in TimetableTrainCard
later on, and we get improved type safety.

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion force-pushed the emr/refacto-timetable-date branch from cce61b8 to 633e09c Compare November 8, 2024 14:03
@emersion emersion enabled auto-merge November 8, 2024 14:03
@emersion emersion added this pull request to the merge queue Nov 8, 2024
Merged via the queue into dev with commit b777099 Nov 8, 2024
25 checks passed
@emersion emersion deleted the emr/refacto-timetable-date branch November 8, 2024 14:37
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.

4 participants