Apply 646095da: Module settings UI fixes with moduleStore

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-23 06:49:38 +00:00
parent 162947f3cc
commit 029c30ae70
7 changed files with 223 additions and 231 deletions

View File

@@ -9,6 +9,7 @@ import { AwsAdminGuard } from "./components/auth/AwsAdminGuard";
import GlobalErrorDisplay from "./components/common/GlobalErrorDisplay";
import LoadingStateMonitor from "./components/common/LoadingStateMonitor";
import { useAuthStore } from "./store/authStore";
import { useModuleStore } from "./store/moduleStore";
// Auth pages - loaded immediately (needed for login)
import SignIn from "./pages/AuthPages/SignIn";
@@ -117,7 +118,13 @@ const Components = lazy(() => import("./pages/Components"));
export default function App() {
// All session validation removed - API interceptor handles authentication
const { isAuthenticated } = useAuthStore();
const { loadModuleSettings } = useModuleStore();
// Load global module settings immediately on mount (public endpoint, no auth required)
useEffect(() => {
loadModuleSettings();
}, [loadModuleSettings]);
return (
<>