Skip to content

CAMEL-23572: camel-tui: Add F2 actions menu with example browser#23403

Merged
davsclaus merged 4 commits into
mainfrom
worktree-tui7
May 21, 2026
Merged

CAMEL-23572: camel-tui: Add F2 actions menu with example browser#23403
davsclaus merged 4 commits into
mainfrom
worktree-tui7

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Summary

  • Adds an F2 actions menu to the TUI overview tab with a "Run an example..." action
  • Example browser popup shows all 21 curated examples grouped by level (beginner/intermediate/advanced)
  • Each example shows bundled/online and Docker icons (📦/🌐/🐳) with a legend
  • Long descriptions word-wrap without splitting words
  • Selecting an example launches it asynchronously via camel run --example=<name>
  • Status notifications appear in the header (green on success, red on failure)
  • Supports Up/Down, Page Up/Down navigation and auto-scrolling

Test plan

  • Press F2 on overview tab → actions menu appears centered
  • Select "Run an example..." → example browser shows 21 examples grouped by level
  • Verify emojis and legend display correctly
  • Navigate with Up/Down and Page Up/Down → cursor skips separator lines
  • Select a bundled example (e.g., timer-log) → popup closes, process starts, notification shows
  • Verify launched integration appears in overview after a few seconds
  • Esc from browser → back to actions menu; Esc from actions → closes
  • Footer hints update correctly for each popup state

Claude Code on behalf of Claus Ibsen

🤖 Generated with Claude Code

davsclaus and others added 2 commits May 21, 2026 09:49
Adds an F2 actions menu to the TUI overview tab that lets users browse
and run examples directly. The example browser shows all 21 curated
examples grouped by level (beginner/intermediate/advanced) with async
process launch and status notifications.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Move F2 hint after q in footer
- Add emojis (bundled/online/docker) and legend to example browser
- Widen popup to 100 chars and word-wrap long descriptions
- Add Page Up/Down support for faster navigation
- Fix separator skipping for all level headers
- Use AUTO_SCROLL so list follows selection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions github-actions Bot added the dsl label May 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

🧪 CI tested the following changed modules:

  • dsl/camel-jbang/camel-jbang-plugin-tui
All tested modules (2 modules)
  • Camel :: JBang :: Plugin :: TUI
  • Camel :: Launcher :: Container

⚙️ View full build and test results

davsclaus and others added 2 commits May 21, 2026 10:28
Move all F2 actions menu and example browser logic out of CamelMonitor
into a dedicated ActionsPopup class (~320 lines). CamelMonitor now
delegates via a simple API (open/close/handleKeyEvent/render/tick).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add 'r' key in example browser to launch with custom name, with auto
clash detection. Style dialog titleBottom footers with yellow+bold keys
matching the regular footer bar.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@davsclaus davsclaus merged commit 5b92595 into main May 21, 2026
6 checks passed
@davsclaus davsclaus deleted the worktree-tui7 branch May 21, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant