Update messages.js

frdel committed Jan 26, 2026 at 14:21 UTC 873a024096255720adf259792301323f3060d05d
1 file changed +9 -9
webui/js/messages.js
+9 -9
@@ -454,11 +454,11 @@ function drawProcessStep({
454
455 //expand all
456 if (detailMode === "expanded") {
457 - step.classList.add("step-expanded");
457 + step.classList.add("expanded");
458 // expand current step and schedule collapse of previous
459 } else if (detailMode === "current") {
460 if (isActiveGroup && !isGroupCompleted) {
461 - step.classList.add("step-expanded");
461 + step.classList.add("expanded");
462 const allExpandedSteps = stepsContainer.querySelectorAll(
463 ".process-step.expanded",
464 );
@@ -472,7 +472,7 @@ function drawProcessStep({
472 }
473
474 // is step expanded?
475 - const isExpanded = step.classList.contains("step-expanded");
475 + const isExpanded = step.classList.contains("expanded");
476
477 // create step header
478 const stepHeader = ensureChild(
@@ -515,8 +515,8 @@ function drawProcessStep({
515 stepHeader.addEventListener("click", (e) => {
516 e.stopPropagation();
517 cancelStepCollapse(step);
518 - step.classList.toggle("step-expanded");
519 - if (step.classList.contains("step-expanded")) {
518 + step.classList.toggle("expanded");
519 + if (step.classList.contains("expanded")) {
520 step.setAttribute("data-user-pinned", "true");
521 } else {
522 step.removeAttribute("data-user-pinned");
@@ -2021,7 +2021,7 @@ function scheduleStepCollapse(stepElement, delayMs) {
2021
2022 // Schedule the collapse
2023 const timeoutId = setTimeout(() => {
2024 - stepElement.classList.remove("step-expanded");
2024 + stepElement.classList.remove("expanded");
2025 stepElement.removeAttribute("data-collapse-timeout-id");
2026 // Clear user-pinned flag when auto-collapsing
2027 stepElement.removeAttribute("data-user-pinned");
@@ -2051,7 +2051,7 @@ function cancelStepCollapse(stepElement) {
2051 function addStepCollapseInteractionHandlers(stepElement) {
2052 // On hover, cancel the timeout to keep it open while user is reading
2053 stepElement.addEventListener("mouseenter", () => {
2054 - if (stepElement.classList.contains("step-expanded")) {
2054 + if (stepElement.classList.contains("expanded")) {
2055 cancelStepCollapse(stepElement);
2056 }
2057 });
@@ -2065,7 +2065,7 @@ function addStepCollapseInteractionHandlers(stepElement) {
2065
2066 // Don't restart timeout if user has explicitly interacted (clicked)
2067 if (
2068 - stepElement.classList.contains("step-expanded") &&
2068 + stepElement.classList.contains("expanded") &&
2069 !stepElement.hasAttribute("data-user-pinned")
2070 ) {
2071 scheduleStepCollapse(stepElement, STEP_COLLAPSE_DELAY_MS);
@@ -2074,7 +2074,7 @@ function addStepCollapseInteractionHandlers(stepElement) {
2074
2075 // On click anywhere on step, permanently cancel auto-collapse
2076 stepElement.addEventListener("click", () => {
2077 - if (stepElement.classList.contains("step-expanded")) {
2077 + if (stepElement.classList.contains("expanded")) {
2078 cancelStepCollapse(stepElement);
2079 // Mark as user-pinned so mouseleave won't restart timeout
2080 stepElement.setAttribute("data-user-pinned", "true");