@optifye/dashboard-core 6.12.4 → 6.12.5
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.
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +20 -10
- package/dist/index.mjs +20 -10
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -73,6 +73,8 @@ interface LineSkuBreakdownItem {
|
|
|
73
73
|
* on Nahar rows (quality_metrics path doesn't populate it).
|
|
74
74
|
*/
|
|
75
75
|
line_threshold_recalculated?: number | null;
|
|
76
|
+
/** Summed real-SKU `performance_metrics.total_day_output_recalculated`. */
|
|
77
|
+
output_target_recalculated?: number | null;
|
|
76
78
|
total_workspaces?: number;
|
|
77
79
|
underperforming_workspaces?: number;
|
|
78
80
|
underperforming_workspace_names?: string[];
|
|
@@ -130,6 +132,8 @@ interface LineDetailedMetrics {
|
|
|
130
132
|
output_hourly?: Record<string, number[]>;
|
|
131
133
|
hourly_target_output?: Array<number | null> | null;
|
|
132
134
|
line_threshold: number;
|
|
135
|
+
/** Summed real-SKU `performance_metrics.total_day_output_recalculated`. */
|
|
136
|
+
output_target_recalculated?: number | null;
|
|
133
137
|
threshold_pph?: number;
|
|
134
138
|
shift_start?: string;
|
|
135
139
|
shift_end?: string;
|
|
@@ -5752,6 +5756,8 @@ type LineSkuBreakdownBuiltItem = {
|
|
|
5752
5756
|
* Nahar rows (update_line_metrics_from_quality doesn't populate it).
|
|
5753
5757
|
*/
|
|
5754
5758
|
line_threshold_recalculated: number | null;
|
|
5759
|
+
/** Summed real-SKU `performance_metrics.total_day_output_recalculated`. */
|
|
5760
|
+
output_target_recalculated: number | null;
|
|
5755
5761
|
total_workspaces: number;
|
|
5756
5762
|
underperforming_workspaces: number;
|
|
5757
5763
|
underperforming_workspace_names: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -73,6 +73,8 @@ interface LineSkuBreakdownItem {
|
|
|
73
73
|
* on Nahar rows (quality_metrics path doesn't populate it).
|
|
74
74
|
*/
|
|
75
75
|
line_threshold_recalculated?: number | null;
|
|
76
|
+
/** Summed real-SKU `performance_metrics.total_day_output_recalculated`. */
|
|
77
|
+
output_target_recalculated?: number | null;
|
|
76
78
|
total_workspaces?: number;
|
|
77
79
|
underperforming_workspaces?: number;
|
|
78
80
|
underperforming_workspace_names?: string[];
|
|
@@ -130,6 +132,8 @@ interface LineDetailedMetrics {
|
|
|
130
132
|
output_hourly?: Record<string, number[]>;
|
|
131
133
|
hourly_target_output?: Array<number | null> | null;
|
|
132
134
|
line_threshold: number;
|
|
135
|
+
/** Summed real-SKU `performance_metrics.total_day_output_recalculated`. */
|
|
136
|
+
output_target_recalculated?: number | null;
|
|
133
137
|
threshold_pph?: number;
|
|
134
138
|
shift_start?: string;
|
|
135
139
|
shift_end?: string;
|
|
@@ -5752,6 +5756,8 @@ type LineSkuBreakdownBuiltItem = {
|
|
|
5752
5756
|
* Nahar rows (update_line_metrics_from_quality doesn't populate it).
|
|
5753
5757
|
*/
|
|
5754
5758
|
line_threshold_recalculated: number | null;
|
|
5759
|
+
/** Summed real-SKU `performance_metrics.total_day_output_recalculated`. */
|
|
5760
|
+
output_target_recalculated: number | null;
|
|
5755
5761
|
total_workspaces: number;
|
|
5756
5762
|
underperforming_workspaces: number;
|
|
5757
5763
|
underperforming_workspace_names: string[];
|
package/dist/index.js
CHANGED
|
@@ -4586,6 +4586,7 @@ var buildLineSkuBreakdown = (rows, skuCatalog) => {
|
|
|
4586
4586
|
avg_efficiency: safeFloat(row.avg_efficiency),
|
|
4587
4587
|
line_threshold: typeof row.line_threshold === "number" && Number.isFinite(row.line_threshold) ? row.line_threshold : null,
|
|
4588
4588
|
line_threshold_recalculated: typeof row.line_threshold_recalculated === "number" && Number.isFinite(row.line_threshold_recalculated) ? row.line_threshold_recalculated : null,
|
|
4589
|
+
output_target_recalculated: typeof row.output_target_recalculated === "number" && Number.isFinite(row.output_target_recalculated) ? row.output_target_recalculated : null,
|
|
4589
4590
|
total_workspaces: safeInt(row.total_workspaces),
|
|
4590
4591
|
underperforming_workspaces: safeInt(row.underperforming_workspaces),
|
|
4591
4592
|
underperforming_workspace_names: Array.isArray(row.underperforming_workspace_names) ? row.underperforming_workspace_names : [],
|
|
@@ -5236,7 +5237,7 @@ var dashboardService = {
|
|
|
5236
5237
|
},
|
|
5237
5238
|
outputProgress: {
|
|
5238
5239
|
current: lineInfo.metrics.current_output,
|
|
5239
|
-
target: lineInfo.metrics.line_threshold,
|
|
5240
|
+
target: lineInfo.metrics.output_target_recalculated ?? lineInfo.metrics.line_threshold,
|
|
5240
5241
|
idealOutput: lineInfo.metrics.ideal_output,
|
|
5241
5242
|
change: 0
|
|
5242
5243
|
},
|
|
@@ -21924,7 +21925,7 @@ var buildKPIsFromLineMetricsRow = (row) => {
|
|
|
21924
21925
|
const avgEfficiency = toNumber(row.avg_efficiency);
|
|
21925
21926
|
const avgCycleTime = toNumber(row.avg_cycle_time);
|
|
21926
21927
|
const currentOutput = toNumber(row.current_output);
|
|
21927
|
-
const lineThreshold = toNumber(row.line_threshold);
|
|
21928
|
+
const lineThreshold = row.output_target_recalculated !== void 0 && row.output_target_recalculated !== null ? toNumber(row.output_target_recalculated) : toNumber(row.line_threshold);
|
|
21928
21929
|
const idealOutput = toNumber(row.ideal_output) || lineThreshold || 0;
|
|
21929
21930
|
const underperformingWorkspaces = toNumber(row.underperforming_workspaces);
|
|
21930
21931
|
const totalWorkspaces = toNumber(row.total_workspaces);
|
|
@@ -21959,7 +21960,10 @@ var aggregateKPIsFromLineMetricsRows = (rows) => {
|
|
|
21959
21960
|
const eligibleRows = rows.filter((row) => toNumber(row?.avg_efficiency) >= 5);
|
|
21960
21961
|
if (eligibleRows.length === 0) return createDefaultKPIs();
|
|
21961
21962
|
const currentOutputSum = eligibleRows.reduce((sum, row) => sum + toNumber(row.current_output), 0);
|
|
21962
|
-
const lineThresholdSum = eligibleRows.reduce(
|
|
21963
|
+
const lineThresholdSum = eligibleRows.reduce(
|
|
21964
|
+
(sum, row) => sum + (row?.output_target_recalculated !== void 0 && row?.output_target_recalculated !== null ? toNumber(row.output_target_recalculated) : toNumber(row.line_threshold)),
|
|
21965
|
+
0
|
|
21966
|
+
);
|
|
21963
21967
|
const idealOutputSum = eligibleRows.reduce(
|
|
21964
21968
|
(sum, row) => sum + (toNumber(row.ideal_output) || toNumber(row.line_threshold)),
|
|
21965
21969
|
0
|
|
@@ -65216,6 +65220,7 @@ var buildLineInfoSnapshot = (lineDetails, metrics2) => {
|
|
|
65216
65220
|
output_hourly: metrics2.output_hourly,
|
|
65217
65221
|
hourly_target_output: metrics2.hourly_target_output,
|
|
65218
65222
|
line_threshold: metrics2.line_threshold ?? 0,
|
|
65223
|
+
output_target_recalculated: metrics2.output_target_recalculated ?? null,
|
|
65219
65224
|
threshold_pph: metrics2.threshold_pph ?? 0,
|
|
65220
65225
|
shift_start: metrics2.shift_start || "06:00",
|
|
65221
65226
|
shift_end: metrics2.shift_end || "14:00",
|
|
@@ -65303,6 +65308,7 @@ var transformLineMetrics = (lineId, detailResponse, queryDate, queryShiftId) =>
|
|
|
65303
65308
|
output_array: [],
|
|
65304
65309
|
hourly_target_output: void 0,
|
|
65305
65310
|
line_threshold: 0,
|
|
65311
|
+
output_target_recalculated: null,
|
|
65306
65312
|
threshold_pph: 0,
|
|
65307
65313
|
shift_start: "06:00",
|
|
65308
65314
|
shift_end: "14:00",
|
|
@@ -66140,6 +66146,7 @@ var MetricCards = React144.memo(({
|
|
|
66140
66146
|
issueResolutionSummary?.mean_resolution_seconds ?? issueResolutionSummary?.median_resolution_seconds
|
|
66141
66147
|
);
|
|
66142
66148
|
getIssueResolutionSecondaryText(issueResolutionSummary);
|
|
66149
|
+
const outputTarget = lineInfo?.metrics.output_target_recalculated ?? lineInfo?.metrics.line_threshold ?? 0;
|
|
66143
66150
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
66144
66151
|
motion.div,
|
|
66145
66152
|
{
|
|
@@ -66154,7 +66161,7 @@ var MetricCards = React144.memo(({
|
|
|
66154
66161
|
OutputProgressChart,
|
|
66155
66162
|
{
|
|
66156
66163
|
currentOutput: lineInfo?.metrics.current_output || 0,
|
|
66157
|
-
targetOutput:
|
|
66164
|
+
targetOutput: outputTarget,
|
|
66158
66165
|
skuBreakdown: skuAware ? skuBreakdown : void 0,
|
|
66159
66166
|
selectedSkuId,
|
|
66160
66167
|
onSelectSku,
|
|
@@ -66278,7 +66285,7 @@ var MetricCards = React144.memo(({
|
|
|
66278
66285
|
if (prevIssueSummary?.mean_resolution_seconds !== nextIssueSummary?.mean_resolution_seconds || prevIssueSummary?.median_resolution_seconds !== nextIssueSummary?.median_resolution_seconds || prevIssueSummary?.resolved_issue_count !== nextIssueSummary?.resolved_issue_count || prevIssueSummary?.open_issue_count !== nextIssueSummary?.open_issue_count || prevIssueSummary?.oldest_open_issue_age_seconds !== nextIssueSummary?.oldest_open_issue_age_seconds || prevIssueSummary?.total_issue_seconds !== nextIssueSummary?.total_issue_seconds) {
|
|
66279
66286
|
return false;
|
|
66280
66287
|
}
|
|
66281
|
-
return prevMetrics.current_output === nextMetrics.current_output && prevMetrics.line_threshold === nextMetrics.line_threshold && prevMetrics.underperforming_workspaces === nextMetrics.underperforming_workspaces && prevMetrics.total_workspaces === nextMetrics.total_workspaces && prevMetrics.avg_efficiency === nextMetrics.avg_efficiency;
|
|
66288
|
+
return prevMetrics.current_output === nextMetrics.current_output && prevMetrics.line_threshold === nextMetrics.line_threshold && prevMetrics.output_target_recalculated === nextMetrics.output_target_recalculated && prevMetrics.underperforming_workspaces === nextMetrics.underperforming_workspaces && prevMetrics.total_workspaces === nextMetrics.total_workspaces && prevMetrics.avg_efficiency === nextMetrics.avg_efficiency;
|
|
66282
66289
|
});
|
|
66283
66290
|
MetricCards.displayName = "MetricCards";
|
|
66284
66291
|
var LineUptimeMetricCards = React144.memo(({
|
|
@@ -67146,6 +67153,7 @@ var KPIDetailView = ({
|
|
|
67146
67153
|
output_hourly: metrics2.output_hourly,
|
|
67147
67154
|
hourly_target_output: metrics2.hourly_target_output,
|
|
67148
67155
|
line_threshold: metrics2.line_threshold ?? 0,
|
|
67156
|
+
output_target_recalculated: metrics2.output_target_recalculated ?? null,
|
|
67149
67157
|
threshold_pph: metrics2.threshold_pph ?? 0,
|
|
67150
67158
|
shift_start: metrics2.shift_start || "06:00",
|
|
67151
67159
|
shift_end: metrics2.shift_end || "14:00",
|
|
@@ -67220,15 +67228,16 @@ var KPIDetailView = ({
|
|
|
67220
67228
|
[lineSkuBreakdown]
|
|
67221
67229
|
);
|
|
67222
67230
|
const outputChartSkuBreakdown = React144.useMemo(
|
|
67223
|
-
() => realSkuOptions.filter(
|
|
67224
|
-
|
|
67225
|
-
|
|
67231
|
+
() => realSkuOptions.filter((item) => {
|
|
67232
|
+
const targetOutput = item.output_target_recalculated ?? item.line_threshold_recalculated ?? item.ideal_output ?? 0;
|
|
67233
|
+
return (item.current_output ?? 0) > 0 || targetOutput > 0;
|
|
67234
|
+
}).map((item) => ({
|
|
67226
67235
|
sku_id: item.sku_id,
|
|
67227
67236
|
sku_code: item.sku_code,
|
|
67228
67237
|
sku_definition: "",
|
|
67229
67238
|
is_dummy: false,
|
|
67230
67239
|
total_output: item.current_output ?? 0,
|
|
67231
|
-
target_output: item.ideal_output ?? 0,
|
|
67240
|
+
target_output: item.output_target_recalculated ?? item.line_threshold_recalculated ?? item.ideal_output ?? 0,
|
|
67232
67241
|
avg_pph: 0,
|
|
67233
67242
|
pph_threshold: 0,
|
|
67234
67243
|
avg_cycle_time: 0,
|
|
@@ -67282,7 +67291,8 @@ var KPIDetailView = ({
|
|
|
67282
67291
|
underperforming_workspaces: selectedSkuRow.underperforming_workspaces ?? resolvedLineInfo.metrics.underperforming_workspaces,
|
|
67283
67292
|
underperforming_workspace_names: selectedSkuRow.underperforming_workspace_names ?? resolvedLineInfo.metrics.underperforming_workspace_names,
|
|
67284
67293
|
underperforming_workspace_uuids: selectedSkuRow.underperforming_workspace_uuids ?? resolvedLineInfo.metrics.underperforming_workspace_uuids,
|
|
67285
|
-
line_threshold: selectedSkuRow.line_threshold ?? resolvedLineInfo.metrics.line_threshold
|
|
67294
|
+
line_threshold: selectedSkuRow.line_threshold ?? resolvedLineInfo.metrics.line_threshold,
|
|
67295
|
+
output_target_recalculated: selectedSkuRow.output_target_recalculated ?? selectedSkuRow.line_threshold_recalculated ?? resolvedLineInfo.metrics.output_target_recalculated ?? null
|
|
67286
67296
|
}
|
|
67287
67297
|
};
|
|
67288
67298
|
}, [resolvedLineInfo, selectedSkuRow]);
|
package/dist/index.mjs
CHANGED
|
@@ -4557,6 +4557,7 @@ var buildLineSkuBreakdown = (rows, skuCatalog) => {
|
|
|
4557
4557
|
avg_efficiency: safeFloat(row.avg_efficiency),
|
|
4558
4558
|
line_threshold: typeof row.line_threshold === "number" && Number.isFinite(row.line_threshold) ? row.line_threshold : null,
|
|
4559
4559
|
line_threshold_recalculated: typeof row.line_threshold_recalculated === "number" && Number.isFinite(row.line_threshold_recalculated) ? row.line_threshold_recalculated : null,
|
|
4560
|
+
output_target_recalculated: typeof row.output_target_recalculated === "number" && Number.isFinite(row.output_target_recalculated) ? row.output_target_recalculated : null,
|
|
4560
4561
|
total_workspaces: safeInt(row.total_workspaces),
|
|
4561
4562
|
underperforming_workspaces: safeInt(row.underperforming_workspaces),
|
|
4562
4563
|
underperforming_workspace_names: Array.isArray(row.underperforming_workspace_names) ? row.underperforming_workspace_names : [],
|
|
@@ -5207,7 +5208,7 @@ var dashboardService = {
|
|
|
5207
5208
|
},
|
|
5208
5209
|
outputProgress: {
|
|
5209
5210
|
current: lineInfo.metrics.current_output,
|
|
5210
|
-
target: lineInfo.metrics.line_threshold,
|
|
5211
|
+
target: lineInfo.metrics.output_target_recalculated ?? lineInfo.metrics.line_threshold,
|
|
5211
5212
|
idealOutput: lineInfo.metrics.ideal_output,
|
|
5212
5213
|
change: 0
|
|
5213
5214
|
},
|
|
@@ -21895,7 +21896,7 @@ var buildKPIsFromLineMetricsRow = (row) => {
|
|
|
21895
21896
|
const avgEfficiency = toNumber(row.avg_efficiency);
|
|
21896
21897
|
const avgCycleTime = toNumber(row.avg_cycle_time);
|
|
21897
21898
|
const currentOutput = toNumber(row.current_output);
|
|
21898
|
-
const lineThreshold = toNumber(row.line_threshold);
|
|
21899
|
+
const lineThreshold = row.output_target_recalculated !== void 0 && row.output_target_recalculated !== null ? toNumber(row.output_target_recalculated) : toNumber(row.line_threshold);
|
|
21899
21900
|
const idealOutput = toNumber(row.ideal_output) || lineThreshold || 0;
|
|
21900
21901
|
const underperformingWorkspaces = toNumber(row.underperforming_workspaces);
|
|
21901
21902
|
const totalWorkspaces = toNumber(row.total_workspaces);
|
|
@@ -21930,7 +21931,10 @@ var aggregateKPIsFromLineMetricsRows = (rows) => {
|
|
|
21930
21931
|
const eligibleRows = rows.filter((row) => toNumber(row?.avg_efficiency) >= 5);
|
|
21931
21932
|
if (eligibleRows.length === 0) return createDefaultKPIs();
|
|
21932
21933
|
const currentOutputSum = eligibleRows.reduce((sum, row) => sum + toNumber(row.current_output), 0);
|
|
21933
|
-
const lineThresholdSum = eligibleRows.reduce(
|
|
21934
|
+
const lineThresholdSum = eligibleRows.reduce(
|
|
21935
|
+
(sum, row) => sum + (row?.output_target_recalculated !== void 0 && row?.output_target_recalculated !== null ? toNumber(row.output_target_recalculated) : toNumber(row.line_threshold)),
|
|
21936
|
+
0
|
|
21937
|
+
);
|
|
21934
21938
|
const idealOutputSum = eligibleRows.reduce(
|
|
21935
21939
|
(sum, row) => sum + (toNumber(row.ideal_output) || toNumber(row.line_threshold)),
|
|
21936
21940
|
0
|
|
@@ -65187,6 +65191,7 @@ var buildLineInfoSnapshot = (lineDetails, metrics2) => {
|
|
|
65187
65191
|
output_hourly: metrics2.output_hourly,
|
|
65188
65192
|
hourly_target_output: metrics2.hourly_target_output,
|
|
65189
65193
|
line_threshold: metrics2.line_threshold ?? 0,
|
|
65194
|
+
output_target_recalculated: metrics2.output_target_recalculated ?? null,
|
|
65190
65195
|
threshold_pph: metrics2.threshold_pph ?? 0,
|
|
65191
65196
|
shift_start: metrics2.shift_start || "06:00",
|
|
65192
65197
|
shift_end: metrics2.shift_end || "14:00",
|
|
@@ -65274,6 +65279,7 @@ var transformLineMetrics = (lineId, detailResponse, queryDate, queryShiftId) =>
|
|
|
65274
65279
|
output_array: [],
|
|
65275
65280
|
hourly_target_output: void 0,
|
|
65276
65281
|
line_threshold: 0,
|
|
65282
|
+
output_target_recalculated: null,
|
|
65277
65283
|
threshold_pph: 0,
|
|
65278
65284
|
shift_start: "06:00",
|
|
65279
65285
|
shift_end: "14:00",
|
|
@@ -66111,6 +66117,7 @@ var MetricCards = memo$1(({
|
|
|
66111
66117
|
issueResolutionSummary?.mean_resolution_seconds ?? issueResolutionSummary?.median_resolution_seconds
|
|
66112
66118
|
);
|
|
66113
66119
|
getIssueResolutionSecondaryText(issueResolutionSummary);
|
|
66120
|
+
const outputTarget = lineInfo?.metrics.output_target_recalculated ?? lineInfo?.metrics.line_threshold ?? 0;
|
|
66114
66121
|
return /* @__PURE__ */ jsxs(
|
|
66115
66122
|
motion.div,
|
|
66116
66123
|
{
|
|
@@ -66125,7 +66132,7 @@ var MetricCards = memo$1(({
|
|
|
66125
66132
|
OutputProgressChart,
|
|
66126
66133
|
{
|
|
66127
66134
|
currentOutput: lineInfo?.metrics.current_output || 0,
|
|
66128
|
-
targetOutput:
|
|
66135
|
+
targetOutput: outputTarget,
|
|
66129
66136
|
skuBreakdown: skuAware ? skuBreakdown : void 0,
|
|
66130
66137
|
selectedSkuId,
|
|
66131
66138
|
onSelectSku,
|
|
@@ -66249,7 +66256,7 @@ var MetricCards = memo$1(({
|
|
|
66249
66256
|
if (prevIssueSummary?.mean_resolution_seconds !== nextIssueSummary?.mean_resolution_seconds || prevIssueSummary?.median_resolution_seconds !== nextIssueSummary?.median_resolution_seconds || prevIssueSummary?.resolved_issue_count !== nextIssueSummary?.resolved_issue_count || prevIssueSummary?.open_issue_count !== nextIssueSummary?.open_issue_count || prevIssueSummary?.oldest_open_issue_age_seconds !== nextIssueSummary?.oldest_open_issue_age_seconds || prevIssueSummary?.total_issue_seconds !== nextIssueSummary?.total_issue_seconds) {
|
|
66250
66257
|
return false;
|
|
66251
66258
|
}
|
|
66252
|
-
return prevMetrics.current_output === nextMetrics.current_output && prevMetrics.line_threshold === nextMetrics.line_threshold && prevMetrics.underperforming_workspaces === nextMetrics.underperforming_workspaces && prevMetrics.total_workspaces === nextMetrics.total_workspaces && prevMetrics.avg_efficiency === nextMetrics.avg_efficiency;
|
|
66259
|
+
return prevMetrics.current_output === nextMetrics.current_output && prevMetrics.line_threshold === nextMetrics.line_threshold && prevMetrics.output_target_recalculated === nextMetrics.output_target_recalculated && prevMetrics.underperforming_workspaces === nextMetrics.underperforming_workspaces && prevMetrics.total_workspaces === nextMetrics.total_workspaces && prevMetrics.avg_efficiency === nextMetrics.avg_efficiency;
|
|
66253
66260
|
});
|
|
66254
66261
|
MetricCards.displayName = "MetricCards";
|
|
66255
66262
|
var LineUptimeMetricCards = memo$1(({
|
|
@@ -67117,6 +67124,7 @@ var KPIDetailView = ({
|
|
|
67117
67124
|
output_hourly: metrics2.output_hourly,
|
|
67118
67125
|
hourly_target_output: metrics2.hourly_target_output,
|
|
67119
67126
|
line_threshold: metrics2.line_threshold ?? 0,
|
|
67127
|
+
output_target_recalculated: metrics2.output_target_recalculated ?? null,
|
|
67120
67128
|
threshold_pph: metrics2.threshold_pph ?? 0,
|
|
67121
67129
|
shift_start: metrics2.shift_start || "06:00",
|
|
67122
67130
|
shift_end: metrics2.shift_end || "14:00",
|
|
@@ -67191,15 +67199,16 @@ var KPIDetailView = ({
|
|
|
67191
67199
|
[lineSkuBreakdown]
|
|
67192
67200
|
);
|
|
67193
67201
|
const outputChartSkuBreakdown = useMemo(
|
|
67194
|
-
() => realSkuOptions.filter(
|
|
67195
|
-
|
|
67196
|
-
|
|
67202
|
+
() => realSkuOptions.filter((item) => {
|
|
67203
|
+
const targetOutput = item.output_target_recalculated ?? item.line_threshold_recalculated ?? item.ideal_output ?? 0;
|
|
67204
|
+
return (item.current_output ?? 0) > 0 || targetOutput > 0;
|
|
67205
|
+
}).map((item) => ({
|
|
67197
67206
|
sku_id: item.sku_id,
|
|
67198
67207
|
sku_code: item.sku_code,
|
|
67199
67208
|
sku_definition: "",
|
|
67200
67209
|
is_dummy: false,
|
|
67201
67210
|
total_output: item.current_output ?? 0,
|
|
67202
|
-
target_output: item.ideal_output ?? 0,
|
|
67211
|
+
target_output: item.output_target_recalculated ?? item.line_threshold_recalculated ?? item.ideal_output ?? 0,
|
|
67203
67212
|
avg_pph: 0,
|
|
67204
67213
|
pph_threshold: 0,
|
|
67205
67214
|
avg_cycle_time: 0,
|
|
@@ -67253,7 +67262,8 @@ var KPIDetailView = ({
|
|
|
67253
67262
|
underperforming_workspaces: selectedSkuRow.underperforming_workspaces ?? resolvedLineInfo.metrics.underperforming_workspaces,
|
|
67254
67263
|
underperforming_workspace_names: selectedSkuRow.underperforming_workspace_names ?? resolvedLineInfo.metrics.underperforming_workspace_names,
|
|
67255
67264
|
underperforming_workspace_uuids: selectedSkuRow.underperforming_workspace_uuids ?? resolvedLineInfo.metrics.underperforming_workspace_uuids,
|
|
67256
|
-
line_threshold: selectedSkuRow.line_threshold ?? resolvedLineInfo.metrics.line_threshold
|
|
67265
|
+
line_threshold: selectedSkuRow.line_threshold ?? resolvedLineInfo.metrics.line_threshold,
|
|
67266
|
+
output_target_recalculated: selectedSkuRow.output_target_recalculated ?? selectedSkuRow.line_threshold_recalculated ?? resolvedLineInfo.metrics.output_target_recalculated ?? null
|
|
67257
67267
|
}
|
|
67258
67268
|
};
|
|
67259
67269
|
}, [resolvedLineInfo, selectedSkuRow]);
|