Skip to content

Commit 43d8a3e

Browse files
committed
Closes #17: Finishing touches based on tutor feedback
1 parent 6dc5d25 commit 43d8a3e

File tree

9 files changed

+38
-19
lines changed

9 files changed

+38
-19
lines changed

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,40 +77,40 @@ A Code Coverage report is also available in [SonarCloud](https://sonarcloud.io/c
7777

7878
### Manual Test Plan
7979

80-
1. Running Benchmarks:
80+
1. **Running Benchmarks**:
8181
1. Go to the "Benchmarks" page
8282
2. Click on the "Run Benchmark" button below the graph
8383
3. Verify a spinning icon appears and the previous chart gets unloaded
8484
4. Verify that after a few seconds it will start populating data points
8585
5. Verify that when the spinning icon stops, all data points have been drawn and made a line per algorithm out of them
86-
2. Run Benchmark button:
86+
2. **Run Benchmark button**:
8787
1. Go to the "Benchmarks" page
8888
2. Try to click on the "Run Benchmark" button on the navigation bar.
8989
3. Verify this button is not available on the Benchmarks page (greyed out).
9090
4. Nagivate to "Setup" or "Resources"
9191
5. Verify than clicking the button the steps from Test 1 execute
92-
3. Resetting the chart:
92+
3. **Resetting the chart**:
9393
1. Go to the "Benchmarks" page
9494
2. Verify that clicking the "Reset Chart" button resets the chart
9595
3. Click on "Run Benchmark"
9696
4. Verify that the "Reset Chart" button is not available while the simulation is executing.
97-
4. Benchmark configuration:
98-
1. List of Algorithms:
97+
4. **Benchmark configuration**:
98+
1. **List of Algorithms**:
9999
1. Go to "Setup" page
100100
2. Modify the list of algorithms
101101
3. Click on Run Benchmark
102102
4. Verify that only the marked algorithms are running by checking the chart legend and results
103-
2. Collection Size:
103+
2. **Collection Size**:
104104
1. Go to "Setup" page
105105
2. Add or delete items from the collection list
106106
3. Click on Run Benchmark
107107
4. Verify that there's a data point per algorithm and item in the collection list drawn on the chart
108-
3. List of Repetitions:
108+
3. **List of Repetitions**:
109109
1. Go to "Setup" page
110110
2. Modify the number of repetitions to a bigger number
111111
3. Click on Run Benchmark
112112
4. Verify that the simulation takes longer and the numbers are more accurate than previous runs.
113-
4. Sad path testing:
113+
4. **Sad path testing**:
114114
1. Go to "Setup" page
115115
2. Delete all items on the simulation list
116116
3. Click on Run Benchmark
@@ -121,7 +121,7 @@ A Code Coverage report is also available in [SonarCloud](https://sonarcloud.io/c
121121
8. Verify no results are displayed
122122
9. Refresh the page
123123
10. Verify that no input below 1 can be entered in the Repetitions field
124-
5. Responsiveness:
124+
5. **Responsiveness**:
125125
1. Pages Resources and Home are static and fully responsive but no test case is necessary
126126
2. Nagivate to any of the routes "Home", "Benchmarks", "Setup", "Resources"
127127
3. Verify by using different devices or your browser sizing feature that all pages are responsive and redimension correctly for different sizes
@@ -149,9 +149,13 @@ As no environment variables are needed there's no need to host this project in a
149149
### Local Deployment
150150

151151
In order to run your project locally, assuming you have the latest version of Node or NPM just do:
152+
152153
`npm install`
154+
153155
`npm start`
156+
154157
This will run the project in **development mode**. To get a production build after `npm install` run:
158+
155159
`npm run build`
156160

157161
Further configuration can be done in terms of building and deploying. See the [Angular Documentation](https://angular.io/) for more details.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/app.component.scss

Whitespace-only changes.

src/app/app.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'app-root',
5-
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.scss']
5+
templateUrl: './app.component.html'
76
})
87
export class AppComponent {
98
title = 'Algorithm Benchmarking App';

src/app/barchart/barchart.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<div class="row">
88
<div class="mx-auto">
99
<!-- Run Benchmark button with loading spinner -->
10-
<button class="btn btn-primary text-center" (click)="runBenchmark()">
10+
<button class="btn btn-primary text-center btn-chart" (click)="runBenchmark()">
1111
Run Benchmark
1212
<span *ngIf="isRunningBenchmark" class="spinner-border spinner-border-sm" role="status"
1313
aria-hidden="true"></span>
1414
<span *ngIf="isRunningBenchmark" class="sr-only">Loading...</span>
1515
</button>
1616
<!-- Reset button -->
17-
<button class="btn btn-primary text-center" (click)="resetChart()">
17+
<button class="btn btn-primary text-center btn-chart" (click)="resetChart()" [disabled]="isRunningBenchmark">
1818
Reset Chart
1919
</button>
2020
</div>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.btn-chart {
2+
margin: 0 8px;
3+
}
4+
5+
#chart-container {
6+
margin-top: 1rem;
7+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
.container {
2-
margin-top: 15px;
3-
margin-bottom: 15px;
2+
margin-top: 1rem;
3+
margin-bottom: 1rem;
44

55
> div {
66
padding: 0px 12px;
77
}
88
}
99

1010
#accordion {
11-
margin-top: 15px;
11+
margin-top: 1rem;
1212
}

src/app/setup/setup.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="row">
33

44
<!-- Setup for List of ALgorithms -->
5-
<div class="col-4 justify-content-center">
5+
<div class="col-4 justify-content-center setup-item">
66
<h4>List of Algorithms</h4>
77
<div class="form-group">
88
<form action="">
@@ -20,7 +20,7 @@ <h4>List of Algorithms</h4>
2020

2121
<!-- Setup for amount of repetitions -->
2222
<div class="col-4">
23-
<div class="row justify-content-center">
23+
<div class="row justify-content-center setup-item">
2424
<h4>Repetitions for algorithm</h4>
2525
<div class="form-group col-9">
2626
<input type="number" class="form-control" id="repetitionsNo" aria-describedby="repHelp" [value]="repetitions"

src/app/setup/setup.component.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,12 @@
1818
.align-fix {
1919
padding-top: 5px;
2020
}
21+
22+
.container {
23+
margin-top: 1rem;
24+
}
25+
26+
// establishes the same padding as list-group-item so all items are at the same level
27+
.setup-item {
28+
padding: 0.75rem 1.25rem;
29+
}

0 commit comments

Comments
 (0)