Skip to content

CAMEL-23648: camel-jbang - TUI HTTP probe, consumers schedule, beans and threads tabs#23651

Open
davsclaus wants to merge 12 commits into
mainfrom
obs3
Open

CAMEL-23648: camel-jbang - TUI HTTP probe, consumers schedule, beans and threads tabs#23651
davsclaus wants to merge 12 commits into
mainfrom
obs3

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Summary

  • HTTP Probe view: Send HTTP requests directly from the TUI HTTP tab (Enter on an endpoint). Supports editing method, path, headers, body. Pretty-print toggle for JSON/XML responses. Shows full URL for easy curl copy.
  • Consumers tab: Show schedule info (cron expressions, polling intervals) and since-last timing columns.
  • Beans tab (More menu): Browse the bean registry with name/type table, toggle internal Camel beans, detail view showing bean properties.
  • Threads tab (More menu): View JVM threads with state coloring, camel/all filter, stack trace detail view with Camel frame highlighting.
  • Fixes: REST DSL endpoints now show correct port (not default 80), number keys and q no longer intercepted during probe editing.

Test plan

  • Run camel monitor against a running integration
  • Press 5 (HTTP tab) → Enter on an endpoint → verify probe view works (edit path, send request, toggle pretty print with p)
  • Press 0 (More) → select Beans → verify bean list, i toggles internal, Enter shows properties
  • Press 0 (More) → select Threads → verify thread list, f toggles camel/all filter, Enter shows stack trace
  • Verify PgUp/PgDn works in Beans and Threads table views
  • Press 3 (Consumers) → verify schedule and since-last columns

🤖 Generated with Claude Code

davsclaus and others added 3 commits May 30, 2026 11:17
…pdate cron-log example

Co-Authored-By: Claude <noreply@anthropic.com>
…quests

Add a Postman-like HTTP Probe sub-view accessible via Enter on any endpoint
in the HTTP tab. Features include method selector, path/headers/body input,
response display with status/headers/body, request history with replay,
pretty print toggle for JSON/XML responses, and proper key handling
isolation from global shortcuts.

Co-Authored-By: Claude <noreply@anthropic.com>
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
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 30, 2026

🧪 CI tested the following changed modules:

  • core/camel-console
  • dsl/camel-cli-connector
  • dsl/camel-jbang/camel-jbang-core
  • dsl/camel-jbang/camel-jbang-plugin-tui

⚠️ Some tests are disabled on GitHub Actions (@DisabledIfSystemProperty(named = "ci.env.name")) and require manual verification:

  • dsl/camel-jbang/camel-jbang-core: 1 test(s) disabled on GitHub Actions

💡 Manual integration tests recommended:

You modified dsl/camel-jbang/camel-jbang-core. The related integration tests in dsl/camel-jbang/camel-jbang-it are excluded from CI. Consider running them manually:

mvn verify -f dsl/camel-jbang/camel-jbang-it -Djbang-it-test
All tested modules (14 modules)
  • Camel :: All Core Sync point
  • Camel :: Console
  • Camel :: DSL :: CLI Connector
  • Camel :: DSL :: CLI Debug
  • Camel :: Diagram
  • Camel :: JBang :: Console
  • Camel :: JBang :: Core
  • Camel :: JBang :: MCP
  • Camel :: JBang :: Plugin :: Route Parser
  • Camel :: JBang :: Plugin :: TUI
  • Camel :: JBang :: Plugin :: Validate
  • Camel :: Launcher :: Container
  • Camel :: YAML DSL :: Validator
  • Camel :: YAML DSL :: Validator Maven Plugin

⚙️ View full build and test results

davsclaus and others added 9 commits May 30, 2026 19:48
…sh popups

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… messages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…tion bars

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… sort column order

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…tch visual layout

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…l stats

Co-Authored-By: Claude <noreply@anthropic.com>
…re shortcut keys

Add F3 popup to switch between integrations while staying on the current
tab. Integrations are sorted case-insensitively by name. More popup items
now have highlighted shortcut keys (B/w/C/g/n/I/M/S/T) for quick selection.

Fix tabs not reloading data when switching integration: Threads, Beans,
Browse, Startup, and History tabs now trigger a data reload in
onIntegrationChanged() instead of just clearing stale data.

Co-Authored-By: Claude <noreply@anthropic.com>
…itch

Startup, Configuration, Consumers, Circuit Breaker, and Inflight tabs
were missing from resetIntegrationTabState() so they kept showing stale
data when switching integration via F3.

Co-Authored-By: Claude <noreply@anthropic.com>
…to Memory tab

Extract StatusParser (JSON parsing) and OverviewTab (overview rendering,
sorting, sparkline charts) from CamelMonitor, reducing it from 4284 to
2674 lines. Add thread count (current/peak) to the Memory tab.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the core label May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants