Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' into feature/#582-unit-visibility-toggle-2
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickSkowronek authored May 4, 2018
2 parents 03e7305 + d37136c commit a9c45aa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Added an account activation resend feature. [#601](https://github.com/h-da/geli/issues/601)
- Added `SnackBarService` as wrapper for `MatSnackBar`. [#574](https://github.com/h-da/geli/issues/574)
- Added new course & user API unit tests. [#654](https://github.com/h-da/geli/issues/654) [#691](https://github.com/h-da/geli/issues/691)
- Added details of courseAdmin and teacher to course detail view. on click profiles are shown.[#598] (https://github.com/h-da/geli/issues/598)
- Added details of courseAdmin and teacher to course detail view. on click profiles are shown.[#598](https://github.com/h-da/geli/issues/598)
- Added small auto linting scripts to package.json [#688](https://github.com/h-da/geli/issues/688)
- Added changed size of drop down arrows for better usability. [#686](https://github.com/h-da/geli/issues/686)
- Added icon for access key [#547](https://github.com/h-da/geli/issues/574)

### Changed
- Refactored or slightly altered various course & user related APIs. [#654](https://github.com/h-da/geli/issues/654) [#691](https://github.com/h-da/geli/issues/691)
- Refactored the unitCreator with a forsafe user object. [#717](https://github.com/h-da/geli/pull/717)
- Removed firstname from resend activation feature and change button positioning. [#711] (https://github.com/h-da/geli/issues/711)
- Refactored register and resend activation to use geli email validator with top level domain check. [#713] (https://github.com/h-da/geli/issues/713)
- Removed firstname from resend activation feature and change button positioning. [#711](https://github.com/h-da/geli/issues/711)
- Refactored register and resend activation to use geli email validator with top level domain check. [#713](https://github.com/h-da/geli/issues/713)

### Fixed
- Fixed Course progress mechanism
Expand All @@ -36,6 +36,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Repair Angular CLI code generation. [#701](https://github.com/h-da/geli/pull/701)
- Fixed `tsconfig.spec.ts` for `ng test`. [#656](https://github.com/h-da/geli/pull/656)
- Fixed `.travis.yml`. [#706](https://github.com/h-da/geli/pull/706)
- Fixed wording of progress display on profile page. [#715](https://github.com/h-da/geli/issues/715)
- Fixed form validator in create task [#579](https://github.com/h-da/geli/issues/579)

### Added
- Unit visibility toggle [#582](https://github.com/h-da/geli/issues/582)
Expand Down
4 changes: 2 additions & 2 deletions api/src/controllers/ReportController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,9 @@ export class ReportController {
.map(({courseObj, progressableUnitCount}: any) => {
const progressStats = this.calculateProgress(userProgressData, progressableUnitCount, courseObj);
courseObj.progressData = [
{ name: 'nothing', value: progressStats.nothing },
{ name: 'not tried', value: progressStats.nothing },
{ name: 'tried', value: progressStats.tried },
{ name: 'done', value: progressStats.done }
{ name: 'solved', value: progressStats.done }
];
return courseObj;
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div *ngFor="let task of model.tasks" class="question-answer">
<mat-form-field matLine class="question">
<textarea matInput id="name" placeholder="Enter question here" [(ngModel)]="task.name"></textarea>
<textarea matInput id="name" placeholder="Enter question here *" [(ngModel)]="task.name"></textarea>
</mat-form-field>

<button mat-button class="remove" (click)="removeTask(task)">
Expand All @@ -21,7 +21,7 @@
<div class="check-answer">
<mat-checkbox [(ngModel)]="answer.value" name="value_{{idx}}"></mat-checkbox>
<mat-form-field>
<input matInput placeholder="Enter answer here" [(ngModel)]="answer.text">
<input matInput placeholder="Enter answer here *" [(ngModel)]="answer.text">
</mat-form-field>
<button mat-button class="remove" (click)="removeAnswer(task, idx)" matTooltip="Remove answer">
<mat-icon>delete</mat-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class UnitGeneralInfoFormComponent implements OnInit {
}
this.form = this.formBuilder.group({
name: [this.model ? this.model.name : '', Validators.required],
description: [this.model ? this.model.description : '', Validators.required],
description: [this.model ? this.model.description : ''],
deadline: [this.model ? this.model.deadline : ''],
visible: [this.model ? this.model.visible : false]
});
Expand Down

0 comments on commit a9c45aa

Please sign in to comment.