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

   ## Summary
   
   - Add arrow/line-based path highlighting to route diagrams (green for 
success, red for failure), with the last node boxed in red for FAIL mode
   - Add `--diagram` and `--theme` options to `camel get history` to render a 
route diagram with the message's traced path highlighted instead of the text 
table
   - Add `--diagram` and `--theme` options to `camel get error` to render a 
route diagram with the error's message history path highlighted in red
   - Change default theme for `camel cmd route-diagram` to `unicode`
   - General parent-node resolution for highlighted paths (handles scope EIPs 
like circuitBreaker, filter, split, doTry)
   - Support highlight in both ASCII/Unicode and PNG renderers
   
   ## How it works
   
   The highlight feature colors the arrows/lines between consecutive 
highlighted nodes. Node boxes remain normal except the last node in FAIL mode 
which gets a red border to indicate where the failure occurred.
   
   For `camel get history --diagram`, the style is auto-detected from the 
exchange status (success → green, fail → red). For `camel get error --diagram`, 
the style is always FAIL (red).
   
   ## Test plan
   
   - [x] Unit tests for highlight rendering (RouteDiagramTest)
   - [ ] Manual: `camel get history --diagram` on a running route
   - [ ] Manual: `camel get error --diagram` on a route with errors
   - [ ] Manual: `camel cmd route-diagram` defaults to unicode theme
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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