Skip to content
Merged
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
14 changes: 8 additions & 6 deletions src/apps/cli/src/ui/startup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,14 @@ impl StartupPage {
lines.push(Line::from(""));

if use_fancy_logo {
let logo = [" ██████╗ ██╗████████╗███████╗██╗ ██╗███╗ ██╗",
let logo = [
" ██████╗ ██╗████████╗███████╗██╗ ██╗███╗ ██╗",
" ██╔══██╗██║╚══██╔══╝██╔════╝██║ ██║████╗ ██║",
" ██████╔╝██║ ██║ █████╗ ██║ ██║██╔██╗ ██║",
" ██╔══██╗██║ ██║ ██╔══╝ ██║ ██║██║╚██╗██║",
" ██████╔╝██║ ██║ ██║ ╚██████╔╝██║ ╚████║",
" ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝"];
" ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝",
];

let colors = [
Color::Rgb(255, 0, 100),
Expand All @@ -334,11 +336,13 @@ impl StartupPage {
)));
}
} else {
let logo = [" ____ _ _ _____ ",
let logo = [
" ____ _ _ _____ ",
" | __ )(_) |_| ___| _ _ __ ",
" | _ \\| | __| |_ | | | | '_ \\ ",
" | |_) | | |_| _|| |_| | | | |",
" |____/|_|\\__|_| \\__,_|_| |_|"];
" |____/|_|\\__|_| \\__,_|_| |_|",
];

let colors = [
Color::Cyan,
Expand Down Expand Up @@ -883,8 +887,6 @@ impl StartupPage {
PageState::Finished(StartupResult::Exit),
);



match page_state {
PageState::MainMenu => {
self.page_state = PageState::MainMenu;
Expand Down
1 change: 0 additions & 1 deletion src/apps/desktop/src/api/browser_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ pub async fn browser_get_url(
Err(_) => Err("url unavailable (webview URL is nil)".to_string()),
}
}

10 changes: 4 additions & 6 deletions src/apps/desktop/src/api/computer_use_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ pub async fn computer_use_open_system_settings(
#[cfg(target_os = "linux")]
{
let _ = request;
return Err("Open system settings: use your desktop environment privacy settings.".to_string());
return Err(
"Open system settings: use your desktop environment privacy settings.".to_string(),
);
}
#[cfg(not(any(
target_os = "macos",
target_os = "windows",
target_os = "linux"
)))]
#[cfg(not(any(target_os = "macos", target_os = "windows", target_os = "linux")))]
{
let _ = request;
Err("Unsupported platform.".to_string())
Expand Down
5 changes: 4 additions & 1 deletion src/apps/desktop/src/api/editor_ai_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ pub async fn editor_ai_cancel(
return Err("requestId is required".to_string());
}

state.side_question_runtime.cancel(&request.request_id).await;
state
.side_question_runtime
.cancel(&request.request_id)
.await;
Ok(())
}

Expand Down
28 changes: 12 additions & 16 deletions src/apps/desktop/src/api/insights_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,14 @@ pub struct LoadInsightsReportRequest {
}

#[tauri::command]
pub async fn generate_insights(
request: GenerateInsightsRequest,
) -> Result<InsightsReport, String> {
pub async fn generate_insights(request: GenerateInsightsRequest) -> Result<InsightsReport, String> {
let days = request.days.unwrap_or(30);
info!("Generating insights for the last {} days", days);

InsightsService::generate(days)
.await
.map_err(|e| {
error!("Failed to generate insights: {}", e);
format!("Failed to generate insights: {}", e)
})
InsightsService::generate(days).await.map_err(|e| {
error!("Failed to generate insights: {}", e);
format!("Failed to generate insights: {}", e)
})
}

#[tauri::command]
Expand All @@ -41,16 +37,16 @@ pub async fn get_latest_insights() -> Result<Vec<InsightsReportMeta>, String> {
pub async fn load_insights_report(
request: LoadInsightsReportRequest,
) -> Result<InsightsReport, String> {
InsightsService::load_report(&request.path).await.map_err(|e| {
error!("Failed to load insights report: {}", e);
format!("Failed to load insights report: {}", e)
})
InsightsService::load_report(&request.path)
.await
.map_err(|e| {
error!("Failed to load insights report: {}", e);
format!("Failed to load insights report: {}", e)
})
}

#[tauri::command]
pub async fn has_insights_data(
request: GenerateInsightsRequest,
) -> Result<bool, String> {
pub async fn has_insights_data(request: GenerateInsightsRequest) -> Result<bool, String> {
let days = request.days.unwrap_or(30);
InsightsService::has_data(days).await.map_err(|e| {
error!("Failed to check insights data: {}", e);
Expand Down
5 changes: 4 additions & 1 deletion src/apps/desktop/src/api/remote_connect_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,10 @@ pub async fn remote_connect_get_bot_verbose_mode() -> Result<bool, String> {

#[tauri::command]
pub async fn remote_connect_set_bot_verbose_mode(verbose: bool) -> Result<(), String> {
log::info!("remote_connect_set_bot_verbose_mode called with verbose={}", verbose);
log::info!(
"remote_connect_set_bot_verbose_mode called with verbose={}",
verbose
);
let mut data = bot::load_bot_persistence();
data.verbose_mode = verbose;
bot::save_bot_persistence(&data);
Expand Down
4 changes: 3 additions & 1 deletion src/apps/desktop/src/api/session_storage_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ pub async fn desktop_effective_session_storage_path(
remote_connection_id: Option<&str>,
remote_ssh_host: Option<&str>,
) -> std::path::PathBuf {
let conn = remote_connection_id.map(str::trim).filter(|s| !s.is_empty());
let conn = remote_connection_id
.map(str::trim)
.filter(|s| !s.is_empty());
let host_from_request = remote_ssh_host
.map(str::trim)
.filter(|s| !s.is_empty())
Expand Down
Loading
Loading