From d31e068277634895a0e89f5288e5530f833afd9c Mon Sep 17 00:00:00 2001 From: vikingowl Date: Mon, 13 Oct 2025 18:58:52 +0200 Subject: [PATCH] feat(ui): include app version in header title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add `APP_VERSION` constant derived from `CARGO_PKG_VERSION` and update the header rendering to display the version (e.g., “🦉 OWLEN v1.2.3 – AI Assistant”). --- crates/owlen-tui/src/ui.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/owlen-tui/src/ui.rs b/crates/owlen-tui/src/ui.rs index 63874b4..fcf1949 100644 --- a/crates/owlen-tui/src/ui.rs +++ b/crates/owlen-tui/src/ui.rs @@ -24,6 +24,7 @@ use owlen_core::ui::{FocusedPanel, InputMode, RoleLabelDisplay}; use textwrap::wrap; const PRIVACY_TAB_INDEX: usize = HELP_TAB_COUNT - 1; +const APP_VERSION: &str = env!("CARGO_PKG_VERSION"); fn focus_beacon_span(is_active: bool, is_focused: bool, theme: &Theme) -> Span<'static> { if !is_active { @@ -1111,7 +1112,7 @@ fn wrap_line_segments(line: &str, width: usize) -> Vec { fn render_header(frame: &mut Frame<'_>, area: Rect, app: &ChatApp) { let theme = app.theme(); let title_span = Span::styled( - " 🦉 OWLEN - AI Assistant ", + format!(" 🦉 OWLEN v{} – AI Assistant ", APP_VERSION), Style::default() .fg(theme.focused_panel_border) .add_modifier(Modifier::BOLD),