generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #245 from amosproj/feat/xd-215
feat: add pump metrics inside facility details page (XD-215)
- Loading branch information
Showing
8 changed files
with
15,330 additions
and
15,204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...lities/frontend/view/src/lib/components/detail/models/metrics-category-information.map.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Colors } from './colors'; | ||
import { EMetricsCategory } from './metrics-category.enum'; | ||
|
||
export const METRIC_CATEGORY_COLOR_INFORMATION: Record<EMetricsCategory, { color: Colors, abbreviation: string }> = { | ||
[EMetricsCategory.MIN]: { color: Colors.LIME, abbreviation: 'Min' }, | ||
[EMetricsCategory.MAX]: { color: Colors.PINK, abbreviation: 'Max' }, | ||
[EMetricsCategory.MEAN]: { color: Colors.GREEN, abbreviation: 'Mean' }, | ||
[EMetricsCategory.VARIANCE]: { color: Colors.STONE, abbreviation: 'Variance' }, | ||
[EMetricsCategory.STANDARD_DEVIATION]: { color: Colors.PURPLE, abbreviation: 'StdDev' }, | ||
[EMetricsCategory.COEFFICIENT_OF_VARIATION]: { color: Colors.BLUE, abbreviation: 'CV' }, | ||
} |
11 changes: 11 additions & 0 deletions
11
libs/facilities/frontend/view/src/lib/components/detail/models/metrics-category.enum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Enum for metric category which label the metric chart | ||
*/ | ||
export enum EMetricsCategory { | ||
MIN='min', | ||
MAX='max', | ||
MEAN='mean', | ||
VARIANCE='variance', | ||
STANDARD_DEVIATION='standardDeviation', | ||
COEFFICIENT_OF_VARIATION='coefficientOfVariation' | ||
} |
9 changes: 9 additions & 0 deletions
9
libs/facilities/frontend/view/src/lib/components/detail/models/pump-metrics-full-name.map.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { EPumpMetricsName } from 'facilities-shared-models'; | ||
|
||
export const PUMP_METRICS_FULL_NAME_MAP: Record<EPumpMetricsName, string> = { | ||
[EPumpMetricsName.MotorCurrent]: 'Motor Current (V)', | ||
[EPumpMetricsName.PressureOut]: 'Pressure Out (hPa)', | ||
[EPumpMetricsName.StuffingBoxTemperature]: 'Stuffing Box Temperature (°C)', | ||
[EPumpMetricsName.PressureIn]: 'Pressure In (hPa)', | ||
[EPumpMetricsName.Flow]: 'Flow (l/s)' | ||
} |
Oops, something went wrong.