Created toggle for enable / disable user signup flow with user role

Fixed numbers mismatching in host cards
Fixed issues with the settings file
Fixed layouts on hosts/packages/repos
Added ability to delete multiple hosts at once
Fixed Dark mode styling in areas
Removed console debugging messages
Done some other stuff ...
This commit is contained in:
Muhammad Ibrahim
2025-09-22 01:01:50 +01:00
parent a268f6b8f1
commit 797be20c45
29 changed files with 940 additions and 4015 deletions

View File

@@ -24,12 +24,8 @@ function AppRoutes() {
const { needsFirstTimeSetup, checkingSetup, isAuthenticated } = useAuth()
const isAuth = isAuthenticated() // Call the function to get boolean value
// Debug logging
console.log('AppRoutes state:', { needsFirstTimeSetup, checkingSetup, isAuthenticated: isAuth })
// Show loading while checking if setup is needed
if (checkingSetup) {
console.log('Showing loading screen...')
return (
<div className="min-h-screen bg-gradient-to-br from-primary-50 to-secondary-50 dark:from-secondary-900 dark:to-secondary-800 flex items-center justify-center">
<div className="text-center">
@@ -42,12 +38,9 @@ function AppRoutes() {
// Show first-time setup if no admin users exist
if (needsFirstTimeSetup && !isAuth) {
console.log('Showing FirstTimeAdminSetup component...')
return <FirstTimeAdminSetup />
}
console.log('Showing normal routes (Login/Dashboard)...')
return (
<Routes>
<Route path="/login" element={<Login />} />