@optifye/dashboard-core 4.2.5 → 4.2.6

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 CHANGED
@@ -3370,6 +3370,11 @@ interface BottlenecksContentProps {
3370
3370
  * Optional date to fetch clips for (defaults to current date)
3371
3371
  */
3372
3372
  date?: string;
3373
+ /**
3374
+ * Optional shift ID for fetching clips (0 = Day shift, 1 = Night shift)
3375
+ * If not provided, defaults to current shift
3376
+ */
3377
+ shift?: string | number;
3373
3378
  /**
3374
3379
  * Optional className for styling
3375
3380
  */
package/dist/index.d.ts CHANGED
@@ -3370,6 +3370,11 @@ interface BottlenecksContentProps {
3370
3370
  * Optional date to fetch clips for (defaults to current date)
3371
3371
  */
3372
3372
  date?: string;
3373
+ /**
3374
+ * Optional shift ID for fetching clips (0 = Day shift, 1 = Night shift)
3375
+ * If not provided, defaults to current shift
3376
+ */
3377
+ shift?: string | number;
3373
3378
  /**
3374
3379
  * Optional className for styling
3375
3380
  */
package/dist/index.js CHANGED
@@ -21367,6 +21367,7 @@ var BottlenecksContent = ({
21367
21367
  workspaceId,
21368
21368
  workspaceName,
21369
21369
  date,
21370
+ shift,
21370
21371
  className
21371
21372
  }) => {
21372
21373
  const dashboardConfig = useDashboardConfig();
@@ -21422,6 +21423,8 @@ var BottlenecksContent = ({
21422
21423
  const videos = await s3ClipsService.fetchClips({
21423
21424
  workspaceId,
21424
21425
  date: operationalDate,
21426
+ shift: shift?.toString(),
21427
+ // Pass the shift parameter
21425
21428
  mode: "full",
21426
21429
  includeCycleTime: true,
21427
21430
  includeMetadata: true,
@@ -21457,7 +21460,7 @@ var BottlenecksContent = ({
21457
21460
  } finally {
21458
21461
  setIsLoading(false);
21459
21462
  }
21460
- }, [workspaceId, date, s3ClipsService, timestampStart, timestampEnd]);
21463
+ }, [workspaceId, date, s3ClipsService, timestampStart, timestampEnd, shift]);
21461
21464
  React14.useEffect(() => {
21462
21465
  if (s3ClipsService) {
21463
21466
  fetchClips();
@@ -30490,6 +30493,7 @@ var WorkspaceDetailView = ({
30490
30493
  workspaceId,
30491
30494
  workspaceName: formattedWorkspaceName,
30492
30495
  date,
30496
+ shift,
30493
30497
  className: "h-[calc(100vh-10rem)]"
30494
30498
  }
30495
30499
  )
package/dist/index.mjs CHANGED
@@ -21338,6 +21338,7 @@ var BottlenecksContent = ({
21338
21338
  workspaceId,
21339
21339
  workspaceName,
21340
21340
  date,
21341
+ shift,
21341
21342
  className
21342
21343
  }) => {
21343
21344
  const dashboardConfig = useDashboardConfig();
@@ -21393,6 +21394,8 @@ var BottlenecksContent = ({
21393
21394
  const videos = await s3ClipsService.fetchClips({
21394
21395
  workspaceId,
21395
21396
  date: operationalDate,
21397
+ shift: shift?.toString(),
21398
+ // Pass the shift parameter
21396
21399
  mode: "full",
21397
21400
  includeCycleTime: true,
21398
21401
  includeMetadata: true,
@@ -21428,7 +21431,7 @@ var BottlenecksContent = ({
21428
21431
  } finally {
21429
21432
  setIsLoading(false);
21430
21433
  }
21431
- }, [workspaceId, date, s3ClipsService, timestampStart, timestampEnd]);
21434
+ }, [workspaceId, date, s3ClipsService, timestampStart, timestampEnd, shift]);
21432
21435
  useEffect(() => {
21433
21436
  if (s3ClipsService) {
21434
21437
  fetchClips();
@@ -30461,6 +30464,7 @@ var WorkspaceDetailView = ({
30461
30464
  workspaceId,
30462
30465
  workspaceName: formattedWorkspaceName,
30463
30466
  date,
30467
+ shift,
30464
30468
  className: "h-[calc(100vh-10rem)]"
30465
30469
  }
30466
30470
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optifye/dashboard-core",
3
- "version": "4.2.5",
3
+ "version": "4.2.6",
4
4
  "description": "Reusable UI & logic for Optifye dashboard",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",