-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: added punctuality display (#122) #473
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # das_client/lib/app/pages/journey/train_journey/widgets/train_journey.dart # das_client/lib/model/journey/base_data.dart # das_client/lib/model/journey/datatype.dart # das_client/lib/model/journey/metadata.dart # das_client/lib/sfera/src/mapper/sfera_model_mapper.dart # das_client/lib/sfera/src/model/network_specific_parameter.dart # das_client/test/sfera/mapper/sfera_mapper_test.dart # das_client/test_resources/sp/SFERA_SP_9999_2.xml # das_client/test_resources/sp/SFERA_SP_9999_3.xml # das_client/test_resources/sp/SFERA_SP_9999_4.xml
# Conflicts: # das_client/integration_test/test/train_journey_table_test.dart # das_client/lib/app/pages/journey/train_journey/widgets/table/additional_speed_restriction_row.dart # das_client/lib/app/pages/journey/train_journey/widgets/table/base_row_builder.dart # das_client/lib/app/pages/journey/train_journey/widgets/table/cab_signaling_row.dart # das_client/lib/app/pages/journey/train_journey/widgets/table/cells/bracket_station_cell_body.dart # das_client/lib/app/pages/journey/train_journey/widgets/table/cells/route_cell_body.dart # das_client/lib/app/pages/journey/train_journey/widgets/table/protection_section_row.dart # das_client/lib/app/pages/journey/train_journey/widgets/table/service_point_row.dart # das_client/lib/app/pages/journey/train_journey/widgets/train_journey.dart # das_client/lib/model/journey/cab_signaling.dart # das_client/lib/model/journey/track_equipment.dart
…so added Duration into Metadata and changed the UI so that it only shows the delay from the metadata. Still have to check if it is needed to add hours
# Conflicts: # das_client/test/sfera/mapper/sfera_mapper_test.dart
das_client/lib/app/pages/journey/train_journey/widgets/header/time_container.dart
Outdated
Show resolved
Hide resolved
das_client/lib/app/pages/journey/train_journey/widgets/header/time_container.dart
Outdated
Show resolved
Hide resolved
@@ -150,6 +159,20 @@ class SferaModelMapper { | |||
); | |||
} | |||
|
|||
static Duration _stringToDuration(String stringToChange) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich würde diese Logik gleich im "Domain-Model" Delay führen, z.B. eine toDuration()
Methode.
…ngIndicator does not work currently.
das_client/ios/Podfile.lock
Outdated
@@ -68,4 +68,4 @@ SPEC CHECKSUMS: | |||
|
|||
PODFILE CHECKSUM: d9dad56c0cd0b4fd8b4fe3034a53fd42a0b990f6 | |||
|
|||
COCOAPODS: 1.16.1 | |||
COCOAPODS: 1.15.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cocoapods bei dir noch updaten, dieser change reverten
das_client/lib/app/pages/journey/train_journey/widgets/header/time_container.dart
Outdated
Show resolved
Hide resolved
das_client/lib/app/pages/journey/train_journey/widgets/header/time_container.dart
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paar kleine anmerkungen
return validateHasAttribute('Delay') && super.validate(); | ||
} | ||
|
||
static Duration? toDuration(String? stringToChange) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
statt static methode wär es schöner einen getter wie "Duration? get delayAsDuration => " zu haben.
No description provided.