-
Notifications
You must be signed in to change notification settings - Fork 0
v1.1.0 Enhance workout features and fix layout inconsistencies #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5bd28ba
fix: change 'dev' to 'devOptional' for multiple dependencies in packa…
FalkenDev 746eb29
bugfix: remove unnecessary sticky button wrapper (the btn was hidden …
FalkenDev 76dbcd7
fix: update styling for exercise details display in WorkoutExerciseCa…
FalkenDev 26c059a
feat: add icon to allow adding a new set when not all sets are completed
FalkenDev a10c5f0
bugfix: update logic for showing exercise details based on workout se…
FalkenDev 514044f
fix: update margin class for layout consistency in Session.vue
FalkenDev 438e9be
bugfix: pass EntityManager to repository methods in StatisticsService…
FalkenDev d072c9b
fix: add workout and activity label to localization files and update …
FalkenDev 6731ca5
feat: implement streak freeze functionality with migration, service, …
FalkenDev c12f05e
chore(release): v1.1.0
FalkenDev d63b92f
Potential fix for pull request finding
FalkenDev c80621c
Potential fix for pull request finding
FalkenDev c1ba0c4
Potential fix for pull request finding
FalkenDev 5763d77
fix: update lastStreakCheckDate in checkAndResetWeeklyProgress to pre…
Copilot b65e3e1
feat: add UseStreakFreezeDto and validate date in useStreakFreeze
Copilot 422854f
refactor: remove redundant !date check; keep isNaN guard as defence-i…
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "backend", | ||
| "version": "1.0.0", | ||
| "version": "1.1.0", | ||
| "description": "", | ||
| "author": "", | ||
| "private": true, | ||
|
|
||
57 changes: 57 additions & 0 deletions
57
backend/src/v1/migrations/1775000000000-AddStreakFreezesToUser.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| /* | ||
| * Copyright (c) 2026 FalkenDev | ||
| * | ||
| * This file is part of Grindify. | ||
| * | ||
| * Grindify is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU Affero General Public License as | ||
| * published by the Free Software Foundation, either version 3 of | ||
| * the License, or (at your option) any later version. | ||
| * | ||
| * You should have received a copy of the GNU Affero General Public | ||
| * License along with Grindify. If not, see | ||
| * <https://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm'; | ||
|
|
||
| export class AddStreakFreezesToUser1775000000000 implements MigrationInterface { | ||
| public async up(queryRunner: QueryRunner): Promise<void> { | ||
| // Add streakFreezes column — users start with 1 freeze | ||
| await queryRunner.addColumn( | ||
| 'user', | ||
| new TableColumn({ | ||
| name: 'streakFreezes', | ||
| type: 'int', | ||
| default: 1, | ||
| }), | ||
| ); | ||
|
|
||
| // Add streakFreezeUsedWeek column — ISO week key e.g. "2026-W18" | ||
| await queryRunner.addColumn( | ||
| 'user', | ||
| new TableColumn({ | ||
| name: 'streakFreezeUsedWeek', | ||
| type: 'varchar', | ||
| length: '10', | ||
| isNullable: true, | ||
| }), | ||
| ); | ||
|
|
||
| // Add completedGoalWeeksCount — tracks how many goal-weeks have been completed | ||
| await queryRunner.addColumn( | ||
| 'user', | ||
| new TableColumn({ | ||
| name: 'completedGoalWeeksCount', | ||
| type: 'int', | ||
| default: 0, | ||
| }), | ||
| ); | ||
| } | ||
|
|
||
| public async down(queryRunner: QueryRunner): Promise<void> { | ||
| await queryRunner.dropColumn('user', 'completedGoalWeeksCount'); | ||
| await queryRunner.dropColumn('user', 'streakFreezeUsedWeek'); | ||
| await queryRunner.dropColumn('user', 'streakFreezes'); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| /* | ||
| * Copyright (c) 2026 FalkenDev | ||
| * | ||
| * This file is part of Grindify. | ||
| * | ||
| * Grindify is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU Affero General Public License as | ||
| * published by the Free Software Foundation, either version 3 of | ||
| * the License, or (at your option) any later version. | ||
| * | ||
| * You should have received a copy of the GNU Affero General Public | ||
| * License along with Grindify. If not, see | ||
| * <https://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| import { IsDateString } from 'class-validator'; | ||
| import { ApiProperty } from '@nestjs/swagger'; | ||
|
|
||
| export class UseStreakFreezeDto { | ||
| @ApiProperty({ | ||
| description: 'ISO 8601 date string (YYYY-MM-DD) of a day in the current week to freeze', | ||
| example: '2026-05-08', | ||
| }) | ||
| @IsDateString() | ||
| date: string; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot apply changes based on this feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in commit 422854f. Created
UseStreakFreezeDtowith@IsDateString()and@ApiPropertyinbackend/src/v1/user/dto/UseStreakFreeze.dto.ts, and updated the controller to accept@Body() body: UseStreakFreezeDtoso the globalValidationPipenow validates and rejects invalid/missingdatevalues, and Swagger reflects the schema.