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:
desartstudio95
2026-05-08 11:42:38 +02:00
parent 15b618dda3
commit 6af03ef95e
6 changed files with 216 additions and 11 deletions
+15
View File
@@ -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."
}
}
}