Skip to content

Commit

Permalink
Update Help styles, remove unused css
Browse files Browse the repository at this point in the history
- Use routerLink and fragment for anchor links
- Make GettingStarted component extend FaqComponent to reduce duplication
  • Loading branch information
breity committed Oct 27, 2023
1 parent c005a74 commit 19022d5
Show file tree
Hide file tree
Showing 14 changed files with 300 additions and 350 deletions.
15 changes: 0 additions & 15 deletions src/app/help/faq/faq.component.scss

This file was deleted.

4 changes: 0 additions & 4 deletions src/app/help/faq/faq.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@ export abstract class FaqComponent implements OnInit {
ngAfterViewInit(): void {
document.getElementsByTagName('app-help')[0]?.scrollIntoView();
}

protected scrollTo(id: string): void {
document.getElementById(id).scrollIntoView();
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<div class="content-block">
<h1 fxLayoutAlign="left center">
<mat-icon class="title-icon">info</mat-icon><span i18n>Getting Started</span>
<h1 fxLayoutAlign="start center" fxLayoutGap="8px">
<mat-icon>info</mat-icon><span i18n>Getting Started</span>
</h1>
<hr />
<mat-divider></mat-divider>
<h3 i18n>Creating an Account</h3>
<p class="indented-text" i18n>
<p i18n>
All users must create their own account. Teachers must create a teacher account and students
must create a student account. Users can create an account by going to the
<a href="{{ contextPath }}" target="_blank">WISE Home Page</a> and clicking on the
<a href="{{ contextPath }}/join" target="_blank">Register</a> link at the upper right of the
screen.
</p>
<p class="indented-text" i18n>Here are instructions on how to create a teacher account.</p>
<p i18n>Here are instructions on how to create a teacher account.</p>
<ol>
<li i18n>Go to the <a href="{{ contextPath }}" target="_blank">WISE Home Page</a>.</li>
<li i18n>
Expand All @@ -27,13 +27,13 @@ <h3 i18n>Creating an Account</h3>
There may be a number added at the end of your username if someone has the same name as you.
</li>
</ol>
<hr />
<mat-divider></mat-divider>
<h3 i18n>Using a WISE Unit</h3>
<p class="indented-text" i18n>
<p i18n>
To use a WISE unit with your class, you must first choose a unit to use and then set up a "Run"
of that unit.
</p>
<p class="indented-text" i18n>Here are instructions on how to set up a Run.</p>
<p i18n>Here are instructions on how to set up a Run.</p>
<ol>
<li i18n>Sign in to WISE with your teacher account.</li>
<li i18n>Click the "Unit Library" tab.</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';

import { GettingStartedComponent } from './getting-started.component';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { ConfigService } from '../../services/config.service';
import { Config } from '../../domain/config';
import { ConfigService } from '../../../services/config.service';
import { Config } from '../../../domain/config';
import { Observable } from 'rxjs';

export class MockConfigService {
Expand All @@ -24,13 +24,15 @@ describe('GettingStartedComponent', () => {
let component: GettingStartedComponent;
let fixture: ComponentFixture<GettingStartedComponent>;

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [GettingStartedComponent],
providers: [{ provide: ConfigService, useClass: MockConfigService }],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [GettingStartedComponent],
providers: [{ provide: ConfigService, useClass: MockConfigService }],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(GettingStartedComponent);
Expand Down
9 changes: 9 additions & 0 deletions src/app/help/faq/getting-started/getting-started.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Component, OnInit } from '@angular/core';
import { ConfigService } from '../../../services/config.service';
import { FaqComponent } from '../faq.component';

@Component({
selector: 'app-getting-started',
templateUrl: './getting-started.component.html'
})
export class GettingStartedComponent extends FaqComponent {}
36 changes: 19 additions & 17 deletions src/app/help/faq/student-faq/student-faq.component.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<div id="studentFAQTop" class="content-block">
<h1 fxLayoutAlign="left center">
<mat-icon class="title-icon">face</mat-icon><span i18n>Student Frequently Asked Questions</span>
<div class="content-block">
<h1 fxLayoutAlign="start center" fxLayoutGap="8px">
<mat-icon>face</mat-icon><span i18n>Student Frequently Asked Questions</span>
</h1>
<hr />
<h2 id="generalQuestions" i18n>Table of Contents</h2>
<p class="indented-text">
<a (click)="scrollTo('generalQuestions')" class="link" i18n>General Questions</a>
</p>
<p class="indented-text">
<a (click)="scrollTo('technicalQuestions')" class="link" i18n>Technical Questions</a>
</p>
<hr />
<h2 i18n>General Questions</h2>
<mat-divider></mat-divider>
<h2 i18n>Table of Contents</h2>
<ul>
<li>
<a routerLink="." fragment="general" i18n>General Questions</a>
</li>
<li>
<a routerLink="." fragment="technical" i18n>Technical Questions</a>
</li>
</ul>
<mat-divider></mat-divider>
<h2 id="general" i18n>General Questions</h2>
<h3 i18n>How do I create an account?</h3>
<ol>
<li i18n>Go to the <a href="{{ contextPath }}/join" target="_blank">Register</a> page.</li>
Expand Down Expand Up @@ -49,14 +51,14 @@ <h3 i18n>How do I start working on a project?</h3>
<li i18n>Choose your period.</li>
<li i18n>Click "Add".</li>
<li i18n>The run will be added to your list of runs.</li>
<li id="technicalQuestions" i18n>Click "Launch" to open the project.</li>
<li i18n>Click "Launch" to open the project.</li>
</ol>
<h3 i18n>I chose the wrong period, how can I change it?</h3>
<ul>
<li i18n>Only your teacher can change your period. Please ask them for assistance.</li>
</ul>
<hr />
<h2 i18n>Technical Questions</h2>
<mat-divider></mat-divider>
<h2 id="technical" i18n>Technical Questions</h2>
<h3 i18n>The WISE web site won't load on my web browser. What do I do?</h3>
<ul>
<li i18n>
Expand All @@ -76,7 +78,7 @@ <h3 i18n>What if I have trouble logging in?</h3>
</li>
</ul>
<h3 i18n>Can I use WISE in another language?</h3>
<span class="indented-text" i18n>Yes!</span>
<p>Yes!</p>
<ol>
<li i18n>Sign into WISE with your student account.</li>
<li i18n>
Expand Down
3 changes: 1 addition & 2 deletions src/app/help/faq/student-faq/student-faq.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { FaqComponent } from '../faq.component';

@Component({
selector: 'app-student-faq',
templateUrl: './student-faq.component.html',
styleUrls: ['../faq.component.scss']
templateUrl: './student-faq.component.html'
})
export class StudentFaqComponent extends FaqComponent {}
93 changes: 45 additions & 48 deletions src/app/help/faq/teacher-faq/teacher-faq.component.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
<div class="content-block">
<h1 fxLayoutAlign="left center">
<mat-icon class="title-icon">school</mat-icon
><span i18n>Teacher Frequently Asked Questions</span>
<h1 fxLayoutAlign="start center" fxLayoutGap="8px">
<mat-icon>school</mat-icon><span i18n>Teacher Frequently Asked Questions</span>
</h1>
<hr />
<mat-divider></mat-divider>
<h2 i18n>Table of Contents</h2>
<p class="indented-text">
<a (click)="scrollTo('generalQuestions')" class="link" i18n>General Questions</a>
</p>
<p class="indented-text">
<a (click)="scrollTo('studentManagement')" class="link" i18n>Student Management</a>
</p>
<p class="indented-text">
<a (click)="scrollTo('projectManagement')" class="link" i18n>Project Management</a>
</p>
<p class="indented-text" id="generalQuestions">
<a (click)="scrollTo('assessmentOfStudentWork')" class="link" i18n
>Assessment of Student Work</a
>
</p>
<p class="indented-text">
<a (click)="scrollTo('realTimeClassroomMonitor')" class="link" i18n
>Real Time Classroom Monitor</a
>
</p>
<p class="indented-text">
<a (click)="scrollTo('technicalQuestions')" class="link" i18n>Technical Questions</a>
</p>
<hr />
<h2 i18n>General Questions</h2>
<ul>
<li>
<a routerLink="." fragment="general" i18n>General Questions</a>
</li>
<li>
<a routerLink="." fragment="student-management" i18n>Student Management</a>
</li>
<li>
<a routerLink="." fragment="project-management" i18n>Project Management</a>
</li>
<li>
<a routerLink="." fragment="assessment" i18n>Assessment of Student Work</a>
</li>
<li>
<a routerLink="." fragment="classroom-monitor" i18n>Real Time Classroom Monitor</a>
</li>
<li>
<a routerLink="." fragment="technical" i18n>Technical Questions</a>
</li>
</ul>
<mat-divider></mat-divider>
<h2 id="general" i18n>General Questions</h2>
<h3 i18n>How do I create an account?</h3>
<ol>
<li i18n>Go to the <a href="{{ contextPath }}/join" target="_blank">Register</a> page.</li>
Expand All @@ -53,7 +50,7 @@ <h3 i18n>How do I use a unit with my class?</h3>
Choose the number of students per team. Choosing 1-3 will allow students to work together in a
team.
</li>
<li id="studentManagement" i18n>
<li i18n>
Choose the start date. Students will not be able to use the project until this date.
</li>
<li i18n>Click "Create Run".</li>
Expand All @@ -63,10 +60,10 @@ <h3 i18n>How do I use a unit with my class?</h3>
Students will need to use this access code to work on the run you created.
</li>
</ol>
<hr />
<h2 i18n>Student Management</h2>
<mat-divider></mat-divider>
<h2 id="student-management" i18n>Student Management</h2>
<h3 i18n>Should I register my students for WISE or have them do it themselves?</h3>
<p class="indented-text" i18n>
<p i18n>
WISE makes student registration simple and intuitive -- direct your students to the register
page by having them go to the WISE home page and clicking the "Register" link at the upper
right. They should be able to register in 10 minutes or less. However, you can also opt to
Expand Down Expand Up @@ -128,14 +125,14 @@ <h3 i18n>How do I change a student team after they've started a project run?</h3
students into the new team. Save your changes.
</li>
<li>
<span class="warning" i18n>Warning 1</span>:
<span class="warn" i18n>Warning 1</span>:
<span i18n
>If you move Student A into an established team, student A loses all of their current work
and inherits the current work of the established team.</span
>
</li>
<li>
<span class="warning" i18n>Warning 2</span>:
<span class="warn" i18n>Warning 2</span>:
<span i18n
>If you move Student A into a newly created (blank) team, student A will lose all of their
work.</span
Expand All @@ -157,13 +154,13 @@ <h3 i18n>How do I change the period for a student?</h3>
<li i18n>Choose a different period.</li>
<li i18n>Click "Save Changes".</li>
<li>
<span class="warning" i18n>Warning</span>:
<span class="warn" i18n>Warning</span>:
<span i18n
>If you move a student to a different period, they will lose all of their work.</span
>
</li>
</ol>
<h3 id="projectManagement" i18n>
<h3 i18n>
I do not remember my teacher access code that students need to create their account for my new
students.
</h3>
Expand All @@ -172,8 +169,8 @@ <h3 id="projectManagement" i18n>
<li i18n>Find the run in your Teacher Home Page.</li>
<li i18n>The Access Code will be displayed below the run title.</li>
</ul>
<hr />
<h2 i18n>Project Management</h2>
<mat-divider></mat-divider>
<h2 id="project-management" i18n>Project Management</h2>
<h3 i18n>When should I set up my project run?</h3>
<ul>
<li i18n>
Expand Down Expand Up @@ -238,7 +235,7 @@ <h3 i18n>How do I delete a period after creating a run?</h3>
<li i18n>Find the period you want to delete and click the "Delete" button next to it.</li>
<li i18n>Note: You are not allowed to delete a period that has students in it.</li>
</ol>
<h3 id="assessmentOfStudentWork" i18n>
<h3 i18n>
What if I run out of computer lab time but some of my students are not finished with the
project?
</h3>
Expand All @@ -249,8 +246,8 @@ <h3 id="assessmentOfStudentWork" i18n>
computer, per the teacher's discretion.
</li>
</ul>
<hr />
<h2 i18n>Assessment of Student Work</h2>
<mat-divider></mat-divider>
<h2 id="assessment" i18n>Assessment of Student Work</h2>
<h3 i18n>How do I review and grade student work?</h3>
<ul>
<li i18n>Sign into WISE with your teacher account.</li>
Expand Down Expand Up @@ -295,7 +292,7 @@ <h3 i18n>How can I encourage my students to review the graded notes and comments
some sample responses and have the class critique the work.
</li>
</ul>
<h3 id="realTimeClassroomMonitor" i18n>How do I find time to grade all of the student work?</h3>
<h3 i18n>How do I find time to grade all of the student work?</h3>
<ul>
<li i18n>
We recommend that you go through the project and select a few steps that you think best
Expand All @@ -305,8 +302,8 @@ <h3 id="realTimeClassroomMonitor" i18n>How do I find time to grade all of the st
very time consuming and unpractical.
</li>
</ul>
<hr />
<h2 i18n>Real Time Classroom Monitor</h2>
<mat-divider></mat-divider>
<h2 id="classroom-monitor" i18n>Real Time Classroom Monitor</h2>
<h3 i18n>What is the Real Time Classroom Monitor?</h3>
<ul>
<li i18n>
Expand All @@ -318,7 +315,7 @@ <h3 i18n>What is the Real Time Classroom Monitor?</h3>
</ul>
<h3 i18n>Does the Real Time Classroom Monitor work on a tablet like the iPad?</h3>
<ul>
<li id="technicalQuestions" i18n>Yes it does.</li>
<li i18n>Yes it does.</li>
</ul>
<h3 i18n>Can I use the Real Time Classroom Monitor to pause student screens?</h3>
<ul>
Expand All @@ -327,8 +324,8 @@ <h3 i18n>Can I use the Real Time Classroom Monitor to pause student screens?</h3
discussion or to make an announcement.
</li>
</ul>
<hr />
<h2 i18n>Technical Questions</h2>
<mat-divider></mat-divider>
<h2 id="technical" i18n>Technical Questions</h2>
<h3 i18n>The WISE web site won't load on my web browser. What do I do?</h3>
<ul>
<li i18n>
Expand Down Expand Up @@ -356,7 +353,7 @@ <h3 i18n>What if I have trouble logging in?</h3>
</li>
</ul>
<h3 i18n>Can I use WISE in another language?</h3>
<span class="indented-text" i18n>Yes!</span>
<p i18n>Yes!</p>
<ol>
<li i18n>Sign into WISE with your teacher account.</li>
<li i18n>
Expand Down
3 changes: 1 addition & 2 deletions src/app/help/faq/teacher-faq/teacher-faq.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { FaqComponent } from '../faq.component';

@Component({
selector: 'app-teacher-faq',
templateUrl: './teacher-faq.component.html',
styleUrls: ['../faq.component.scss']
templateUrl: './teacher-faq.component.html'
})
export class TeacherFaqComponent extends FaqComponent {}
8 changes: 0 additions & 8 deletions src/app/help/getting-started/getting-started.component.scss

This file was deleted.

Loading

0 comments on commit 19022d5

Please sign in to comment.