Commit Graph

7 Commits

Author SHA1 Message Date
rafaeldpsilva
326746b5ef Refactor API and store logic for sensor and room management
- Add sensor name to SensorInfo interface - Update API client to
conditionally include auth headers - Add saveToken endpoint to authApi -
Refactor roomsApi to use getRoomNames endpoint - Change sensorsApi to
use /api/v1/sensors/get - Improve token handling and JWT decoding in
auth store - Refactor room loading to use API client in energy store -
Add helper to transform API sensor data - Update SensorManagementView to
load sensors from API and fix filtering
2025-09-25 14:48:48 +01:00
rafaeldpsilva
6510468768 Remove redundant comments and improve code formatting 2025-09-23 15:24:04 +01:00
rafaeldpsilva
a3d266d735 Add API integration for sensors and rooms management
Integrate sensorsApi and roomsApi services into energy store. Add API
state, loading/error handling, and async functions for fetching sensor
and room data. Update room loading logic to fetch from API. Expose new
API functions for analytics and health endpoints. Update
SensorManagementView to use localhost WebSocket for real-time updates.
2025-09-18 14:29:44 +01:00
rafaeldpsilva
05baaca23c Add settings page and store with UI customization options
- Implement SettingsView with appearance, data, notifications, and
advanced tabs - Add settings store (Pinia) for theme, navigation,
notifications, and app config - Integrate settings store into HomeView
and BottomNav for theme and navigation mode - Add room management modal
and store methods for adding/removing rooms - Update
SensorManagementView with room management button and modal - Support
exporting/importing settings and resetting to defaults - Enable dark
mode via Tailwind config
2025-09-03 17:07:19 +01:00
rafaeldpsilva
1522f70f08 sensor management page 2025-09-02 15:39:45 +01:00
rafaeldpsilva
c8ce6bd124 room-based monitoring 2025-09-02 14:25:28 +01:00
rafaeldpsilva
0db018f939 general dashboard 2025-09-02 14:19:05 +01:00