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

Profile comparison - Waypoints Table #3

Merged
merged 22 commits into from
Jan 6, 2024
Merged

Conversation

xlebod
Copy link
Collaborator

@xlebod xlebod commented Dec 5, 2023

No description provided.

Copy link

github-actions bot commented Dec 5, 2023

Test Results

  2 files  ±0    2 suites  ±0   17s ⏱️ -1s
811 tests +3  809 ✅ +3  2 💤 ±0  0 ❌ ±0 
814 runs  +3  812 ✅ +3  2 💤 ±0  0 ❌ ±0 

Results for commit e86946f. ± Comparison against base commit 87eccb6.

♻️ This comment has been updated with latest results.

@xlebod xlebod force-pushed the profile-comparison branch from 75bab08 to 762f1ce Compare December 5, 2023 00:26
{{ row.depthA | number: '1.0-0'}}
</td>
<td *ngIf="row.durationA !== undefined else emptyRowWithDivider" class="px-1 vertical-right-border">
{{ row.durationA * 1000 | date: 'mm:ss'}}
Copy link
Owner

@jirkapok jirkapok Dec 5, 2023

Choose a reason for hiding this comment

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

We have dynamic duration formatting based on the value, see original component

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will fix once importing profiles into DiveSchedules is implemented

projects/planner/src/app/mainmenu/mainmenu.component.html Outdated Show resolved Hide resolved
}

ngOnInit(): void {
const MAX_SAFETY_LIMIT = 65536; // 2**16
Copy link
Owner

Choose a reason for hiding this comment

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

Keep component empty. It should contain only logic related to rendering.
Introduce new service, which will prepare data for this component and make it testable.
See e.g. https://github.com/jirkapok/GasPlanner/blob/master/projects/planner/src/app/shared/waypoints.service.spec.ts

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For now simply extracted to a Provider class. Will rework into injectable service once importing testing profiles into DiveSchedule is implemented.

@xlebod xlebod force-pushed the profile-comparison branch from 762f1ce to e7b10ef Compare December 12, 2023 00:27
@xlebod xlebod force-pushed the profile-comparison branch from 7c51ce9 to e86946f Compare January 6, 2024 16:38
@xlebod xlebod marked this pull request as ready for review January 6, 2024 17:32
@xlebod xlebod changed the title Profile comparison Profile comparison - Waypoints Table Jan 6, 2024
@xlebod xlebod merged commit 33672a7 into multiple_dives Jan 6, 2024
3 checks passed
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.

2 participants