Many improvemtns and fixes related to decoupling of svelte and rust on android.
🏗️ Build and Test JellyTau / Run Tests (push) Failing after 18s
🏗️ Build and Test JellyTau / Build Android APK (push) Has been skipped
Traceability Validation / Check Requirement Traces (push) Failing after 2s

This commit is contained in:
2026-02-28 19:50:47 +01:00
parent 07f3bf04ca
commit e8e37649fa
53 changed files with 2309 additions and 792 deletions
+9 -6
View File
@@ -39,7 +39,7 @@ pub async fn auth_initialize(
};
// Create session object from active session with normalized URL
let normalized_url = crate::auth::AuthManager::normalize_url(&active_session.server_url);
let normalized_url = crate::auth::AuthManager::normalize_url(&active_session.server_url)?;
let session = Session {
user_id: active_session.user_id,
@@ -80,7 +80,7 @@ pub async fn auth_login(
let result = auth_manager.0.login(&server_url, &username, &password, &device_id).await?;
// Create session from auth result with normalized URL
let normalized_url = crate::auth::AuthManager::normalize_url(&server_url);
let normalized_url = crate::auth::AuthManager::normalize_url(&server_url)?;
let session = Session {
user_id: result.user.id.clone(),
@@ -156,10 +156,13 @@ pub async fn auth_set_session(
auth_manager: State<'_, AuthManagerWrapper>,
) -> Result<(), String> {
// Normalize the server URL if session is provided
let normalized_session = session.map(|mut s| {
s.server_url = crate::auth::AuthManager::normalize_url(&s.server_url);
s
});
let normalized_session = match session {
Some(mut s) => {
s.server_url = crate::auth::AuthManager::normalize_url(&s.server_url)?;
Some(s)
}
None => None,
};
auth_manager.0.set_session(normalized_session).await;
Ok(())