This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch worktree-more-tui-2 in repository https://gitbox.apache.org/repos/asf/camel.git
commit a117ec8433c1991c6f22c2b1ed73e4e4e59e4b9e Author: Claus Ibsen <[email protected]> AuthorDate: Tue May 19 17:37:13 2026 +0200 camel-jbang - Fix badge indices for HTTP and circuit breaker tabs in TUI The HTTP tab at index 5 had no badge, and Health/Inspect/CircuitBreaker badges were assigned to indices 5/6/7 instead of 6/7/8 respectively. Co-Authored-By: Claude Opus 4.6 <[email protected]> --- .../dsl/jbang/core/commands/tui/CamelMonitor.java | 25 +++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java index cc05d09012a1..14b2caae3386 100644 --- a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java +++ b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java @@ -1233,27 +1233,26 @@ public class CamelMonitor extends CamelCommand { if (endpointCount > 0) { badgeTexts[4] = "(" + endpointCount + ")"; } + if (httpCount > 0) { + badgeTexts[5] = "(" + httpCount + ")"; + } if (healthDownCount > 0) { - badgeTexts[5] = "(" + healthDownCount + " DOWN)"; - badgeStyles[5] = red; + badgeTexts[6] = "(" + healthDownCount + " DOWN)"; + badgeStyles[6] = red; } else if (healthCount > 0) { - badgeTexts[5] = "(" + healthCount + ")"; + badgeTexts[6] = "(" + healthCount + ")"; } - // Inspect tab (7): show tracer active (*) in cyan, or history count in yellow if (hasTraces) { - badgeTexts[6] = "(*)"; - badgeStyles[6] = cyan; + badgeTexts[7] = "(*)"; + badgeStyles[7] = cyan; } else if (historyCount > 0) { - badgeTexts[6] = "(" + historyCount + ")"; + badgeTexts[7] = "(" + historyCount + ")"; } if (cbOpenCount > 0) { - badgeTexts[7] = "(" + cbOpenCount + " OPEN)"; - badgeStyles[7] = red; + badgeTexts[8] = "(" + cbOpenCount + " OPEN)"; + badgeStyles[8] = red; } else if (cbCount > 0) { - badgeTexts[7] = "(" + cbCount + ")"; - } - if (httpCount > 0) { - badgeTexts[8] = "(" + httpCount + ")"; + badgeTexts[8] = "(" + cbCount + ")"; } int tabX = 0;
