time for changing it all

This commit is contained in:
filipriec
2025-04-18 18:11:12 +02:00
parent bdcc10bd40
commit 09ccad2bd4
4 changed files with 125 additions and 55 deletions

View File

@@ -7,7 +7,15 @@ use crate::state::app::state::AppState;
use crate::state::app::buffer::{AppView, BufferState};
use crate::state::pages::canvas_state::CanvasState;
use crate::ui::handlers::context::DialogPurpose;
use crate::modes::handlers::event::EventOutcome; // Make sure this is imported
use crate::modes::handlers::event::EventOutcome;
use common::proto::multieko2::auth::LoginResponse;
#[derive(Debug)]
pub enum LoginResult {
Success(LoginResponse),
Failure(String),
ConnectionError(String),
}
/// Attempts to log the user in using the provided credentials via gRPC.
/// Updates AuthState and AppState on success or failure.