From d8ad9e62d8b89117f014f3e2f4c55a84ac5822ba Mon Sep 17 00:00:00 2001 From: spinline Date: Wed, 11 Feb 2026 19:46:06 +0300 Subject: [PATCH] chore: add direct console logging to debug missing toasts --- frontend/src/app.rs | 1 + frontend/src/store.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/src/app.rs b/frontend/src/app.rs index 3d617c2..88148bc 100644 --- a/frontend/src/app.rs +++ b/frontend/src/app.rs @@ -31,6 +31,7 @@ fn InnerApp() -> impl IntoView { Effect::new(move |_| { spawn_local(async move { log::info!("App initialization started..."); + gloo_console::log!("APP INIT: Checking setup status..."); // Check if setup is needed via Server Function match shared::server_fns::auth::get_setup_status().await { diff --git a/frontend/src/store.rs b/frontend/src/store.rs index a30782b..e2bfb1c 100644 --- a/frontend/src/store.rs +++ b/frontend/src/store.rs @@ -9,6 +9,7 @@ use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64}; pub fn show_toast(level: NotificationLevel, message: impl Into) { let msg = message.into(); + gloo_console::log!("TOAST CALL:", &msg, format!("{:?}", level)); log::info!("Displaying toast: [{:?}] {}", level, msg); match level { NotificationLevel::Info => { leptos_shadcn_toast::toast::info(&msg).show(); },