Claus Ibsen created CAMEL-23572:
-----------------------------------

             Summary: camel-tui - Add F2 actions menu with Run an example to 
overview page
                 Key: CAMEL-23572
                 URL: https://issues.apache.org/jira/browse/CAMEL-23572
             Project: Camel
          Issue Type: Improvement
          Components: camel-jbang
            Reporter: Claus Ibsen


The TUI overview page currently only monitors running Camel integrations. Add 
an F2 actions menu popup that provides quick actions, starting with "Run an 
example..." which opens an example browser using the catalog from CAMEL-23566.

*Design:*
- F2 on the overview page opens a small actions menu popup (extensible for 
future actions)
- Selecting "Run an example..." opens an example browser popup showing all 21 
catalog examples grouped by level (beginner, intermediate, advanced), sorted 
alphabetically within each group
- Each example shows emoji indicators: bundled (works offline), online (fetched 
from GitHub), requires Docker
- Selecting an example spawns a {{camel run --example=<name>}} process in the 
background
- The TUI monitors the spawned process asynchronously: if it exits quickly with 
an error, a diagnostic notification is shown; if it starts successfully, it 
appears automatically in the overview table via the existing polling mechanism
- Escape navigates back through the popup chain (browser -> actions menu -> 
closed)
- Footer hints update contextually for each popup state

This builds on CAMEL-23566 which added the example catalog and {{--example}} 
flag to {{camel run}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to