From d186a989b6808ff39fcd43a9f0b478aebc4aa346 Mon Sep 17 00:00:00 2001 From: zwlucas Date: Fri, 29 May 2026 17:21:48 -0300 Subject: feat: enhance maintenance management and heartbeat history features - Updated Store interface to include methods for managing maintenances. - Modified API functions to support pagination for heartbeat history and added CRUD operations for maintenances. - Enhanced types to include paginated responses and initial log entries. - Implemented maintenance management UI in the admin panel with create, edit, and delete functionalities. - Updated service detail page to display paginated heartbeat history and improved chart rendering. - Refactored status page to accommodate new data structures and ensure consistent data handling. Signed-off-by: Lucas Faria Mendes --- frontend/src/lib/types.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'frontend/src/lib/types.ts') diff --git a/frontend/src/lib/types.ts b/frontend/src/lib/types.ts index f80c933..594ab05 100644 --- a/frontend/src/lib/types.ts +++ b/frontend/src/lib/types.ts @@ -30,6 +30,14 @@ export interface Heartbeat { tested_at: string; } +export interface PaginatedResponse { + data: T[]; + page: number; + per_page: number; + total: number; + total_pages: number; +} + export interface ServiceStats { service_id: number; uptime_24h: number; -- cgit v1.2.3