Added run state front end support

Updated scholars layout to match dashboard
This commit is contained in:
Justin Visser 2026-02-19 20:07:08 +01:00
parent e49e753023
commit 110e246a1c
10 changed files with 1095 additions and 284 deletions

View file

@ -1,5 +1,6 @@
import { setCsrfTokenProvider } from "@/lib/api/client";
import { useAuthStore } from "@/stores/auth";
import { useRunStatusStore } from "@/stores/run_status";
import { useThemeStore } from "@/stores/theme";
import { useUserSettingsStore } from "@/stores/user_settings";
@ -12,9 +13,12 @@ export async function bootstrapAppProviders(): Promise<void> {
await auth.bootstrapSession();
const userSettings = useUserSettingsStore();
const runStatus = useRunStatusStore();
if (auth.isAuthenticated) {
await userSettings.bootstrap();
await runStatus.bootstrap();
} else {
userSettings.reset();
runStatus.reset();
}
}