davsclaus opened a new pull request, #23206:
URL: https://github.com/apache/camel/pull/23206

   ## Summary
   
   Add live exchange counters (success/failure) to the ASCII/Unicode text 
diagram renderer, matching the existing support in the image diagram renderer.
   
   - Add `metrics` flag to `RouteDiagramAsciiRenderer` with success counter 
(right of arrow) and failure counter (left of arrow), dashed arrows for 
zero-traffic paths
   - **TUI monitor**: `m` key toggles metrics on/off in diagram view, text 
diagram auto-refreshes counters on tick, image diagram uses F5 for manual 
refresh
   - **CLI**: `camel cmd route-diagram --theme=unicode` now shows ANSI-colored 
counters (green=success, red=failure)
   - Counter position tracking via `CounterPos` record enables callers to 
colorize counters independently (ANSI for CLI, TamboUI Spans for TUI)
   - Fix diagram flicker during live refresh by preserving scroll position and 
skipping loading placeholder on tick updates
   - Remove redundant `r=refresh` key and `Refresh: 100ms` footer label
   
   ## Test plan
   
   - [x] All 84 diagram tests pass (`mvn test -pl components/camel-diagram`)
   - [x] Full reactor build passes
   - [x] Code formatting passes
   - [ ] Run `camel tui monitor`, press `D` for text diagram, verify counters 
appear with green/red colors
   - [ ] Press `m` to toggle metrics off/on, verify counters appear/disappear
   - [ ] Verify text diagram auto-refreshes counters (no flicker)
   - [ ] Press `d` for image diagram with metrics, verify counters in image, 
press `F5` to refresh
   - [ ] Run `camel cmd route-diagram --theme=unicode --metric` and verify 
colored counters in terminal
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   _Claude Code on behalf of Claus Ibsen_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to