feat: rebuild desktop sync as linked server accounts, fix packaged plugin bundles and UI scaling

This commit is contained in:
LukeGus committed 2026-09-26 00:41:25 -05:00
1 parent 7c02daccf4
commit 6cd9a2846d
242 files changed
+39127 -8558

No files matched your search

+7 -17
View File
@@ -1,24 +1,14 @@
/** app.desktop: the desktop app's remote sync connection, for plugins. */
/** app.desktop: the server this desktop is linked to, for plugins. */
import { isElectron } from "@/lib/electron";
import { getLinkedSession } from "@/lib/linked-server";
import { SYNC_CHANGED_EVENT } from "@/lib/sync-events";
export async function remoteServerUrl(): Promise<string | null> {
if (!isElectron()) return null;
try {
const config = (await window.electronAPI?.invoke?.(
"get-remote-sync-config",
)) as { serverUrl?: string } | null | undefined;
return config?.serverUrl || null;
} catch {
return null;
}
return (await getLinkedSession())?.serverUrl ?? null;
}
export function onRemoteServerChange(listener: () => void): () => void {
const unsubscribe = window.electronAPI?.onRemoteSyncStatusChanged?.(() =>
listener(),
);
return () => {
if (typeof unsubscribe === "function") unsubscribe();
};
const handler = () => listener();
window.addEventListener(SYNC_CHANGED_EVENT, handler);
return () => window.removeEventListener(SYNC_CHANGED_EVENT, handler);
}
+1
View File
@@ -133,6 +133,7 @@ export {
hydrateLocalSharedHostAuth,
resolveRemoteHostId,
} from "@/lib/remote-server-api";
export { remoteServerUrl as linkedServerUrl } from "@/plugin-host/desktop";
export { useConnectionDefaults } from "@/contexts/ConnectionDefaultsContext";
// Dashboard reads. The calls a plugin makes on the user's behalf (recent