Refactor: enhance dashboard layout and experiment management features

- Added functionality to save and retrieve the current dashboard view in localStorage for improved user experience.
- Updated DashboardLayout component to handle view changes with access control based on user roles.
- Renamed Experiments component to ExperimentManagement for clarity.
- Introduced new ExperimentPhase interface and related utility functions for managing experiment phases.
- Updated seed data to include initial roles and experiment phases for testing.
- Cleaned up unnecessary blank lines in various files for better code readability.
This commit is contained in:
salirezav
2025-09-19 12:03:46 -04:00
parent 843071eda7
commit d1fe478478
31 changed files with 2305 additions and 1282 deletions

View File

@@ -71,6 +71,7 @@ function App() {
// Clear any local storage items
localStorage.removeItem('supabase.auth.token')
localStorage.removeItem('dashboard-current-view')
// Reset state
setIsAuthenticated(false)
@@ -79,6 +80,7 @@ function App() {
} catch (error) {
console.error('Logout error:', error)
// Still reset state even if there's an error
localStorage.removeItem('dashboard-current-view')
setIsAuthenticated(false)
setCurrentRoute('/')
window.history.pushState({}, '', '/')