Skip to content

TUI: endpoints tab flow panel and mirrored activity chart#23266

Merged
davsclaus merged 2 commits into
mainfrom
fix/camel-tui-endpoint
May 17, 2026
Merged

TUI: endpoints tab flow panel and mirrored activity chart#23266
davsclaus merged 2 commits into
mainfrom
fix/camel-tui-endpoint

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Summary

  • Adds a flow panel below the endpoints table showing cumulative in/out message counts as an ASCII arrow diagram with the integration box at the centre
  • Adds a 60-second sliding window mirrored activity chart: in-traffic (green) grows upward from the centre axis, out-traffic (blue) grows downward — matching the macOS Activity Monitor network graph style
  • Sub-pixel rendering via Unicode block characters (▁▂▃▄▅▆▇█) gives smooth vertical resolution
  • Y-axis labels (max / 0 / max) and x-axis time labels (-60s, -45s, -30s, -15s, now) matching the overview tab style
  • Extracts the chart into a standalone MirroredSparkline widget, structured as a TamboUI-compatible Widget with builder pattern and full Javadoc, intended for upstream contribution to the TamboUI project

Test plan

  • Run a Camel integration with camel-jbang and open the TUI monitor
  • Navigate to the Endpoints tab and verify the flow panel appears below the table
  • Verify the chart shows green bars growing upward for in-traffic and blue bars growing downward for out-traffic
  • Verify x-axis labels (-60s … now) appear at the bottom of the chart
  • Verify y-axis labels (max / 0 / max) appear on the left of the chart
  • Verify the chart correctly scales to the terminal width and height

Claude Code on behalf of Claus Ibsen

🤖 Generated with Claude Code

davsclaus and others added 2 commits May 17, 2026 16:03
…with x-axis legend)

Add a flow panel below the endpoints table showing in/out traffic as
an ASCII arrow diagram plus a 60-second sliding window chart. The chart
uses a macOS Activity Monitor style mirrored layout: in-traffic (green)
grows upward from centre, out-traffic (blue) grows downward. Sub-pixel
Unicode block characters give smooth vertical resolution. X-axis labels
(-60s, -45s, -30s, -15s, now) match the overview tab style.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ering

Move the custom mirrored bar chart into a standalone MirroredSparkline
widget class. The widget renders two long[] time-series as sub-pixel
vertical bars growing in opposite directions from a shared centre axis —
matching the macOS Activity Monitor network/disk graph style. Supports
optional y-axis labels, x-axis labels, configurable BarSet, and a Block
wrapper. Reuses Sparkline.BarSet from the existing TamboUI Sparkline widget.

The class is structured as a first-class TamboUI Widget (direct Buffer
writes, builder pattern, full Javadoc including a comparison table against
Sparkline) and is intended for upstream contribution to TamboUI under
dev.tamboui.widgets.sparkline.

Co-Authored-By: Claude Sonnet 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

🧪 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 92903a5 into main May 17, 2026
6 checks passed
@davsclaus davsclaus deleted the fix/camel-tui-endpoint branch May 17, 2026 14:41
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