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

feat: added punctuality display (#122) #473

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

tobe-official
Copy link
Collaborator

No description provided.

rawi-coding and others added 25 commits December 4, 2024 17:20
# 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
@tobe-official tobe-official changed the title 122 puenktlichkeit anzeige feat: Added punctuality display (#122) Dec 20, 2024
# Conflicts:
#	das_client/test/sfera/mapper/sfera_mapper_test.dart
@tobe-official tobe-official changed the title feat: Added punctuality display (#122) feat: added punctuality display (#122) Dec 20, 2024
@@ -150,6 +159,20 @@ class SferaModelMapper {
);
}

static Duration _stringToDuration(String stringToChange) {
Copy link
Collaborator

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.

das_client/lib/sfera/src/mapper/sfera_model_mapper.dart Outdated Show resolved Hide resolved
das_client/lib/sfera/src/mapper/sfera_model_mapper.dart Outdated Show resolved Hide resolved
das_client/pubspec.yaml Show resolved Hide resolved
@@ -68,4 +68,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: d9dad56c0cd0b4fd8b4fe3034a53fd42a0b990f6

COCOAPODS: 1.16.1
COCOAPODS: 1.15.2
Copy link
Collaborator

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

Copy link
Collaborator

@Grodien Grodien left a comment

Choose a reason for hiding this comment

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

paar kleine anmerkungen

@tobe-official tobe-official requested a review from Grodien January 14, 2025 09:46
das_client/lib/sfera/src/model/delay.dart Show resolved Hide resolved
return validateHasAttribute('Delay') && super.validate();
}

static Duration? toDuration(String? stringToChange) {
Copy link
Collaborator

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.

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.

3 participants