@hestia-earth/ui-components 0.42.24 → 0.42.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2775,11 +2775,7 @@ var StepStatus;
2775
2775
  })(StepStatus || (StepStatus = {}));
2776
2776
  // status of the step the pipeline is currently on (`index === statusIndex`).
2777
2777
  // `inProgress` (driven by the `inProgressStatus` input) marks the step as actively in progress
2778
- const getCurrentStepStatus = (success, processing, inProgress) => inProgress || (success && processing)
2779
- ? StepStatus.current
2780
- : success
2781
- ? StepStatus.next
2782
- : StepStatus.error;
2778
+ const getCurrentStepStatus = (success, processing, inProgress) => inProgress || (success && processing) ? StepStatus.current : success ? StepStatus.next : StepStatus.error;
2783
2779
  const getStepStatus = (index, statusIndex, success, processing, inProgress = false) => index < statusIndex
2784
2780
  ? StepStatus.previous
2785
2781
  : index === statusIndex
@@ -2865,6 +2861,8 @@ const icons = [
2865
2861
  'cycle-schema',
2866
2862
  'dashboard',
2867
2863
  'data-format',
2864
+ 'data-management',
2865
+ 'data-plan',
2868
2866
  'database-wheat',
2869
2867
  'dot-circle',
2870
2868
  'dot-filled',
@@ -7526,7 +7524,7 @@ class HeNodeService {
7526
7524
  const node = { ...impactAssessment, '@id': nodeIdWithoutDataVersion(impactAssessment['@id']), dataVersion };
7527
7525
  return this.http
7528
7526
  .get(`${this.nodeUrl(node)}/contributions`, { params: filterParams({ dataVersion }) })
7529
- .pipe(mergeMap(contributions => isEmpty(contributions) ? this.getContributionsFromLog$(node) : of(contributions)), catchError(() => this.getContributionsFromLog$(node)));
7527
+ .pipe(mergeMap(contributions => (isEmpty(contributions) ? this.getContributionsFromLog$(node) : of(contributions))), catchError(() => this.getContributionsFromLog$(node)));
7530
7528
  }
7531
7529
  getContributionsFromLog$(impactAssessment) {
7532
7530
  return this.getLog$({ ...impactAssessment, dataState: DataState.recalculated }).pipe(map(value => (value ? parseLines(value) : [])), mergeAll(), filter(({ data }) => data.logger === 'hestia_earth.models' && data.level === Level.debug), filter(({ data: { message } }) => !!message), map(({ data: { message } }) => parseMessage(message)), filter(message => 'node' in message), map(data => ({