Skip to content

CAMEL-23519: Add notification badges to TUI tab labels#23238

Merged
davsclaus merged 1 commit into
mainfrom
CAMEL-23519
May 15, 2026
Merged

CAMEL-23519: Add notification badges to TUI tab labels#23238
davsclaus merged 1 commit into
mainfrom
CAMEL-23519

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Summary

  • Add (n) notification badges to tab labels in yellow bold
  • Overview shows active integration count, other tabs show relevant data counts
  • Trace tab shows (*) when trace data exists
  • Badges are 0 (hidden) when no integration is selected
  • Counts update in real-time on each render tick
  • Separate Escape from Quit: Escape navigates back/unselects, q/Ctrl+c quits

Test plan

  • Module builds successfully
  • Code formatting passes
  • Run camel tui monitor and verify badges appear on tabs
  • Verify badges update as data changes
  • Verify Escape unselects integration on overview, q quits

🤖 Generated with Claude Code

Claude Code on behalf of Claus Ibsen

Show (n) notification counts on each tab label in yellow bold:
- Overview: active integration count
- Routes, Endpoints, Health: from selected integration data
- Log: filtered log entry count
- History: history entry count (loaded on integration select)
- Trace: (*) indicator when trace data exists

Counts are 0 (no badge) when no integration is selected.
Badges update in real-time on each render tick.

Also separate Escape from Quit: Escape navigates back and
unselects integration, q/Ctrl+c quits the TUI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.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 15, 2026
@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 36026da into main May 15, 2026
6 checks passed
@davsclaus davsclaus deleted the CAMEL-23519 branch May 15, 2026 14:39
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