wip
parent
2c32d4cc2e
commit
0382d9a678
|
|
@ -65,28 +65,14 @@ export class FeedbackComponent implements OnInit {
|
||||||
|
|
||||||
createForm() {
|
createForm() {
|
||||||
const formControls: { [key: string]: any } = {
|
const formControls: { [key: string]: any } = {
|
||||||
// Demographics
|
|
||||||
age: [null, [Validators.required, Validators.min(13), Validators.max(120)]],
|
age: [null, [Validators.required, Validators.min(13), Validators.max(120)]],
|
||||||
gender: [null, Validators.required],
|
gender: [null, Validators.required],
|
||||||
|
|
||||||
// Experience
|
|
||||||
arExperience: [null, Validators.required],
|
arExperience: [null, Validators.required],
|
||||||
vrExperience: [null, Validators.required],
|
vrExperience: [null, Validators.required],
|
||||||
|
|
||||||
// Final Comments
|
|
||||||
comments: [''],
|
comments: [''],
|
||||||
};
|
};
|
||||||
|
this.usabilityItems.forEach(item => { formControls[item.controlName] = [null, Validators.required]; });
|
||||||
// Usability items (1-5 scale)
|
this.harItems.forEach(item => { formControls[item.controlName] = [null, Validators.required]; });
|
||||||
this.usabilityItems.forEach(item => {
|
|
||||||
formControls[item.controlName] = [null, Validators.required];
|
|
||||||
});
|
|
||||||
|
|
||||||
// HAR items (1-7 scale)
|
|
||||||
this.harItems.forEach(item => {
|
|
||||||
formControls[item.controlName] = [null, Validators.required];
|
|
||||||
});
|
|
||||||
|
|
||||||
this.feedbackForm = this.formBuilder.group(formControls);
|
this.feedbackForm = this.formBuilder.group(formControls);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -102,7 +88,7 @@ export class FeedbackComponent implements OnInit {
|
||||||
next: () => {
|
next: () => {
|
||||||
this.isSubmitting = false;
|
this.isSubmitting = false;
|
||||||
this.isSubmitted = true;
|
this.isSubmitted = true;
|
||||||
setTimeout(() => this.testComplete.emit(), 3000);
|
setTimeout(() => this.testComplete.emit(), 2000);
|
||||||
},
|
},
|
||||||
error: (err) => {
|
error: (err) => {
|
||||||
console.error("FINAL SUBMISSION FAILED:", err);
|
console.error("FINAL SUBMISSION FAILED:", err);
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,8 @@ import { CeilingPlacementDemonstratorComponent } from "./assessments/preivew/cei
|
||||||
})
|
})
|
||||||
export class TestSuiteComponent implements OnInit, OnDestroy {
|
export class TestSuiteComponent implements OnInit, OnDestroy {
|
||||||
currentTest = 1;
|
currentTest = 1;
|
||||||
totalTests = 4;
|
totalTests = 2;
|
||||||
progress = 25;
|
progress = 50;
|
||||||
|
|
||||||
private destroy$ = new Subject<void>();
|
private destroy$ = new Subject<void>();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue