feat: Add status dot indicator and fix voice tracking data format
- Replace connection status chips with green/gray dot on user avatar - Fix voice command data transformation (use timestamp/data instead of startedAt/metadata) - Keep family members online indicator on left side - User avatar with status dot remains on right side 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -173,12 +173,11 @@ export function VoiceFloatingButton() {
|
||||
const childId = children[0].id;
|
||||
console.log('[Voice] Using child ID:', childId);
|
||||
|
||||
// Create the activity - match backend CreateActivityDto format
|
||||
// Create the activity - use frontend API format (trackingApi transforms to backend DTO)
|
||||
const activityData = {
|
||||
type: activityType,
|
||||
startedAt: activityTimestamp ? new Date(activityTimestamp).toISOString() : new Date().toISOString(),
|
||||
endedAt: activityDetails.endedAt || undefined,
|
||||
metadata: activityDetails,
|
||||
timestamp: activityTimestamp ? new Date(activityTimestamp).toISOString() : new Date().toISOString(),
|
||||
data: activityDetails,
|
||||
notes: activityDetails.notes || undefined,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user