-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
75bab08
to
762f1ce
Compare
{{ 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'}} |
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.
We have dynamic duration formatting based on the value, see original component
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.
Will fix once importing profiles into DiveSchedules is implemented
projects/planner/src/app/diff/waypoints/diff-waypoints.component.ts
Outdated
Show resolved
Hide resolved
projects/planner/src/app/diff/waypoints/diff-waypoints.component.ts
Outdated
Show resolved
Hide resolved
} | ||
|
||
ngOnInit(): void { | ||
const MAX_SAFETY_LIMIT = 65536; // 2**16 |
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.
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
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.
For now simply extracted to a Provider class. Will rework into injectable service once importing testing profiles into DiveSchedule is implemented.
762f1ce
to
e7b10ef
Compare
7c51ce9
to
e86946f
Compare
No description provided.