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

   ## Summary
   
   - Adds YAML/Java/XML format tabs to the TUI source viewer title bar when 
viewing route source code
   - Press `Y`/`J`/`X` to switch between DSL representations of the same route
   - Original source format is marked with `*` (e.g., `YAML*`); selected format 
is bold
   - Original tab loads from `SourceDevConsole` (real file from disk), 
converted tabs load from `RouteDumpDevConsole` (in-memory model dump)
   - Format tabs only appear for route source viewing, not generic file viewing 
(e.g., application.properties)
   - Results are cached per route per format for instant switching
   
   ## Test plan
   
   - [ ] Start a YAML-based Camel app: `camel run examples/timer-log.yaml`
   - [ ] Open TUI: `camel cmd tui`
   - [ ] Navigate to Routes tab, press `c` to open source viewer
   - [ ] Verify title shows `YAML* │ Java │ XML` with YAML bold (original)
   - [ ] Press `J` → loads Java DSL dump, title updates
   - [ ] Press `X` → loads XML dump
   - [ ] Press `Y` → back to original YAML source (from file)
   - [ ] Press `J` again → loads from cache (instant)
   - [ ] Open a generic file (e.g., from config tab) → no format tabs shown
   
   > [!NOTE]
   > Requires [#24052](https://github.com/apache/camel/pull/24052) (Java DSL 
dump support) to be merged for the `J` (Java) tab to return results. YAML and 
XML tabs work independently.
   
   _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