Skip to content

CAMEL-23569: camel-tui: Add support for camel-test-infra services#23379

Merged
davsclaus merged 5 commits into
mainfrom
tui-infra-CAMEL-23569
May 20, 2026
Merged

CAMEL-23569: camel-tui: Add support for camel-test-infra services#23379
davsclaus merged 5 commits into
mainfrom
tui-infra-CAMEL-23569

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Summary

  • Add infrastructure service management to the TUI monitor, so running camel infra services are visible and controllable from the TUI dashboard
  • Discover running infra services by scanning ~/.camel/infra-*.json files and display them in a separate Infrastructure table below integrations in the overview
  • Show connection details (host, port, credentials, URLs) in the info panel when an infra service is selected
  • Support tailing infra service logs (infra-{alias}-{pid}.log) in the Log tab
  • Add stop (x key, graceful) and kill (X key, SIGKILL) actions for both infra services and integrations from the overview

Test plan

  • Start an infra service (camel infra run kafka --background) and verify it appears in the Infrastructure table
  • Select the infra service and verify connection details show in the info panel
  • Press Enter on infra service, switch to Log tab and verify container logs are displayed
  • Press x on an infra service and verify graceful shutdown
  • Press X on an infra service and verify force kill
  • Press x/X on a running integration and verify stop/kill behavior
  • Verify arrow-key navigation crosses seamlessly between integrations and infra tables
  • Verify vanishing animation works when infra services are stopped
  • Verify header shows infra count (e.g. "2 infra" in magenta)

Claude Code on behalf of Claus Ibsen

🤖 Generated with Claude Code

davsclaus and others added 4 commits May 20, 2026 16:31
Add infrastructure service management to the TUI monitor including:
- Discover running infra services by scanning ~/.camel/infra-*.json files
- Show infra services in a separate table below integrations in the overview
- Display connection details (host, port, credentials) in the info panel
- Support infra service logs in the Log tab
- Add stop/kill (x/X keys) for both infra services and integrations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collapse integrations table when empty so infra table fills the space,
show info panel for selected infra without sparkline, and allow Log tab
to display container logs for infra services.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Show one table at a time on the overview instead of stacking both.
Press 'i' to swap views. Auto-focus infra when no integrations exist.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Show only Overview and Log tabs when infra is selected. Use magenta
for infra selection in header. Hide Enter hint and log level shortcut
for infra. Fix infra count to show "infra(s)".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the dsl label May 20, 2026
@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.

Show confirm dialog before force-killing a process. Clean up all
orphaned files (.log, -status.json, -action.json, -output.json,
-trace.json, -history.json, -debug.json, -receive.json) after
force kill for both integrations and infra services.

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

github-actions Bot commented May 20, 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 davsclaus merged commit 24360ad into main May 20, 2026
6 checks passed
@davsclaus davsclaus deleted the tui-infra-CAMEL-23569 branch May 20, 2026 16:09
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