Skip to content

Comments

Beta - update 1#55

Merged
FalkenDev merged 19 commits intomainfrom
beta-updates-1
Jan 18, 2026
Merged

Beta - update 1#55
FalkenDev merged 19 commits intomainfrom
beta-updates-1

Conversation

@FalkenDev
Copy link
Owner

This pull request introduces a new user workout streak tracking feature to the backend, allowing users to set weekly workout goals, track their current streak, and view weekly progress. It also improves user account management by supporting secure email and password updates, and includes minor updates to exercise customization and development tooling.

Closes #31, #25

User streak tracking and weekly goals:

  • Added new columns (weeklyWorkoutGoal, currentStreak, lastStreakCheckDate, currentWeekWorkouts) to the User entity and corresponding migration to support streak and weekly goal tracking. [1] [2]
  • Implemented logic in UserService to update streaks when workouts are completed, reset streaks based on weekly progress, retrieve streak info, and update weekly workout goals. [1] [2]
  • Added new API endpoints in UserController for retrieving streak info (GET /user/streak) and updating weekly workout goals (PUT /user/weekly-goal).

User account management improvements:

  • Updated UpdateUserDto to support email and password changes, including validation and secure password update logic in UserService (with current password verification and duplicate email checks). [1] [2]
  • Modified avatar upload to accept any file type for flexibility.

Exercise customization:

  • Added an isCustomized property to ExerciseResponseDto and ensured it is set in ExerciseService responses. [1] [2]

Backend integration and dependencies:

  • Connected WorkoutSessionService to UserService to update streaks when a workout session is completed, and updated module dependencies accordingly. [1] [2] [3] [4]

Development tooling updates:

  • Added Prettier configuration to the frontend and integrated Prettier with ESLint for consistent code formatting. [1] [2] [3] [4]
  • Updated frontend dependencies, including license info and new packages. [1] [2] [3]
  • Added procps to the backend Dockerfile for improved process management.

- Added i18n plugin for internationalization support.
- Updated various components and pages to use translation keys for text.
- Implemented locale persistence in local storage.
- Refactored existing text strings to utilize translation functions.
- Enhanced user experience by providing localized content in the UI.
…ice, and controller; update frontend to manage and display streak information
@FalkenDev FalkenDev added this to the Beta milestone Jan 18, 2026
Copilot AI review requested due to automatic review settings January 18, 2026 21:46
@github-actions github-actions bot added topic: config Changes related to project configuration files. platform: backend For issues concerning the REST API, server logic, database interactions, or authentication. client: web-mobile For issues related to the web app UI/UX, including its responsive mobile views. labels Jan 18, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request introduces a comprehensive internationalization system for the frontend (English and Swedish) and adds user workout streak tracking functionality to the backend. The changes include weekly workout goals, streak counting, and progress tracking, along with improved user account management supporting secure email and password updates.

Changes:

  • Added complete i18n support with English and Swedish translations across the entire frontend application
  • Implemented backend user streak tracking with weekly workout goals and progress monitoring
  • Enhanced user account management with secure password changes and email validation
  • Integrated exercise customization tracking with isCustomized property

Reviewed changes

Copilot reviewed 56 out of 57 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
backend/src/v1/user/user.entity.ts Added streak tracking fields (weeklyWorkoutGoal, currentStreak, lastStreakCheckDate, currentWeekWorkouts)
backend/src/v1/user/user.service.ts Implemented streak logic, password update with verification, and email validation
backend/src/v1/user/user.controller.ts Added endpoints for streak info and weekly goal updates
backend/src/v1/workoutSession/* Integrated streak updates on workout completion
backend/src/v1/exercise/exercise.service.ts Added isCustomized property to exercise responses
frontend/src/plugins/i18n.ts Created i18n plugin with locale detection and persistence
frontend/src/locales/en.ts, sv.ts Added comprehensive translation files for English and Swedish
frontend/src/utils/exerciseDisplay.ts Created utility functions for translating exercise names and descriptions
frontend/src/pages/Settings.vue Completely redesigned with account editing, goals, and language selection
frontend/src/components/ProgressBar.vue Reimplemented to show weekly progress and streak information
Multiple frontend files Replaced hardcoded strings with i18n translation keys throughout
Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@FalkenDev FalkenDev merged commit e66ef0b into main Jan 18, 2026
7 checks passed
@FalkenDev FalkenDev deleted the beta-updates-1 branch January 18, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client: web-mobile For issues related to the web app UI/UX, including its responsive mobile views. platform: backend For issues concerning the REST API, server logic, database interactions, or authentication. topic: config Changes related to project configuration files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Add language support (SV and ENG) [FEAT] Add Workout Streaks

2 participants