feat: Implement maintenance mode functionality
Introduces a new maintenance mode feature to allow administrators to temporarily disable the application for updates or maintenance. This includes: - A dedicated `MaintenancePage` component. - Global state management for maintenance mode and message in `App.tsx`. - Firestore integration for storing and retrieving maintenance settings. - Updates to `AdminDashboard.tsx` to manage these settings. - Firebase security rules adjustments for the new settings collection. - Animate transitions for signal results in `SignalHistory.tsx`.
This commit is contained in:
@@ -53,6 +53,16 @@
|
||||
}
|
||||
},
|
||||
"required": ["userId", "userName", "text", "timestamp"]
|
||||
},
|
||||
"AppSettings": {
|
||||
"title": "App Settings",
|
||||
"description": "Global application settings.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"maintenanceMode": { "type": "boolean" },
|
||||
"maintenanceMessage": { "type": "string" }
|
||||
},
|
||||
"required": ["maintenanceMode"]
|
||||
}
|
||||
},
|
||||
"firestore": {
|
||||
@@ -67,6 +77,11 @@
|
||||
"testimonials/{testimonialId}": {
|
||||
"schema": "Testimonial",
|
||||
"description": "Public user testimonials."
|
||||
},
|
||||
"settings/{settingId}": {
|
||||
"schema": "AppSettings",
|
||||
"description": "Global application settings."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user