Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EdgarJr30/proyecto-de-grado-cms/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
The Reporting & Analytics module provides a powerful, enterprise-grade dashboard for visualizing and analyzing maintenance operations across your organization. Built with real-time data aggregation, the platform delivers actionable insights for executives, operations managers, and technical teams.Key Features
Multi-Dimensional Analysis
Analyze work orders, assets, inventory, and administrative metrics from multiple perspectives with customizable filters.
Real-Time KPIs
Track critical metrics like open work orders, overdue tasks, asset health, and inventory levels with live updates.
Custom Layouts
Drag-and-drop interface for personalizing dashboard layouts with user-specific preferences saved automatically.
Smart Filtering
Global filters for date ranges, locations, and custom periods (30d, 90d, YTD) apply across all report views.
Report Categories
The platform organizes reports into five specialized tabs:Executive Summary
High-level overview for leadership and decision-makers:- Open and overdue work orders
- Assets out of service
- Inventory reorder alerts
- Active announcements
- Total inventory valuation
- Special incident tracking
Work Management
Detailed analysis of maintenance operations:- Request and work order backlogs
- Urgent and overdue tickets
- Technician workload and productivity
- SLA compliance rates
- Deadline adherence metrics
- Priority and status distributions
Assets
Comprehensive asset health and performance metrics:- Asset status and criticality distributions
- Maintenance cost tracking
- Downtime analysis
- Warranty expiration tracking
- Maintenance type breakdowns
- Top assets by tickets, cost, and downtime
Inventory Parts
Supply chain and inventory intelligence:- Stock levels (on-hand, reserved, available)
- Reorder suggestions
- Part consumption trends
- Document status tracking
- Critical parts monitoring
- Valuation and cost analysis
Administration
System health and access control insights:- User and role distribution
- Permission matrix analysis
- Technician assignments by section
- Announcement management
- Location demand analysis
- Active user tracking
Architecture
Data Sources
Reports pull from multiple database views and tables:Report Service API
ThereportService.ts provides five main report generators:
getExecutiveSummaryReport
Aggregates high-level KPIs across all modules with location/date filtering
Performance Optimization
Reports use database views (
v_tickets_compat, v_assets, v_available_stock) for optimized query performance. Large datasets are limited to 10,000 rows with server-side aggregation.Caching Strategy
The system implements intelligent data fetching:- Reports load on-demand when switching tabs
- Filter changes trigger automatic refresh
- Layout preferences persist in localStorage and optional remote sync
- Animation states prevent unnecessary re-renders
Permissions
Access to report tabs is controlled by RBAC permissions:| Tab | Required Permissions |
|---|---|
| Executive Summary | Always visible |
| Work Management | Always visible |
| Assets | assets:read or assets:full_access |
| Inventory Parts | inventory:read or inventory:full_access |
| Administration | users:read, rbac:manage_permissions, rbac:manage_roles, or announcements:read |
Getting Started
Best Practices
Optimize Date Ranges
Optimize Date Ranges
Use narrower date ranges (30 days) for detailed analysis and broader ranges (YTD) for trend identification. Custom ranges work best for specific incident investigations.
Regular Reviews
Regular Reviews
Schedule weekly executive reviews and daily operational checks of critical KPIs like overdue work orders and inventory reorder alerts.
Location Filtering
Location Filtering
When analyzing facility-specific issues, use location filters to isolate metrics and identify site-specific patterns.
Export Strategies
Export Strategies
While direct export isn’t available in the UI, combine report insights with work order exports for comprehensive documentation.
Technical Details
The reporting system is built on:- Frontend: React 19 with TypeScript, Framer Motion animations
- Backend: Supabase Postgres with materialized views
- State Management: React hooks with local caching
- Layout Persistence:
reportLayoutService.tswith localStorage/remote sync
Code Location
Key implementation files:/src/services/reportService.ts- Data aggregation and calculations/src/services/reportLayoutService.ts- Layout persistence logic/src/components/reports/ReportsDashboard.tsx- Main dashboard component/src/pages/ReportsPage.tsx- Reports page wrapper
Next Steps
Explore the interactive dashboard features and learn how to customize your reporting views