Files
dss/admin-ui/src/state/index.ts
DSS d13e1cd76a
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
admin-ui: align with API, add auth, fix integrations
2025-12-12 15:46:08 -03:00

26 lines
602 B
TypeScript

// DSS Admin UI - State Management with Preact Signals
// Central export for all state
export * from './app';
export * from './project';
export * from './team';
export * from './user';
import { loadProjects } from './project';
import { loadUserPreferences, refreshUser } from './user';
/**
* Initialize the application state
* Called once on app mount
*/
export async function initializeApp(): Promise<void> {
// Load user preferences from localStorage
loadUserPreferences();
// Restore session if token exists
await refreshUser();
// Load projects from API
await loadProjects();
}