feat: preferences syncing frontend (#7192)

* feat: prefs frontend

* fix: DI issue

* fix: lint

* feat: appearance settings cleanup + fix settings, remove pinia

* fix: sync btn when logged out

* fix: prepr

* fix: sidebar issue

* feat: language coverage + cleanup

* feat: cleanup lang settings

* fix: fmt

* fix: CI

* fix: ci

* fix: storybook

* feat: bring back loader/game version sort

---------

Co-authored-by: tdgao <mr.trumgao@gmail.com>
This commit is contained in:
Calum H.
2026-08-20 07:23:01 +00:00
committed by GitHub
co-authored by tdgao
parent 79fcf41316
commit 3e07267e10
191 changed files with 3356 additions and 4372 deletions
+15
View File
@@ -27,6 +27,19 @@ pub async fn get_user_collections(user_id: &str) -> Result<Value> {
Ok(theseus::users::get_user_collections(user_id).await?)
}
#[tauri::command]
pub async fn get_user_preferences(user_id: &str) -> Result<Value> {
Ok(theseus::users::get_user_preferences(user_id).await?)
}
#[tauri::command]
pub async fn patch_user_preferences(
user_id: &str,
preferences: Value,
) -> Result<Value> {
Ok(theseus::users::patch_user_preferences(user_id, preferences).await?)
}
#[tauri::command]
pub async fn patch_user(user_id: &str, patch: Value) -> Result<()> {
Ok(theseus::users::patch_user(user_id, patch).await?)
@@ -72,6 +85,8 @@ pub fn init<R: tauri::Runtime>() -> tauri::plugin::TauriPlugin<R> {
get_user_projects,
get_user_organizations,
get_user_collections,
get_user_preferences,
patch_user_preferences,
patch_user,
change_user_avatar,
delete_user_avatar,