TUI: load averages, UX improvements, lazy loading, navigation fixes#23269
Merged
Conversation
Displays 1m/5m/15m exponentially weighted moving averages for both process CPU% (sampled via ProcessHandle.totalCpuDuration delta) and inflight exchange concurrency in the overview info panel, mirroring the Unix uptime load average convention used by Camel's own LoadTriplet. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… from JSON - Extract sortedOverviewInfos() so renderOverview, syncSelectedPidFromOverview, selectCurrentIntegration, and navigateDown all use the same sorted order; previously UP/DOWN keys resolved row index against an unsorted list while the table rendered a sorted one, causing the wrong integration to be selected - Read inflight load01/05/15 directly from the management JSON (already computed by ManagedCamelContext.LoadTriplet and serialized by ContextDevConsole) instead of maintaining a redundant local EWMA; works correctly for remote processes too Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Gate log file tailing on Log tab being active; reset file position on tab switch so the next tick picks up correctly — avoids disk reads on every tick when on other tabs (was the only reason for the (*) indicator which has now been removed from the Log tab header) - Gate trace file reads on Trace tab being active; tab-switch handler already does an explicit load so tick-level reads were redundant - Remove eager refreshHistoryData/refreshTraceData from selection-change handlers; handleTabKey already loads on demand when switching to those tabs - Move Circuit Breaker to tab 9 (last); shift Health→6, Last→7, Trace→8 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tabs 4, 5, 6 have no detail action yet. Remove highlightStyle and highlightSpacing(ALWAYS) from the table builders so no selection highlight appears, and drop the navigateUp/navigateDown cases for these tabs so cursor keys are inert on them. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…h tabs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Contributor
|
🧪 CI tested the following changed modules:
All tested modules (2 modules)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ProcessHandle.totalCpuDuration()) and inflight load averages (1m/5m/15m) to the overview info panel; inflight EWMA is read from the existingload01/load05/load15JSON fields already produced byManagedCamelContext, making it remote-ready(*)indicator from Log tab headera = chart [all|single|off]toggle on overview tab anda = chart [all|off]toggle on endpoints tab; increase endpoint flow panel height from 12 → 16 rows↑↓ navigatehint from footer on Consumers, Endpoints and Health tabsEsc unselecthint immediately afterq quitin overview footerClaude Code on behalf of Claus Ibsen
Test plan
camel-jbangTUI against a local Camel integration and verify overview info panel shows CPU and inflight load averagesakey cycles chart modes on overview and endpoints tabs