diff --git a/CHANGELOG.md b/CHANGELOG.md index 7af34da9..9a941be3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +### [ita-challenges-frontend-3.1.13-RELEASE] + +* Hide progression filter if user is not logged in + ### [ita-challenges-frontend-3.1.10-RELEASE] - Capture user solution @@ -52,6 +56,7 @@ and this project adheres to - Optimized size and build process. + ### [ita-challenges-frontend-3.0.3-RELEASE] - Ugraded to Angular 18 diff --git a/GUIDELINES.md b/GUIDELINES.md index 4b2db443..08680712 100644 --- a/GUIDELINES.md +++ b/GUIDELINES.md @@ -303,7 +303,7 @@ All features developed are deployed on the develop server for testing when are a - Make sure your feature branch is up to date with the develop branch. - Make sure the name of your feature branch is right (feature/#X). - Follow semantic versioning (https://semver.org/), and update version number in package.json. -- Update version number (property MICROSERVICE_VERSION) at file .env.CI.dev as well. Make sure both versions are the same. There should be a white line at the end of the file. -- Make necesary annotations at file CHANGELOG.md +- Update version number (property MICROSERVICE_VERSION) at file **.env.CI.dev** and **package.json** as well. Make sure both versions are the same. There should be a white line at the end of the file. +- Make necesary annotations at file **CHANGELOG.md** - Push your changes to the remote repository. - Create a pull request from your feature branch to the develop branch. diff --git a/angular.json b/angular.json index 0b0605c9..e0ad1e9d 100755 --- a/angular.json +++ b/angular.json @@ -42,8 +42,6 @@ "node_modules/jquery/dist/jquery.min.js", "node_modules/@popperjs/core/dist/umd/popper.min.js", "node_modules/bootstrap/dist/js/bootstrap.min.js" - - ], "browser": "src/main.ts", "stylePreprocessorOptions": { @@ -178,4 +176,4 @@ "@schematics/angular" ] } -} \ No newline at end of file +} diff --git a/conf/.env.CI.dev b/conf/.env.CI.dev index 54487d93..43cb2b4c 100755 --- a/conf/.env.CI.dev +++ b/conf/.env.CI.dev @@ -1,2 +1,2 @@ MICROSERVICE_DEPLOY=ita-challenges-frontend -MICROSERVICE_VERSION=3.1.10-RELEASE +MICROSERVICE_VERSION=3.1.13-RELEASE diff --git a/package-lock.json b/package-lock.json index 7dae57d4..71305310 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,7 +64,7 @@ "eslint-plugin-n": "^16.6.2", "eslint-plugin-promise": "^6.1.1", "jest": "^29.5.0", - "typescript": "^5.4.4" + "typescript": "^5.4.5" } }, "node_modules/@aduh95/viz.js": { @@ -21404,10 +21404,9 @@ } }, "node_modules/typescript": { - "version": "5.4.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.4.tgz", - "integrity": "sha512-dGE2Vv8cpVvw28v8HCPqyb08EzbBURxDpuhJvTrusShUfGnhHBafDsLdS1EhhxyL6BJQE+2cT3dDPAv+MQ6oLw==", - "license": "Apache-2.0", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index 835fede2..102f62c7 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ita-challenges-frontend", - "version": "3.1.10-RELEASE", + "version": "3.1.13-RELEASE", "scripts": { "ng": "ng", "start": "ng serve --proxy-config proxy.conf.dev.json", diff --git a/src/app/models/challenge.model.ts b/src/app/models/challenge.model.ts index b2889f09..4ae06090 100755 --- a/src/app/models/challenge.model.ts +++ b/src/app/models/challenge.model.ts @@ -29,3 +29,17 @@ export class Challenge { }) } } + +export class ChallengeResponse { + count: number + limit: number + offset: number + results: Challenge[] + + constructor (data: any) { + this.count = data.count + this.limit = data.limit + this.offset = data.offset + this.results = data.results.map((item: any) => new Challenge(item)) + } +} diff --git a/src/app/modules/modals/filters-modal/filters-modal.component.html b/src/app/modules/modals/filters-modal/filters-modal.component.html index 390dc31e..24d54778 100755 --- a/src/app/modules/modals/filters-modal/filters-modal.component.html +++ b/src/app/modules/modals/filters-modal/filters-modal.component.html @@ -48,26 +48,31 @@
{{'modules.starter.filters.progress' | translate}}
-{{'modules.starter.filters.progress' | translate}}