Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: CI

env:
JCODE_CI: "1"

on:
push:
branches: [main, master]
Expand All @@ -14,6 +11,7 @@ concurrency:
cancel-in-progress: true

env:
JCODE_CI: "1"
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/ios-testflight.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: iOS TestFlight

env:
JCODE_CI: "1"

on:
workflow_dispatch:
push:
Expand All @@ -16,6 +13,7 @@ concurrency:
cancel-in-progress: true

env:
JCODE_CI: "1"
BUNDLE_ID: com.jcode.mobile
SCHEME: JCodeMobile
TEAM_ID: TAS6ARKDN7
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/windows-smoke.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Windows Smoke

env:
JCODE_CI: "1"

on:
workflow_dispatch:
inputs:
Expand All @@ -21,6 +18,7 @@ concurrency:
cancel-in-progress: true

env:
JCODE_CI: "1"
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"

Expand Down
5 changes: 4 additions & 1 deletion crates/jcode-tui/src/tui/app/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions crates/jcode-tui/src/tui/ui_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
Loading