feat: Implement uptime monitoring data retention

Ensured data is cleared from uptime_data and ping_data collections based on retention settings. Added separate manual shrink database buttons for uptime and server monitoring retention in the data retention settings panel.
This commit is contained in:
Tola Leng
2025-05-29 22:16:50 +08:00
parent 611380a5e4
commit 9b1167955e
5 changed files with 619 additions and 3 deletions
+3 -1
View File
@@ -9,6 +9,7 @@ import UserManagement from "@/components/settings/user-management";
import { NotificationSettings } from "@/components/settings/notification-settings";
import { AlertsTemplates } from "@/components/settings/alerts-templates";
import { AboutSystem } from "@/components/settings/about-system";
import DataRetentionSettings from "@/components/settings/data-retention/DataRetentionSettings";
const Settings = () => {
// State for sidebar collapse functionality
@@ -58,6 +59,7 @@ const Settings = () => {
{activePanel === "users" && <UserManagement />}
{activePanel === "notifications" && <NotificationSettings />}
{activePanel === "templates" && <AlertsTemplates />}
{activePanel === "data-retention" && <DataRetentionSettings />}
{activePanel === "about" && <AboutSystem />}
</div>
</div>
@@ -65,4 +67,4 @@ const Settings = () => {
);
};
export default Settings;
export default Settings;