Commit Graph

39 Commits

Author SHA1 Message Date
rafaeldpsilva
4b4338fb91 update 2025-12-20 00:15:44 +00:00
rafaeldpsilva
1c7288b778 update 2025-12-20 00:14:43 +00:00
rafaeldpsilva
7accc66710 update 2025-12-20 00:13:33 +00:00
rafaeldpsilva
37ccef2f12 update 2025-12-19 23:54:43 +00:00
rafaeldpsilva
a94e1b06b2 update 2025-12-19 23:43:39 +00:00
rafaeldpsilva
9a25170b27 Refactor dashboard layout and update sensor table columns
- Make metric cards and charts more compact and consistent - Change
SensorConsumptionTable columns: show Room and Value, remove
Current/Total/Average - Update headings and layout for AnalyticsView and
HomeView - Improve responsiveness and spacing for cards and sections
2025-10-03 15:06:34 +01:00
rafaeldpsilva
3ecd0ab2c4 Refactor UserIcon to use ref for outside click detection 2025-10-03 11:20:23 +01:00
rafaeldpsilva
544c1a3a4f Add user icon with dropdown menu to BottomNav 2025-10-03 11:16:50 +01:00
rafaeldpsilva
e2cf2bc782 Support partial sensor readings and improve room metrics aggregation
- Allow room and card components to handle rooms with missing energy or
CO2 data - Update RoomMetrics type to make energy and co2 fields
optional - Track which sensors provide energy or CO2 data per room -
Aggregate room metrics only from available data (partial readings) -
Update AirQualityCard and RoomMetricsCard to safely access optional
fields - Set MAX_HISTORY_POINTS to 48 in energy store - Improve
robustness of API room fetching and data mapping - Update CLAUDE.md with
new partial reading support and data flow details
2025-10-03 10:51:48 +01:00
rafaeldpsilva
f96456ed29 Refactor sensor ID usage and types, add CO2 metrics, update docs
- Standardize on `sensor.sensor_id` throughout components and stores -
Add average and max CO2 metrics to sensor store and HomeView - Improve
type safety for sensors, actions, and API calls - Update AGENTS.md with
repository guidelines - Refine settings store types and utility
functions - Add WindowWithAuth interface for auth store access - Minor
bug fixes and code cleanup
2025-10-01 14:04:25 +01:00
rafaeldpsilva
a518665673 Remove console.log statements from sensor store and AnalyticsView 2025-10-01 12:58:28 +01:00
rafaeldpsilva
cb659c93bb Refactor HomeView to use energyStore for energy data Refactor HomeView
to use energyStore for energy data
2025-10-01 12:57:09 +01:00
rafaeldpsilva
6ee4801071 Format and indent AnalyticsView.vue for improved readability 2025-10-01 12:56:56 +01:00
rafaeldpsilva
06f7537422 Add computed sensor stats and refactor AnalyticsView to use stores 2025-10-01 12:41:12 +01:00
rafaeldpsilva
b9348140b8 Refactor to decouple energy, room, and sensor stores
- Remove room and sensor logic from energy store - Update components to
use useRoomStore and useSensorStore directly - Fix sensor/room ID
mismatches and API response handling in room store - Update
AIOptimizationView to use useWebSocketStore for connection status -
Update SensorManagementView to use useRoomStore and useSensorStore
directly
2025-10-01 12:26:44 +01:00
rafaeldpsilva
71d1d82761 Refactor HomeView to use websocketStore instead of energyStore 2025-09-30 17:59:45 +01:00
rafaeldpsilva
64bb6b508a Switch to websocketStore and sensorStore in SensorManagementView 2025-09-30 17:59:40 +01:00
rafaeldpsilva
6c3990545f Refactor SimpleSensorCard to use typed sensor props and clean up energy
reading logic
2025-09-30 17:59:17 +01:00
rafaeldpsilva
c360fb81cd Switch to useWebSocketStore in RealtimeEnergyChartCard 2025-09-30 17:58:26 +01:00
rafaeldpsilva
83eaa7e121 Refactor sensor data handling for new API and WebSocket format
- Update SensorConsumptionTable to use new sensorStore and
websocketStore - Normalize sensor and reading interfaces for consistency
- Remove legacy energy data handling and mapping logic - Update API and
store types for new backend schema - Fetch sensors on mount in
SensorConsumptionTable - Simplify WebSocket data processing and remove
legacy code
2025-09-30 17:58:06 +01:00
rafaeldpsilva
90b6034465 Delete logs 2025-09-30 15:24:03 +01:00
rafaeldpsilva
5cb87ef5c5 Add device-type metrics and improve sensor capability detection
- Show device-specific metrics (e.g. brightness, setpoint) for lighting,
HVAC, and security sensors when no standard monitoring is present - Add
helper to infer monitoring capabilities from sensor type or name -
Animate sensor cards when recently updated - Remove debug console logs
from stores - Normalize sensor data structure and capability defaults in
store
2025-09-30 15:07:50 +01:00
rafaeldpsilva
3681890ec5 Improve sensor ID mapping and error handling for real-time data
- Add robust mapping from WebSocket sensor IDs to API sensor IDs -
Enhance error handling for backend connection issues - Remove legacy
room metrics summary from SensorManagementView - Add loading and error
states to sensor grid - Track recently updated sensors for UI feedback -
Normalize incoming sensor data for compatibility
2025-09-29 13:29:15 +01:00
rafaeldpsilva
3299472c85 Refactor stores for modularity and API type updates
- Split energy store into sensor, room, analytics, and websocket stores
- Add new analytics, room, sensor, and websocket stores - Update API
types for sensors (SensorDevice, SensorAction) - Update sensorsApi to
use new SensorDevice type - Add central index for store exports and
types - Refactor energy store to delegate to modular stores - Remove
legacy code and consolidate API logic
2025-09-25 17:09:42 +01:00
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
faed09d3b6 Add API service layer, authentication store, and composables
- Implement API service modules for sensors, rooms, analytics, health,
and auth - Add Pinia auth store for JWT token management and validation
- Create Vue composables for API integration and state management -
Update settings and AI optimization views for code style and connection
URLs - Add test-websocket.html for local WebSocket testing
2025-09-18 14:29:36 +01:00
rafaeldpsilva
32c63628b6 Add analytics dashboard view and API integration
- Add AnalyticsView.vue for real-time API analytics - Update router to
include /analytics route - Add Analytics link to BottomNav - Improve
MetricCard layout for dashboard consistency - Update main.ts to
initialize global auth store - Add Dockerfile and .env for
containerization and config - Update README with complete API and
architecture overview - Disable Tailwind in main.scss for SCSS-only
styling
2025-09-18 14:28:01 +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
1c96437e5a Add AIOptimizationView for managing AI optimizations 2025-09-03 16:40:46 +01:00
rafaeldpsilva
55a2d6d097 Show real-time room metrics and improve sensor cards
Add a summary of real-time metrics per room, including energy, CO2,
sensor count, and occupancy. Sensor cards now display live readings from
the store instead of mock data. Refactor card logic for reactivity and
update navigation colors for clarity.
2025-09-03 16:34:04 +01:00
rafaeldpsilva
eae15a111e Action modal 2025-09-03 14:25:37 +01:00
rafaeldpsilva
3a802554cb Delete counter.ts 2025-09-03 13:29:43 +01:00
rafaeldpsilva
044f301013 Add SCSS styles for base, components, layouts, and utilities (not on
use)
2025-09-02 16:19:20 +01:00
rafaeldpsilva
1522f70f08 sensor management page 2025-09-02 15:39:45 +01:00
rafaeldpsilva
42f9fa5aed updated Readme 2025-09-02 14:36:57 +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