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 1b9149e4542e39f65865e0a92b0a35a2cb3ca6c6 Author: Claus Ibsen <[email protected]> AuthorDate: Tue May 19 17:02:02 2026 +0200 camel-jbang - Right-align ELAPSED and STEPS columns in TUI trace tables Co-Authored-By: Claude Opus 4.6 <[email protected]> --- .../camel/dsl/jbang/core/commands/tui/CamelMonitor.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 3d85f0d82e6b..0defa6007812 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 @@ -4055,8 +4055,8 @@ public class CamelMonitor extends CamelCommand { s.routeId != null ? truncate(s.routeId, 15) : "", Style.EMPTY.fg(Color.CYAN))), Cell.from(Span.styled(s.status, statusStyle)), - Cell.from(String.format("%7s", s.elapsed + "ms")), - Cell.from(String.format("%6s", s.steps)), + rightCell(s.elapsed + "ms", 10), + rightCell(String.valueOf(s.steps), 6), Cell.from(s.exchangeId))); } @@ -4064,8 +4064,8 @@ public class CamelMonitor extends CamelCommand { Cell.from(Span.styled(traceSortLabel("TIME", "time"), traceSortStyle("time"))), Cell.from(Span.styled(traceSortLabel("ROUTE", "route"), traceSortStyle("route"))), Cell.from(Span.styled("STATUS", Style.EMPTY.bold())), - Cell.from(Span.styled(traceSortLabel("ELAPSED", "elapsed"), traceSortStyle("elapsed"))), - Cell.from(Span.styled("STEPS", Style.EMPTY.bold())), + rightCell(traceSortLabel("ELAPSED", "elapsed"), 10, traceSortStyle("elapsed")), + rightCell("STEPS", 6, Style.EMPTY.bold()), Cell.from(Span.styled(traceSortLabel("EXCHANGE", "exchange"), traceSortStyle("exchange")))); String traceTitle = String.format(" Traces [%d] sort:%s ", summaries.size(), traceSort); @@ -4492,7 +4492,7 @@ public class CamelMonitor extends CamelCommand { Cell.from(Span.styled(routeId != null ? truncate(routeId, 15) : "", Style.EMPTY.fg(Color.CYAN))), Cell.from(nodeId != null ? truncate(nodeId, 15) : ""), Cell.from(processor != null ? processor : ""), - Cell.from(elapsedStr)); + rightCell(elapsedStr, 10)); } private static Table buildStepTable(List<Row> rows, Object title) { @@ -4502,7 +4502,7 @@ public class CamelMonitor extends CamelCommand { Cell.from(Span.styled("ROUTE", Style.EMPTY.bold())), Cell.from(Span.styled("ID", Style.EMPTY.bold())), Cell.from(Span.styled("PROCESSOR", Style.EMPTY.bold())), - Cell.from(Span.styled("ELAPSED", Style.EMPTY.bold()))); + rightCell("ELAPSED", 10, Style.EMPTY.bold())); Block block = title instanceof Title t ? Block.builder().borderType(BorderType.ROUNDED).title(t).build() : Block.builder().borderType(BorderType.ROUNDED).title(title.toString()).build();
