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

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

commit f12b9e5f9df6fd01208fa4d3bd949713d0ea316c
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon May 18 10:09:10 2026 +0200

    TUI: fix HTTP tab sort display to match other tabs
    
    Sort indicator now uses the standard pattern: title shows sort:<name>,
    active column header shows LABEL▼/▲ in yellow bold, inactive headers
    are plain bold. Adds httpSortLabel/httpSortStyle helpers consistent
    with cbSortLabel, traceSortLabel, etc.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 .../camel/dsl/jbang/core/commands/tui/CamelMonitor.java | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 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 4bb2862a8527..7030b1deeb81 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
@@ -2905,6 +2905,14 @@ public class CamelMonitor extends CamelCommand {
         return sortStyle(column, cbSort);
     }
 
+    private String httpSortLabel(String label, String column) {
+        return sortLabel(label, column, httpSort, httpSortReversed);
+    }
+
+    private Style httpSortStyle(String column) {
+        return sortStyle(column, httpSort);
+    }
+
     private int sortCircuitBreaker(CircuitBreakerInfo a, CircuitBreakerInfo b) 
{
         int result = switch (cbSort) {
             case "id" -> compareStr(a.id, b.id);
@@ -3604,14 +3612,13 @@ public class CamelMonitor extends CamelCommand {
                             "Stopped".equals(state) ? 
Style.EMPTY.fg(Color.LIGHT_RED) : Style.EMPTY))));
         }
 
-        String sortLabel = httpSort + (httpSortReversed ? " ↓" : " ↑");
-        String title = String.format(" HTTP Services [%d] sort:%s ", 
visible.size(), sortLabel);
+        String title = String.format(" HTTP Services [%d] sort:%s ", 
visible.size(), httpSort);
 
         Row header = Row.from(
-                Cell.from(Span.styled("METHOD", Style.EMPTY.bold())),
-                Cell.from(Span.styled("PATH", Style.EMPTY.bold())),
+                Cell.from(Span.styled(httpSortLabel("METHOD", "method"), 
httpSortStyle("method"))),
+                Cell.from(Span.styled(httpSortLabel("PATH", "path"), 
httpSortStyle("path"))),
                 Cell.from(Span.styled("PRODUCES", Style.EMPTY.bold())),
-                Cell.from(Span.styled("SOURCE", Style.EMPTY.bold())),
+                Cell.from(Span.styled(httpSortLabel("SOURCE", "source"), 
httpSortStyle("source"))),
                 Cell.from(Span.styled("STATE", Style.EMPTY.bold())));
 
         Table table = Table.builder()

Reply via email to