This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch fix/camel-tui-log-buffer
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6bc1588ea98f5c131c0c7c59638e71d5d242fe88
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun May 17 13:25:28 2026 +0200

    CAMEL-23514: TUI UX polish - Log (*) badge, Last tab, JBang platform 
detection
    
    - Show Log (*) in yellow in tab header when log lines are present
    - Rename History tab to Last
    - Detect JBang platform from process command line; show as 'JBang v0.x.y'
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 .../dsl/jbang/core/commands/tui/CamelMonitor.java      | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 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 d135a2fe1e15..c45e08ebd104 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
@@ -1069,13 +1069,16 @@ public class CamelMonitor extends CamelCommand {
         Tabs tabs = Tabs.builder()
                 .titles(
                         badge(" 1 Overview ", activeCount),
-                        Line.from(" 2 Log "),
+                        filteredLogEntries.isEmpty()
+                                ? Line.from(" 2 Log ")
+                                : Line.from(Span.raw(" 2 Log "), 
Span.styled("(*)", Style.EMPTY.fg(Color.YELLOW).bold()),
+                                        Span.raw(" ")),
                         badge(" 3 Routes ", routeCount),
                         badge(" 4 Consumers ", consumerCount),
                         badge(" 5 Endpoints ", endpointCount),
                         badgeCb(" 6 Circuit Breaker ", cbCount, cbOpenCount),
                         badgeHealth(" 7 Health ", healthCount, 
healthDownCount),
-                        badge(" 8 History ", historyCount),
+                        badge(" 8 Last ", historyCount),
                         hasTraces
                                 ? Line.from(Span.raw(" 9 Trace "), 
Span.styled("(*)", Style.EMPTY.fg(Color.YELLOW).bold()),
                                         Span.raw(" "))
@@ -1379,7 +1382,7 @@ public class CamelMonitor extends CamelCommand {
             // Identity
             if (sel.platform != null) {
                 String plat = sel.platformVersion != null
-                        ? sel.platform + "/" + sel.platformVersion
+                        ? sel.platform + " v" + sel.platformVersion
                         : sel.platform;
                 lines.add(Line.from(
                         Span.styled("Runtime: ", dim),
@@ -4529,6 +4532,15 @@ public class CamelMonitor extends CamelCommand {
         JsonObject runtime = (JsonObject) root.get("runtime");
         info.platform = runtime != null ? runtime.getString("platform") : null;
         info.platformVersion = runtime != null ? 
runtime.getString("platformVersion") : null;
+        if ("Camel".equals(info.platform)) {
+            String cl = ph.info().commandLine().orElse("");
+            if (cl.contains("main.CamelJBang run")) {
+                info.platform = "JBang";
+                if (info.platformVersion == null) {
+                    info.platformVersion = VersionHelper.getJBangVersion();
+                }
+            }
+        }
         info.javaVersion = runtime != null ? runtime.getString("javaVersion") 
: null;
         info.javaVendor = runtime != null ? runtime.getString("javaVendor") : 
null;
         info.javaVmName = runtime != null ? runtime.getString("javaVmName") : 
null;

Reply via email to