@fluxhub/fluxhub-lib 19.0.118 → 19.0.120

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.
@@ -32218,14 +32218,15 @@ class BpmnEditorComponent {
32218
32218
  // Try to extract step number from element ID or name
32219
32219
  const stepNumber = this.extractStepNumber(elementId, elementName);
32220
32220
  if (stepNumber !== null) {
32221
- // Check if this step is completed
32222
- if (this.completedSteps.includes(stepNumber)) {
32223
- canvas.addMarker(elementId, 'highlight-completed');
32224
- }
32225
- // Check if this is the current step
32226
- else if (this.currentStep === stepNumber) {
32221
+ // IMPORTANT: Check current step FIRST to ensure it gets orange color
32222
+ // even if it's also in completedSteps array
32223
+ if (this.currentStep === stepNumber) {
32227
32224
  canvas.addMarker(elementId, 'highlight-current');
32228
32225
  }
32226
+ // Then check if this step is completed (apply green)
32227
+ else if (this.completedSteps.includes(stepNumber)) {
32228
+ canvas.addMarker(elementId, 'highlight-completed');
32229
+ }
32229
32230
  }
32230
32231
  });
32231
32232
  }