You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/05/20 08:49:57 UTC
(camel) 03/05: camel-jbang - TUI top mode processor table only shows processors
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch worktree-more-tui-4
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 089fc08d1627a383fb59080d5d12e82bc9e7ed05
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed May 20 10:12:14 2026 +0200
camel-jbang - TUI top mode processor table only shows processors
Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
.../camel/dsl/jbang/core/commands/tui/CamelMonitor.java | 15 ---------------
1 file changed, 15 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 2fb545e1bead..03746ef53542 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
@@ -2233,21 +2233,6 @@ public class CamelMonitor extends CamelCommand {
if (routeTopMode) {
List<Row> rows = new ArrayList<>();
- // Synthetic top row representing the route itself
- Style routeStyle = route.failed > 0 ? Style.EMPTY.fg(Color.LIGHT_RED) : Style.EMPTY.fg(Color.CYAN);
- rows.add(Row.from(
- Cell.from(" route"),
- Cell.from(Span.styled(route.from != null ? route.from : route.routeId, routeStyle)),
- rightCell(route.total > 0 ? String.valueOf(route.meanTime) : "", 6, topTimeStyle(route.meanTime)),
- rightCell(route.total > 0 ? String.valueOf(route.maxTime) : "", 6, topTimeStyle(route.maxTime)),
- rightCell(route.total > 0 ? String.valueOf(route.minTime) : "", 6),
- rightCell(route.total > 0 ? String.valueOf(route.lastTime) : "", 6),
- rightCell(route.deltaTime != 0 ? String.valueOf(route.deltaTime) : "", 6, topDeltaStyle(route.deltaTime)),
- rightCell(String.valueOf(route.total), 8),
- rightCell(String.valueOf(route.failed), 6,
- route.failed > 0 ? Style.EMPTY.fg(Color.LIGHT_RED) : Style.EMPTY),
- rightCell(String.valueOf(route.inflight), 8)));
-
List<ProcessorInfo> sorted = new ArrayList<>(route.processors);
sorted.sort(this::sortProcessorTop);