From b7fc84d7acea7a05e4193209016934d4854dd8f3 Mon Sep 17 00:00:00 2001 From: Jacob Boddey Date: Fri, 22 Sep 2023 14:51:42 +0100 Subject: [PATCH 1/2] Update UI --- docs/test/new_module.md | 0 docs/test/new_test.md | 0 modules/ui/src/app/app-routing.module.ts | 15 ++++++++ modules/ui/src/app/app.component.html | 15 ++++++++ modules/ui/src/app/app.component.scss | 15 ++++++++ modules/ui/src/app/app.component.spec.ts | 17 ++++++++- modules/ui/src/app/app.component.ts | 15 ++++++++ modules/ui/src/app/app.module.ts | 15 ++++++++ .../device-item/device-item.component.html | 15 ++++++++ .../device-item/device-item.component.scss | 15 ++++++++ .../device-item/device-item.component.spec.ts | 15 ++++++++ .../device-item/device-item.component.ts | 15 ++++++++ .../device-tests/device-tests.component.html | 15 ++++++++ .../device-tests/device-tests.component.scss | 15 ++++++++ .../device-tests.component.spec.ts | 17 ++++++++- .../device-tests/device-tests.component.ts | 15 ++++++++ .../download-report.component.html | 15 ++++++++ .../download-report.component.scss | 15 ++++++++ .../download-report.component.spec.ts | 15 ++++++++ .../download-report.component.ts | 15 ++++++++ .../general-settings.component.html | 15 ++++++++ .../general-settings.component.scss | 15 ++++++++ .../general-settings.component.spec.ts | 15 ++++++++ .../general-settings.component.ts | 15 ++++++++ .../only-different-values.validator.ts | 15 ++++++++ .../device-form/device-form.component.html | 15 ++++++++ .../device-form/device-form.component.scss | 15 ++++++++ .../device-form/device-form.component.spec.ts | 15 ++++++++ .../device-form/device-form.component.ts | 15 ++++++++ .../device-form/device.validators.ts | 15 ++++++++ .../device-repository-routing.module.ts | 15 ++++++++ .../device-repository.component.html | 15 ++++++++ .../device-repository.component.scss | 15 ++++++++ .../device-repository.component.spec.ts | 17 ++++++++- .../device-repository.component.ts | 15 ++++++++ .../device-repository.module.ts | 15 ++++++++ .../guards/allow-to-run-test.guard.spec.ts | 15 ++++++++ .../src/app/guards/allow-to-run-test.guard.ts | 15 ++++++++ .../src/app/history/history-routing.module.ts | 15 ++++++++ .../ui/src/app/history/history.component.html | 15 ++++++++ .../ui/src/app/history/history.component.scss | 15 ++++++++ .../src/app/history/history.component.spec.ts | 19 +++++++++- .../ui/src/app/history/history.component.ts | 15 ++++++++ modules/ui/src/app/history/history.module.ts | 15 ++++++++ modules/ui/src/app/mocks/device.mock.ts | 15 ++++++++ modules/ui/src/app/mocks/progress.mock.ts | 15 ++++++++ modules/ui/src/app/model/device.ts | 15 ++++++++ modules/ui/src/app/model/setting.ts | 15 ++++++++ modules/ui/src/app/model/testrun-status.ts | 24 ++++++++++-- .../ui/src/app/notification.service.spec.ts | 15 ++++++++ modules/ui/src/app/notification.service.ts | 15 ++++++++ .../progress-breadcrumbs.component.html | 15 ++++++++ .../progress-breadcrumbs.component.scss | 15 ++++++++ .../progress-breadcrumbs.component.spec.ts | 15 ++++++++ .../progress-breadcrumbs.component.ts | 15 ++++++++ .../progress-initiate-form.component.html | 15 ++++++++ .../progress-initiate-form.component.scss | 15 ++++++++ .../progress-initiate-form.component.spec.ts | 15 ++++++++ .../progress-initiate-form.component.ts | 15 ++++++++ .../app/progress/progress-routing.module.ts | 15 ++++++++ .../progress-status-card.component.html | 15 ++++++++ .../progress-status-card.component.scss | 15 ++++++++ .../progress-status-card.component.spec.ts | 15 ++++++++ .../progress-status-card.component.ts | 17 ++++++++- .../progress-table.component.html | 15 ++++++++ .../progress-table.component.scss | 15 ++++++++ .../progress-table.component.spec.ts | 17 ++++++++- .../progress-table.component.ts | 15 ++++++++ .../src/app/progress/progress.component.html | 15 ++++++++ .../src/app/progress/progress.component.scss | 15 ++++++++ .../app/progress/progress.component.spec.ts | 15 ++++++++ .../ui/src/app/progress/progress.component.ts | 15 ++++++++ .../ui/src/app/progress/progress.module.ts | 15 ++++++++ modules/ui/src/app/test-run.service.spec.ts | 37 ++++++++++++++++--- modules/ui/src/app/test-run.service.ts | 20 +++++++++- modules/ui/src/index.html | 19 +++++++++- modules/ui/src/main.ts | 19 +++++++++- modules/ui/src/styles.scss | 21 +++++++++++ modules/ui/src/theming/colors.scss | 15 ++++++++ modules/ui/src/theming/theme.scss | 15 ++++++++ modules/ui/src/theming/variables.scss | 15 ++++++++ 81 files changed, 1229 insertions(+), 20 deletions(-) delete mode 100644 docs/test/new_module.md delete mode 100644 docs/test/new_test.md diff --git a/docs/test/new_module.md b/docs/test/new_module.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/docs/test/new_test.md b/docs/test/new_test.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/ui/src/app/app-routing.module.ts b/modules/ui/src/app/app-routing.module.ts index 20e8c8bbf..390633e32 100644 --- a/modules/ui/src/app/app-routing.module.ts +++ b/modules/ui/src/app/app-routing.module.ts @@ -1,3 +1,18 @@ +/** + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {allowToRunTestGuard} from './guards/allow-to-run-test.guard'; diff --git a/modules/ui/src/app/app.component.html b/modules/ui/src/app/app.component.html index 92d396d4c..d4632736c 100644 --- a/modules/ui/src/app/app.component.html +++ b/modules/ui/src/app/app.component.html @@ -1,3 +1,18 @@ +
diff --git a/modules/ui/src/app/app.component.scss b/modules/ui/src/app/app.component.scss index e882c7df2..d0a1f2cd4 100644 --- a/modules/ui/src/app/app.component.scss +++ b/modules/ui/src/app/app.component.scss @@ -1,3 +1,18 @@ +/** + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ @use '@angular/material' as mat; @import "../theming/colors"; diff --git a/modules/ui/src/app/app.component.spec.ts b/modules/ui/src/app/app.component.spec.ts index 024c533f2..265cf12ec 100644 --- a/modules/ui/src/app/app.component.spec.ts +++ b/modules/ui/src/app/app.component.spec.ts @@ -1,10 +1,24 @@ +/** + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import {HttpClientTestingModule} from '@angular/common/http/testing'; import {ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; import {Router} from '@angular/router'; import {RouterTestingModule} from '@angular/router/testing'; import {AppComponent} from './app.component'; import {TestRunService} from './test-run.service'; -import SpyObj = jasmine.SpyObj; import {BehaviorSubject} from 'rxjs/internal/BehaviorSubject'; import {Device} from './model/device'; import {device} from './mocks/device.mock'; @@ -15,6 +29,7 @@ import {MatToolbarModule} from '@angular/material/toolbar'; import {MatSidenavModule} from '@angular/material/sidenav'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {AppRoutingModule} from './app-routing.module'; +import SpyObj = jasmine.SpyObj; describe('AppComponent', () => { let component: AppComponent; diff --git a/modules/ui/src/app/app.component.ts b/modules/ui/src/app/app.component.ts index 7e5c13b42..9b3f243e9 100644 --- a/modules/ui/src/app/app.component.ts +++ b/modules/ui/src/app/app.component.ts @@ -1,3 +1,18 @@ +/** + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import {Component, OnInit, ViewChild} from '@angular/core'; import {MatIconRegistry} from '@angular/material/icon'; import {DomSanitizer} from '@angular/platform-browser'; diff --git a/modules/ui/src/app/app.module.ts b/modules/ui/src/app/app.module.ts index 0ee0dba02..89c2d3eb9 100644 --- a/modules/ui/src/app/app.module.ts +++ b/modules/ui/src/app/app.module.ts @@ -1,3 +1,18 @@ +/** + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import {HttpClientModule} from '@angular/common/http'; import {NgModule} from '@angular/core'; import {MatButtonModule} from '@angular/material/button'; diff --git a/modules/ui/src/app/components/device-item/device-item.component.html b/modules/ui/src/app/components/device-item/device-item.component.html index 8db6874b7..535eb66c8 100644 --- a/modules/ui/src/app/components/device-item/device-item.component.html +++ b/modules/ui/src/app/components/device-item/device-item.component.html @@ -1,3 +1,18 @@ +