diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a285b327b1..73d397e16a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,5 @@ name: CI -env: - JCODE_CI: "1" - on: push: branches: [main, master] @@ -14,6 +11,7 @@ concurrency: cancel-in-progress: true env: + JCODE_CI: "1" CARGO_TERM_COLOR: always SCCACHE_GHA_ENABLED: "true" diff --git a/.github/workflows/ios-testflight.yml b/.github/workflows/ios-testflight.yml index 3a15377236..493150a766 100644 --- a/.github/workflows/ios-testflight.yml +++ b/.github/workflows/ios-testflight.yml @@ -1,8 +1,5 @@ name: iOS TestFlight -env: - JCODE_CI: "1" - on: workflow_dispatch: push: @@ -16,6 +13,7 @@ concurrency: cancel-in-progress: true env: + JCODE_CI: "1" BUNDLE_ID: com.jcode.mobile SCHEME: JCodeMobile TEAM_ID: TAS6ARKDN7 diff --git a/.github/workflows/windows-smoke.yml b/.github/workflows/windows-smoke.yml index c8da370dee..85394bc8b9 100644 --- a/.github/workflows/windows-smoke.yml +++ b/.github/workflows/windows-smoke.yml @@ -1,8 +1,5 @@ name: Windows Smoke -env: - JCODE_CI: "1" - on: workflow_dispatch: inputs: @@ -21,6 +18,7 @@ concurrency: cancel-in-progress: true env: + JCODE_CI: "1" CARGO_TERM_COLOR: always SCCACHE_GHA_ENABLED: "true" diff --git a/crates/jcode-tui/src/tui/app/input.rs b/crates/jcode-tui/src/tui/app/input.rs index e10c42314c..53b237fe50 100644 --- a/crates/jcode-tui/src/tui/app/input.rs +++ b/crates/jcode-tui/src/tui/app/input.rs @@ -2931,7 +2931,10 @@ fn paste_placeholder(content: &str) -> String { impl App { pub(super) fn handle_key_event(&mut self, event: crossterm::event::KeyEvent) { if self.remote_login.is_some() { - if matches!(event.kind, crossterm::event::KeyEventKind::Press | crossterm::event::KeyEventKind::Repeat) { + if matches!( + event.kind, + crossterm::event::KeyEventKind::Press | crossterm::event::KeyEventKind::Repeat + ) { let _ = self.handle_key_press_event(event); } return; diff --git a/crates/jcode-tui/src/tui/ui_header.rs b/crates/jcode-tui/src/tui/ui_header.rs index 3bac13e25b..2a3120597d 100644 --- a/crates/jcode-tui/src/tui/ui_header.rs +++ b/crates/jcode-tui/src/tui/ui_header.rs @@ -850,10 +850,7 @@ fn build_header_lines_with_auth( // The native protocol reports the active route, not a complete remote // credential inventory. Do not render the laptop's (or an empty) // inventory as if it described providers configured on the server. - ( - format!("/login to authenticate on {host}"), - Vec::new(), - ) + (format!("/login to authenticate on {host}"), Vec::new()) } else { ( "/login to add provider".to_string(),