@optifye/dashboard-core 6.9.7 → 6.9.8

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.js CHANGED
@@ -9606,9 +9606,6 @@ var getAllWorkspaceDisplayNamesAsync = async (companyId, lineId) => {
9606
9606
  Object.entries(runtimeWorkspaceDisplayNames).forEach(([lineId2, lineNames]) => {
9607
9607
  Object.entries(lineNames).forEach(([workspaceId, displayName]) => {
9608
9608
  allNames[`${lineId2}_${workspaceId}`] = displayName;
9609
- if (!allNames[workspaceId]) {
9610
- allNames[workspaceId] = displayName;
9611
- }
9612
9609
  });
9613
9610
  });
9614
9611
  return allNames;
@@ -24737,7 +24734,8 @@ var VideoGridView = React23__namespace.default.memo(({
24737
24734
  displayName: (
24738
24735
  // Create line-aware lookup key: lineId_workspaceName
24739
24736
  // This ensures correct mapping when multiple lines have same workspace names
24740
- displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || displayNames[workspace.workspace_name] || getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id)
24737
+ displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || // Always pass line_id to fallback to ensure correct mapping per line
24738
+ getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id)
24741
24739
  ),
24742
24740
  useRAF: canvasConfig?.useRAF,
24743
24741
  compact: !selectedLine,
@@ -24787,7 +24785,8 @@ var MapGridView = React23__namespace.default.memo(({
24787
24785
  efficiency: workspace.efficiency,
24788
24786
  action_count: workspace.action_count
24789
24787
  });
24790
- const displayName = displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || displayNames[workspace.workspace_name] || getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id);
24788
+ const displayName = displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || // Always pass line_id to fallback to ensure correct mapping per line
24789
+ getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id);
24791
24790
  const navParams = getWorkspaceNavigationParams(workspaceId, displayName, workspace.line_id);
24792
24791
  router$1.push(`/workspace/${workspaceId}${navParams}`);
24793
24792
  }, [router$1, displayNames]);
@@ -24816,7 +24815,8 @@ var MapGridView = React23__namespace.default.memo(({
24816
24815
  if (!workspace) return null;
24817
24816
  const workspaceId = workspace.workspace_uuid || workspace.workspace_name;
24818
24817
  getPerformanceColor(workspace.efficiency);
24819
- const workspaceDisplayName = displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || displayNames[workspace.workspace_name] || getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id);
24818
+ const workspaceDisplayName = displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || // Always pass line_id to fallback to ensure correct mapping per line
24819
+ getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id);
24820
24820
  return /* @__PURE__ */ jsxRuntime.jsx(
24821
24821
  motion.div,
24822
24822
  {
package/dist/index.mjs CHANGED
@@ -9576,9 +9576,6 @@ var getAllWorkspaceDisplayNamesAsync = async (companyId, lineId) => {
9576
9576
  Object.entries(runtimeWorkspaceDisplayNames).forEach(([lineId2, lineNames]) => {
9577
9577
  Object.entries(lineNames).forEach(([workspaceId, displayName]) => {
9578
9578
  allNames[`${lineId2}_${workspaceId}`] = displayName;
9579
- if (!allNames[workspaceId]) {
9580
- allNames[workspaceId] = displayName;
9581
- }
9582
9579
  });
9583
9580
  });
9584
9581
  return allNames;
@@ -24707,7 +24704,8 @@ var VideoGridView = React23__default.memo(({
24707
24704
  displayName: (
24708
24705
  // Create line-aware lookup key: lineId_workspaceName
24709
24706
  // This ensures correct mapping when multiple lines have same workspace names
24710
- displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || displayNames[workspace.workspace_name] || getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id)
24707
+ displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || // Always pass line_id to fallback to ensure correct mapping per line
24708
+ getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id)
24711
24709
  ),
24712
24710
  useRAF: canvasConfig?.useRAF,
24713
24711
  compact: !selectedLine,
@@ -24757,7 +24755,8 @@ var MapGridView = React23__default.memo(({
24757
24755
  efficiency: workspace.efficiency,
24758
24756
  action_count: workspace.action_count
24759
24757
  });
24760
- const displayName = displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || displayNames[workspace.workspace_name] || getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id);
24758
+ const displayName = displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || // Always pass line_id to fallback to ensure correct mapping per line
24759
+ getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id);
24761
24760
  const navParams = getWorkspaceNavigationParams(workspaceId, displayName, workspace.line_id);
24762
24761
  router.push(`/workspace/${workspaceId}${navParams}`);
24763
24762
  }, [router, displayNames]);
@@ -24786,7 +24785,8 @@ var MapGridView = React23__default.memo(({
24786
24785
  if (!workspace) return null;
24787
24786
  const workspaceId = workspace.workspace_uuid || workspace.workspace_name;
24788
24787
  getPerformanceColor(workspace.efficiency);
24789
- const workspaceDisplayName = displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || displayNames[workspace.workspace_name] || getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id);
24788
+ const workspaceDisplayName = displayNames[`${workspace.line_id}_${workspace.workspace_name}`] || // Always pass line_id to fallback to ensure correct mapping per line
24789
+ getWorkspaceDisplayName(workspace.workspace_name, workspace.line_id);
24790
24790
  return /* @__PURE__ */ jsx(
24791
24791
  motion.div,
24792
24792
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optifye/dashboard-core",
3
- "version": "6.9.7",
3
+ "version": "6.9.8",
4
4
  "description": "Reusable UI & logic for Optifye dashboard",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",