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

   ## Summary
   
   - Add **Errors tab** to Camel TUI with master/detail layout for viewing 
captured routing errors from the ErrorRegistry
   - Separate error data into dedicated `{pid}-error.json` file to keep status 
file lightweight — status file only contains error count for badge display, 
full data loaded on demand
   - Update `camel get error` CLI to read from the separate error file
   - Reorder TUI tabs: Overview, Log, Routes, Endpoints, HTTP, Health, Inspect, 
**Errors**, Circuit Breaker, Consumers
   - Fix word-wrap content height underestimation in `renderDetailPanel` that 
prevented scrolling to the bottom of detail panes
   
   ### Errors Tab Features
   - Table columns: ID, AGO, ROUTE, NODE, HANDLED (green/red), EXCEPTION, 
MESSAGE
   - Sortable by: id, age, route, node, exception (`s` key to cycle, `S` to 
reverse)
   - Detail pane shows: exception with stack trace, message history, exchange 
properties, variables, headers, body
   - Toggles: `f` handled filter [all/true/false], `p` properties, `v` 
variables, `h` headers, `b` body, `w` word-wrap
   - Navigation: `PgUp/PgDn` scroll detail, `Home/End` top/bottom, `←→` 
horizontal scroll (when wrap off)
   - Badge shows error count in red on tab bar
   
   ## Test plan
   
   - [ ] Run a Camel integration that produces errors (e.g., circuit-breaker 
example with forced exceptions)
   - [ ] Open TUI and press `8` to switch to Errors tab
   - [ ] Verify error table shows captured errors with correct columns and 
badge count
   - [ ] Select an error and verify detail pane shows exception, stack trace, 
message history, headers, body
   - [ ] Test scroll: PgUp/PgDn, Home/End, arrow keys with wrap off
   - [ ] Test toggles: s (sort), f (handled filter), p/v/h/b (section toggles), 
w (word wrap)
   - [ ] Verify `camel get error` CLI still works correctly
   - [ ] Verify other tabs are unaffected by the tab reorder
   
   _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