Complete UI/UX overhaul: Polished login, fixed mood tracking, enhanced animations, and verified full-stack flows

This commit is contained in:
Gemini AI
2025-12-06 21:01:28 +04:00
Unverified
parent 0ba7af6489
commit 864070b26a
4 changed files with 593 additions and 82 deletions

View File

@@ -135,11 +135,21 @@ export const gratitudeAPI = {
// Progress API
export const progressAPI = {
async getProgressStats() {
return await apiCall('/progress/stats');
return await apiCall('/dashboard/stats');
},
async getProgressHistory() {
return await apiCall('/progress/history');
async getProgressHistory(days = 30) {
return await apiCall(`/progress?days=${days}`);
}
};
// Exercise API
export const exerciseAPI = {
async logSession(type, duration) {
return await apiCall('/exercises', {
method: 'POST',
body: JSON.stringify({ exerciseType: type, duration })
});
}
};