From 024520d5fff4d255011824a117a685781682460d Mon Sep 17 00:00:00 2001 From: Timon Borter Date: Mon, 6 Nov 2023 21:41:18 +0100 Subject: [PATCH] feat(simulator-ui): faster access to scenario executions by status --- simulator-ui/.eslintrc.json | 2 +- .../src/main/webapp/app/app-routing.module.ts | 5 ++ .../src/main/webapp/app/app.module.ts | 17 +++-- .../webapp/app/config/font-awesome-icons.ts | 4 ++ .../webapp/app/config/pagination.constants.ts | 2 +- .../message-header-detail.component.html | 4 +- .../detail/message-header-detail.component.ts | 2 +- .../list/message-header.component.html | 8 +-- .../list/message-header.component.ts | 2 +- .../detail/message-detail.component.html | 4 +- .../detail/message-detail.component.ts | 2 +- .../message/list/message.component.html | 8 +-- .../message/list/message.component.ts | 2 +- .../scenario-action-detail.component.html | 4 +- .../scenario-action-detail.component.ts | 2 +- .../list/scenario-action.component.html | 8 +-- .../list/scenario-action.component.ts | 2 +- .../scenario-execution-detail.component.html | 4 +- .../scenario-execution-detail.component.ts | 2 +- .../list/scenario-execution.component.html | 8 +-- .../list/scenario-execution.component.ts | 2 +- .../scenario-execution.model.ts | 10 +++ .../scenario-parameter-detail.component.html | 4 +- .../scenario-parameter-detail.component.ts | 2 +- .../list/scenario-parameter.component.html | 8 +-- .../list/scenario-parameter.component.ts | 2 +- .../test-parameter-detail.component.html | 4 +- .../detail/test-parameter-detail.component.ts | 2 +- .../list/test-parameter.component.html | 8 +-- .../list/test-parameter.component.ts | 2 +- .../detail/test-result-detail.component.html | 4 +- .../detail/test-result-detail.component.ts | 2 +- .../list/test-result.component.html | 8 +-- .../test-result/list/test-result.component.ts | 2 +- .../main/webapp/app/home/home.component.ts | 2 +- .../home/test-result-summary.component.html | 68 ++++++++++++++++--- .../app/home/test-result-summary.component.ts | 7 +- .../app/layouts/error/error.component.ts | 2 +- .../app/layouts/footer/footer.component.ts | 2 +- .../app/layouts/main/main.component.html | 4 +- .../webapp/app/layouts/main/main.component.ts | 2 +- .../app/layouts/navbar/navbar.component.html | 8 +++ .../app/layouts/navbar/navbar.component.ts | 5 +- .../layouts/profiles/page-ribbon.component.ts | 2 +- .../layouts/profiles/profile-info.model.ts | 1 - .../app/layouts/profiles/profile.service.ts | 1 - .../scenario-result.component.html | 3 + .../scenario-result.component.ts | 12 ++++ .../scenario-result/scenario-result.routes.ts | 17 +++++ .../detail/scenario-detail.component.html | 4 +- .../detail/scenario-detail.component.ts | 2 +- .../app/scenario/list/scenario.component.html | 21 +++++- .../scenario/list/scenario.component.spec.ts | 4 +- .../app/scenario/list/scenario.component.ts | 2 +- .../app/shared/alert/alert-error.component.ts | 2 +- .../app/shared/alert/alert.component.ts | 2 +- .../app/shared/filter/filter.component.ts | 2 +- .../shared/pagination/item-count.component.ts | 2 +- .../main/webapp/content/images/openapi.svg | 4 ++ .../src/main/webapp/i18n/en/global.json | 6 ++ .../src/main/webapp/i18n/en/scenario.json | 3 +- simulator-ui/src/main/webapp/index.html | 4 +- 62 files changed, 244 insertions(+), 102 deletions(-) create mode 100644 simulator-ui/src/main/webapp/app/scenario-result/scenario-result.component.html create mode 100644 simulator-ui/src/main/webapp/app/scenario-result/scenario-result.component.ts create mode 100644 simulator-ui/src/main/webapp/app/scenario-result/scenario-result.routes.ts create mode 100644 simulator-ui/src/main/webapp/content/images/openapi.svg diff --git a/simulator-ui/.eslintrc.json b/simulator-ui/.eslintrc.json index 6ec524114..5a3cb9410 100644 --- a/simulator-ui/.eslintrc.json +++ b/simulator-ui/.eslintrc.json @@ -24,7 +24,7 @@ "error", { "type": "element", - "prefix": ["app", "jhi"], + "prefix": "app", "style": "kebab-case" } ], diff --git a/simulator-ui/src/main/webapp/app/app-routing.module.ts b/simulator-ui/src/main/webapp/app/app-routing.module.ts index c485b3f8b..4fdf13500 100644 --- a/simulator-ui/src/main/webapp/app/app-routing.module.ts +++ b/simulator-ui/src/main/webapp/app/app-routing.module.ts @@ -30,6 +30,11 @@ import NavbarComponent from './layouts/navbar/navbar.component'; data: { pageTitle: 'citrusSimulatorApp.scenario.home.title' }, loadChildren: () => import(`./scenario/scenario.routes`), }, + { + path: 'scenario-result', + data: { pageTitle: 'citrusSimulatorApp.scenarioExecution.home.title' }, + loadChildren: () => import(`./scenario-result/scenario-result.routes`), + }, ...errorRoute, ], { enableTracing: DEBUG_INFO_ENABLED, bindToComponentInputs: true }, diff --git a/simulator-ui/src/main/webapp/app/app.module.ts b/simulator-ui/src/main/webapp/app/app.module.ts index 6823ff032..0a81695df 100644 --- a/simulator-ui/src/main/webapp/app/app.module.ts +++ b/simulator-ui/src/main/webapp/app/app.module.ts @@ -1,25 +1,30 @@ -import { NgModule, LOCALE_ID } from '@angular/core'; import { registerLocaleData } from '@angular/common'; import { HttpClientModule } from '@angular/common/http'; import locale from '@angular/common/locales/en'; +import { NgModule, LOCALE_ID } from '@angular/core'; import { BrowserModule, Title } from '@angular/platform-browser'; import { TitleStrategy } from '@angular/router'; import { ServiceWorkerModule } from '@angular/service-worker'; + import { FaIconLibrary } from '@fortawesome/angular-fontawesome'; -import dayjs from 'dayjs/esm'; + import { NgbDateAdapter, NgbDatepickerConfig } from '@ng-bootstrap/ng-bootstrap'; +import dayjs from 'dayjs/esm'; + import { ApplicationConfigService } from 'app/core/config/application-config.service'; -import './config/dayjs'; +import { httpInterceptorProviders } from 'app/core/interceptor'; import { TranslationModule } from 'app/shared/language/translation.module'; -import { httpInterceptorProviders } from 'app/core/interceptor/index'; + +import { AppPageTitleStrategy } from './app-page-title-strategy'; import { AppRoutingModule } from './app-routing.module'; -// jhipster-needle-angular-add-module-import JHipster will add new module here +import './config/dayjs'; import { NgbDateDayjsAdapter } from './config/datepicker-adapter'; import { fontAwesomeIcons } from './config/font-awesome-icons'; import MainComponent from './layouts/main/main.component'; import MainModule from './layouts/main/main.module'; -import { AppPageTitleStrategy } from './app-page-title-strategy'; + +// jhipster-needle-angular-add-module-import JHipster will add new module here @NgModule({ imports: [ diff --git a/simulator-ui/src/main/webapp/app/config/font-awesome-icons.ts b/simulator-ui/src/main/webapp/app/config/font-awesome-icons.ts index 6e5f94ebc..c09f8e0f3 100644 --- a/simulator-ui/src/main/webapp/app/config/font-awesome-icons.ts +++ b/simulator-ui/src/main/webapp/app/config/font-awesome-icons.ts @@ -9,6 +9,7 @@ import { faCalendarAlt, faChartPie, faCheck, + faCircleInfo, faCloud, faCogs, faDatabase, @@ -31,6 +32,7 @@ import { faSort, faSortDown, faSortUp, + faSquarePollVertical, faSync, faTachometerAlt, faTasks, @@ -58,6 +60,7 @@ export const fontAwesomeIcons = [ faCalendarAlt, faChartPie, faCheck, + faCircleInfo, faCloud, faCogs, faDatabase, @@ -81,6 +84,7 @@ export const fontAwesomeIcons = [ faSort, faSortDown, faSortUp, + faSquarePollVertical, faSync, faTachometerAlt, faTasks, diff --git a/simulator-ui/src/main/webapp/app/config/pagination.constants.ts b/simulator-ui/src/main/webapp/app/config/pagination.constants.ts index 6bee3ff5a..21fdfe2ee 100644 --- a/simulator-ui/src/main/webapp/app/config/pagination.constants.ts +++ b/simulator-ui/src/main/webapp/app/config/pagination.constants.ts @@ -1,3 +1,3 @@ export const TOTAL_COUNT_RESPONSE_HEADER = 'X-Total-Count'; export const PAGE_HEADER = 'page'; -export const ITEMS_PER_PAGE = 20; +export const ITEMS_PER_PAGE = 10; diff --git a/simulator-ui/src/main/webapp/app/entities/message-header/detail/message-header-detail.component.html b/simulator-ui/src/main/webapp/app/entities/message-header/detail/message-header-detail.component.html index 97ef51f87..88e142171 100644 --- a/simulator-ui/src/main/webapp/app/entities/message-header/detail/message-header-detail.component.html +++ b/simulator-ui/src/main/webapp/app/entities/message-header/detail/message-header-detail.component.html @@ -7,9 +7,9 @@


- + - +
ID
diff --git a/simulator-ui/src/main/webapp/app/entities/message-header/detail/message-header-detail.component.ts b/simulator-ui/src/main/webapp/app/entities/message-header/detail/message-header-detail.component.ts index bbfa90fdb..4496bcb0b 100644 --- a/simulator-ui/src/main/webapp/app/entities/message-header/detail/message-header-detail.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/message-header/detail/message-header-detail.component.ts @@ -7,7 +7,7 @@ import { IMessageHeader } from '../message-header.model'; @Component({ standalone: true, - selector: 'jhi-message-header-detail', + selector: 'app-message-header-detail', templateUrl: './message-header-detail.component.html', imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe], }) diff --git a/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header.component.html b/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header.component.html index 60d156e14..ce7a979dd 100644 --- a/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header.component.html +++ b/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header.component.html @@ -10,11 +10,11 @@

- + - + - +
No Message Headers found @@ -97,7 +97,7 @@

- +
diff --git a/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header.component.ts b/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header.component.ts index 23666575c..a7c2b13ec 100644 --- a/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header.component.ts @@ -17,7 +17,7 @@ import { IMessageHeader } from '../message-header.model'; @Component({ standalone: true, - selector: 'jhi-message-header', + selector: 'app-message-header', templateUrl: './message-header.component.html', imports: [ RouterModule, diff --git a/simulator-ui/src/main/webapp/app/entities/message/detail/message-detail.component.html b/simulator-ui/src/main/webapp/app/entities/message/detail/message-detail.component.html index 3de3fc491..e8bf8d91c 100644 --- a/simulator-ui/src/main/webapp/app/entities/message/detail/message-detail.component.html +++ b/simulator-ui/src/main/webapp/app/entities/message/detail/message-detail.component.html @@ -5,9 +5,9 @@

ID
diff --git a/simulator-ui/src/main/webapp/app/entities/message/detail/message-detail.component.ts b/simulator-ui/src/main/webapp/app/entities/message/detail/message-detail.component.ts index 5c15b69d0..c3d53402c 100644 --- a/simulator-ui/src/main/webapp/app/entities/message/detail/message-detail.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/message/detail/message-detail.component.ts @@ -7,7 +7,7 @@ import { IMessage } from '../message.model'; @Component({ standalone: true, - selector: 'jhi-message-detail', + selector: 'app-message-detail', templateUrl: './message-detail.component.html', imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe], }) diff --git a/simulator-ui/src/main/webapp/app/entities/message/list/message.component.html b/simulator-ui/src/main/webapp/app/entities/message/list/message.component.html index 5243d6944..72497a6b0 100644 --- a/simulator-ui/src/main/webapp/app/entities/message/list/message.component.html +++ b/simulator-ui/src/main/webapp/app/entities/message/list/message.component.html @@ -10,11 +10,11 @@

- + - + - +
No Messages found @@ -119,7 +119,7 @@

- +
diff --git a/simulator-ui/src/main/webapp/app/entities/message/list/message.component.ts b/simulator-ui/src/main/webapp/app/entities/message/list/message.component.ts index ae894db73..baf042763 100644 --- a/simulator-ui/src/main/webapp/app/entities/message/list/message.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/message/list/message.component.ts @@ -17,7 +17,7 @@ import { IMessage } from '../message.model'; @Component({ standalone: true, - selector: 'jhi-message', + selector: 'app-message', templateUrl: './message.component.html', imports: [ RouterModule, diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-action/detail/scenario-action-detail.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-action/detail/scenario-action-detail.component.html index e99b980ce..d99cdfa78 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-action/detail/scenario-action-detail.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-action/detail/scenario-action-detail.component.html @@ -7,9 +7,9 @@


- + - +
ID
diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-action/detail/scenario-action-detail.component.ts b/simulator-ui/src/main/webapp/app/entities/scenario-action/detail/scenario-action-detail.component.ts index c78f90a89..67b4044f2 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-action/detail/scenario-action-detail.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/scenario-action/detail/scenario-action-detail.component.ts @@ -7,7 +7,7 @@ import { IScenarioAction } from '../scenario-action.model'; @Component({ standalone: true, - selector: 'jhi-scenario-action-detail', + selector: 'app-scenario-action-detail', templateUrl: './scenario-action-detail.component.html', imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe], }) diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.html index 6a3d2cfb8..5ad100271 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.html @@ -10,11 +10,11 @@

- + - + - +
No Scenario Actions found @@ -92,7 +92,7 @@

- +
diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.ts b/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.ts index b929f408d..1563a7dfa 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.ts @@ -17,7 +17,7 @@ import { IScenarioAction } from '../scenario-action.model'; @Component({ standalone: true, - selector: 'jhi-scenario-action', + selector: 'app-scenario-action', templateUrl: './scenario-action.component.html', imports: [ RouterModule, diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-execution-detail.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-execution-detail.component.html index 2abb4044b..a27d83a97 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-execution-detail.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-execution-detail.component.html @@ -7,9 +7,9 @@


- + - +
ID
diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-execution-detail.component.ts b/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-execution-detail.component.ts index c21b382de..1d4559e28 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-execution-detail.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-execution-detail.component.ts @@ -7,7 +7,7 @@ import { IScenarioExecution } from '../scenario-execution.model'; @Component({ standalone: true, - selector: 'jhi-scenario-execution-detail', + selector: 'app-scenario-execution-detail', templateUrl: './scenario-execution-detail.component.html', imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe], }) diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.html index 59a5bae6d..b92dc2634 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.html @@ -10,11 +10,11 @@

- + - + - +
No Scenario Executions found @@ -138,7 +138,7 @@

- +
diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.ts b/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.ts index 4c25f2163..b29084340 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.ts @@ -17,7 +17,7 @@ import { IScenarioExecution } from '../scenario-execution.model'; @Component({ standalone: true, - selector: 'jhi-scenario-execution', + selector: 'app-scenario-execution', templateUrl: './scenario-execution.component.html', imports: [ RouterModule, diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-execution/scenario-execution.model.ts b/simulator-ui/src/main/webapp/app/entities/scenario-execution/scenario-execution.model.ts index 7dc9b62c6..ccf52d517 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-execution/scenario-execution.model.ts +++ b/simulator-ui/src/main/webapp/app/entities/scenario-execution/scenario-execution.model.ts @@ -10,3 +10,13 @@ export interface IScenarioExecution { } export type NewScenarioExecution = Omit & { executionId: null }; + +export interface IScenarioExecutionStatus { + id: number; + name: 'UNKNOWN' | 'RUNNING' | 'SUCCESS' | 'FAILED'; +} + +export const STATUS_UNKNOWN: IScenarioExecutionStatus = { id: 0, name: 'UNKNOWN' }; +export const STATUS_RUNNING: IScenarioExecutionStatus = { id: 1, name: 'RUNNING' }; +export const STATUS_SUCCESS: IScenarioExecutionStatus = { id: 2, name: 'SUCCESS' }; +export const STATUS_FAILED: IScenarioExecutionStatus = { id: 3, name: 'FAILED' }; diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-parameter/detail/scenario-parameter-detail.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-parameter/detail/scenario-parameter-detail.component.html index 6f97984eb..eb8267bc6 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-parameter/detail/scenario-parameter-detail.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-parameter/detail/scenario-parameter-detail.component.html @@ -7,9 +7,9 @@


- + - +
ID
diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-parameter/detail/scenario-parameter-detail.component.ts b/simulator-ui/src/main/webapp/app/entities/scenario-parameter/detail/scenario-parameter-detail.component.ts index 4dd03cf2b..9eb191ced 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-parameter/detail/scenario-parameter-detail.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/scenario-parameter/detail/scenario-parameter-detail.component.ts @@ -7,7 +7,7 @@ import { IScenarioParameter } from '../scenario-parameter.model'; @Component({ standalone: true, - selector: 'jhi-scenario-parameter-detail', + selector: 'app-scenario-parameter-detail', templateUrl: './scenario-parameter-detail.component.html', imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe], }) diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.html index e34a3bd40..94c2437a2 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.html @@ -10,11 +10,11 @@

- + - + - +
No Scenario Parameters found @@ -106,7 +106,7 @@

- +
diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.ts b/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.ts index 2cd5027f4..22745d909 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.ts @@ -17,7 +17,7 @@ import { IScenarioParameter } from '../scenario-parameter.model'; @Component({ standalone: true, - selector: 'jhi-scenario-parameter', + selector: 'app-scenario-parameter', templateUrl: './scenario-parameter.component.html', imports: [ RouterModule, diff --git a/simulator-ui/src/main/webapp/app/entities/test-parameter/detail/test-parameter-detail.component.html b/simulator-ui/src/main/webapp/app/entities/test-parameter/detail/test-parameter-detail.component.html index a91a38d47..5e69bf900 100644 --- a/simulator-ui/src/main/webapp/app/entities/test-parameter/detail/test-parameter-detail.component.html +++ b/simulator-ui/src/main/webapp/app/entities/test-parameter/detail/test-parameter-detail.component.html @@ -7,9 +7,9 @@


- + - +
Key
diff --git a/simulator-ui/src/main/webapp/app/entities/test-parameter/detail/test-parameter-detail.component.ts b/simulator-ui/src/main/webapp/app/entities/test-parameter/detail/test-parameter-detail.component.ts index 20f86d5bb..dfa7d9c04 100644 --- a/simulator-ui/src/main/webapp/app/entities/test-parameter/detail/test-parameter-detail.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/test-parameter/detail/test-parameter-detail.component.ts @@ -7,7 +7,7 @@ import { ITestParameter } from '../test-parameter.model'; @Component({ standalone: true, - selector: 'jhi-test-parameter-detail', + selector: 'app-test-parameter-detail', templateUrl: './test-parameter-detail.component.html', imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe], }) diff --git a/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.html b/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.html index 53c0aea97..0b13fcf27 100644 --- a/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.html +++ b/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.html @@ -10,11 +10,11 @@

- + - + - +
No Test Parameters found @@ -86,7 +86,7 @@

- +
diff --git a/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.ts b/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.ts index 06dc18098..fac1e024f 100644 --- a/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.ts @@ -17,7 +17,7 @@ import { ITestParameter } from '../test-parameter.model'; @Component({ standalone: true, - selector: 'jhi-test-parameter', + selector: 'app-test-parameter', templateUrl: './test-parameter.component.html', imports: [ RouterModule, diff --git a/simulator-ui/src/main/webapp/app/entities/test-result/detail/test-result-detail.component.html b/simulator-ui/src/main/webapp/app/entities/test-result/detail/test-result-detail.component.html index d8218a1fe..853aa2217 100644 --- a/simulator-ui/src/main/webapp/app/entities/test-result/detail/test-result-detail.component.html +++ b/simulator-ui/src/main/webapp/app/entities/test-result/detail/test-result-detail.component.html @@ -5,9 +5,9 @@

ID
diff --git a/simulator-ui/src/main/webapp/app/entities/test-result/detail/test-result-detail.component.ts b/simulator-ui/src/main/webapp/app/entities/test-result/detail/test-result-detail.component.ts index 34019db86..f354306f6 100644 --- a/simulator-ui/src/main/webapp/app/entities/test-result/detail/test-result-detail.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/test-result/detail/test-result-detail.component.ts @@ -7,7 +7,7 @@ import { ITestResult } from '../test-result.model'; @Component({ standalone: true, - selector: 'jhi-test-result-detail', + selector: 'app-test-result-detail', templateUrl: './test-result-detail.component.html', imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe], }) diff --git a/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.html b/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.html index 775b02f64..b3fd67a28 100644 --- a/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.html +++ b/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.html @@ -10,11 +10,11 @@

- + - + - +
No Test Results found @@ -129,7 +129,7 @@

- +
diff --git a/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.ts b/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.ts index f458307c9..0b01930ce 100644 --- a/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.ts +++ b/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.ts @@ -17,7 +17,7 @@ import { ITestResult } from '../test-result.model'; @Component({ standalone: true, - selector: 'jhi-test-result', + selector: 'app-test-result', templateUrl: './test-result.component.html', imports: [ RouterModule, diff --git a/simulator-ui/src/main/webapp/app/home/home.component.ts b/simulator-ui/src/main/webapp/app/home/home.component.ts index 946d1a4a0..4a06e5ed4 100644 --- a/simulator-ui/src/main/webapp/app/home/home.component.ts +++ b/simulator-ui/src/main/webapp/app/home/home.component.ts @@ -10,7 +10,7 @@ import TestResultSummaryComponent from './test-result-summary.component'; @Component({ standalone: true, - selector: 'jhi-home', + selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.scss'], imports: [RouterModule, SharedModule, TestResultSummaryComponent], diff --git a/simulator-ui/src/main/webapp/app/home/test-result-summary.component.html b/simulator-ui/src/main/webapp/app/home/test-result-summary.component.html index e9987901b..b0a20685c 100644 --- a/simulator-ui/src/main/webapp/app/home/test-result-summary.component.html +++ b/simulator-ui/src/main/webapp/app/home/test-result-summary.component.html @@ -7,26 +7,74 @@

-

Total:

-
{{ testResults?.total ?? 0 }} (100 %)
+
+
+

Total:

+
{{ testResults?.total ?? 0 }} (100 %)
+
+
+ +
+
-

Successful:

-
- {{ testResults?.successful ?? 0 }} ({{ successfulPercentage }} %) -
+
+
+

Successful:

+
+ {{ testResults?.successful ?? 0 }} ({{ successfulPercentage }} %) +
+
+
+ +
+
-

Failed:

-
- {{ testResults?.failed ?? 0 }} ({{ failedPercentage }} %) -
+
+
+

Failed:

+
+ {{ testResults?.failed ?? 0 }} ({{ failedPercentage }} %) +
+
+
+ +
+
diff --git a/simulator-ui/src/main/webapp/app/home/test-result-summary.component.ts b/simulator-ui/src/main/webapp/app/home/test-result-summary.component.ts index a9cf52556..5428b9861 100644 --- a/simulator-ui/src/main/webapp/app/home/test-result-summary.component.ts +++ b/simulator-ui/src/main/webapp/app/home/test-result-summary.component.ts @@ -1,7 +1,9 @@ import { Component, OnInit } from '@angular/core'; +import { RouterModule } from '@angular/router'; import { map } from 'rxjs/operators'; +import { STATUS_FAILED, STATUS_SUCCESS } from 'app/entities/scenario-execution/scenario-execution.model'; import { TestResultsByStatus, TestResultService } from 'app/entities/test-result/service/test-result.service'; import SharedModule from 'app/shared/shared.module'; @@ -9,7 +11,7 @@ import SharedModule from 'app/shared/shared.module'; standalone: true, selector: 'app-test-result-summary', templateUrl: './test-result-summary.component.html', - imports: [SharedModule], + imports: [RouterModule, SharedModule], }) export default class TestResultSummaryComponent implements OnInit { testResults: TestResultsByStatus | null = null; @@ -17,6 +19,9 @@ export default class TestResultSummaryComponent implements OnInit { successfulPercentage = 0; failedPercentage = 0; + statusSuccess = STATUS_SUCCESS; + statusFailed = STATUS_FAILED; + constructor(private testResultService: TestResultService) {} ngOnInit(): void { diff --git a/simulator-ui/src/main/webapp/app/layouts/error/error.component.ts b/simulator-ui/src/main/webapp/app/layouts/error/error.component.ts index 9767ef62a..41af1ba0e 100644 --- a/simulator-ui/src/main/webapp/app/layouts/error/error.component.ts +++ b/simulator-ui/src/main/webapp/app/layouts/error/error.component.ts @@ -6,7 +6,7 @@ import SharedModule from 'app/shared/shared.module'; @Component({ standalone: true, - selector: 'jhi-error', + selector: 'app-error', templateUrl: './error.component.html', imports: [SharedModule], }) diff --git a/simulator-ui/src/main/webapp/app/layouts/footer/footer.component.ts b/simulator-ui/src/main/webapp/app/layouts/footer/footer.component.ts index 94221e6b7..121e327df 100644 --- a/simulator-ui/src/main/webapp/app/layouts/footer/footer.component.ts +++ b/simulator-ui/src/main/webapp/app/layouts/footer/footer.component.ts @@ -6,7 +6,7 @@ import SharedModule from 'app/shared/shared.module'; @Component({ standalone: true, - selector: 'jhi-footer', + selector: 'app-footer', templateUrl: './footer.component.html', styleUrls: ['./footer.component.scss'], imports: [SharedModule], diff --git a/simulator-ui/src/main/webapp/app/layouts/main/main.component.html b/simulator-ui/src/main/webapp/app/layouts/main/main.component.html index 3ac9be942..62dcdb9cc 100644 --- a/simulator-ui/src/main/webapp/app/layouts/main/main.component.html +++ b/simulator-ui/src/main/webapp/app/layouts/main/main.component.html @@ -1,4 +1,4 @@ - +
@@ -9,5 +9,5 @@
- +

diff --git a/simulator-ui/src/main/webapp/app/layouts/main/main.component.ts b/simulator-ui/src/main/webapp/app/layouts/main/main.component.ts index c18b667b1..f47dcc94c 100644 --- a/simulator-ui/src/main/webapp/app/layouts/main/main.component.ts +++ b/simulator-ui/src/main/webapp/app/layouts/main/main.component.ts @@ -6,7 +6,7 @@ import { AppPageTitleStrategy } from 'app/app-page-title-strategy'; import { Router } from '@angular/router'; @Component({ - selector: 'jhi-main', + selector: 'app-main', templateUrl: './main.component.html', providers: [AppPageTitleStrategy], }) diff --git a/simulator-ui/src/main/webapp/app/layouts/navbar/navbar.component.html b/simulator-ui/src/main/webapp/app/layouts/navbar/navbar.component.html index 22b741960..6727758fd 100644 --- a/simulator-ui/src/main/webapp/app/layouts/navbar/navbar.component.html +++ b/simulator-ui/src/main/webapp/app/layouts/navbar/navbar.component.html @@ -35,6 +35,14 @@ +
  • { this.inProduction = profileInfo.inProduction; - this.openAPIEnabled = profileInfo.openAPIEnabled; }); } diff --git a/simulator-ui/src/main/webapp/app/layouts/profiles/page-ribbon.component.ts b/simulator-ui/src/main/webapp/app/layouts/profiles/page-ribbon.component.ts index 1cd00f64f..843043a75 100644 --- a/simulator-ui/src/main/webapp/app/layouts/profiles/page-ribbon.component.ts +++ b/simulator-ui/src/main/webapp/app/layouts/profiles/page-ribbon.component.ts @@ -7,7 +7,7 @@ import { ProfileService } from './profile.service'; @Component({ standalone: true, - selector: 'jhi-page-ribbon', + selector: 'app-page-ribbon', template: `
    {{ { dev: 'Development' }[ribbonEnv] || '' }} diff --git a/simulator-ui/src/main/webapp/app/layouts/profiles/profile-info.model.ts b/simulator-ui/src/main/webapp/app/layouts/profiles/profile-info.model.ts index 0daee0bcf..5b51a6fc4 100644 --- a/simulator-ui/src/main/webapp/app/layouts/profiles/profile-info.model.ts +++ b/simulator-ui/src/main/webapp/app/layouts/profiles/profile-info.model.ts @@ -11,7 +11,6 @@ export class ProfileInfo { public activeProfiles?: string[], public ribbonEnv?: string, public inProduction?: boolean, - public openAPIEnabled?: boolean, ) {} } diff --git a/simulator-ui/src/main/webapp/app/layouts/profiles/profile.service.ts b/simulator-ui/src/main/webapp/app/layouts/profiles/profile.service.ts index 25e82e096..fdd811088 100644 --- a/simulator-ui/src/main/webapp/app/layouts/profiles/profile.service.ts +++ b/simulator-ui/src/main/webapp/app/layouts/profiles/profile.service.ts @@ -28,7 +28,6 @@ export class ProfileService { const profileInfo: ProfileInfo = { activeProfiles: response.activeProfiles, inProduction: response.activeProfiles?.includes('prod'), - openAPIEnabled: response.activeProfiles?.includes('api-docs'), }; if (response.activeProfiles && response['display-ribbon-on-profiles']) { const displayRibbonOnProfiles = response['display-ribbon-on-profiles'].split(','); diff --git a/simulator-ui/src/main/webapp/app/scenario-result/scenario-result.component.html b/simulator-ui/src/main/webapp/app/scenario-result/scenario-result.component.html new file mode 100644 index 000000000..22bc6bec1 --- /dev/null +++ b/simulator-ui/src/main/webapp/app/scenario-result/scenario-result.component.html @@ -0,0 +1,3 @@ +
    + +
    diff --git a/simulator-ui/src/main/webapp/app/scenario-result/scenario-result.component.ts b/simulator-ui/src/main/webapp/app/scenario-result/scenario-result.component.ts new file mode 100644 index 000000000..76d25a405 --- /dev/null +++ b/simulator-ui/src/main/webapp/app/scenario-result/scenario-result.component.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; + +import { ScenarioExecutionComponent } from 'app/entities/scenario-execution/list/scenario-execution.component'; +import SharedModule from 'app/shared/shared.module'; + +@Component({ + standalone: true, + selector: 'app-scenario-result', + templateUrl: './scenario-result.component.html', + imports: [SharedModule, ScenarioExecutionComponent], +}) +export default class ScenarioResultComponent {} diff --git a/simulator-ui/src/main/webapp/app/scenario-result/scenario-result.routes.ts b/simulator-ui/src/main/webapp/app/scenario-result/scenario-result.routes.ts new file mode 100644 index 000000000..8aefdfe25 --- /dev/null +++ b/simulator-ui/src/main/webapp/app/scenario-result/scenario-result.routes.ts @@ -0,0 +1,17 @@ +import { Routes } from '@angular/router'; + +import { ASC } from 'app/config/navigation.constants'; + +import ScenarioResultComponent from './scenario-result.component'; + +const scenarioExecutionRoute: Routes = [ + { + path: '', + component: ScenarioResultComponent, + data: { + defaultSort: 'executionId,' + ASC, + }, + }, +]; + +export default scenarioExecutionRoute; diff --git a/simulator-ui/src/main/webapp/app/scenario/detail/scenario-detail.component.html b/simulator-ui/src/main/webapp/app/scenario/detail/scenario-detail.component.html index 4075dc8ba..8354c9537 100644 --- a/simulator-ui/src/main/webapp/app/scenario/detail/scenario-detail.component.html +++ b/simulator-ui/src/main/webapp/app/scenario/detail/scenario-detail.component.html @@ -5,9 +5,9 @@

    Name
    diff --git a/simulator-ui/src/main/webapp/app/scenario/detail/scenario-detail.component.ts b/simulator-ui/src/main/webapp/app/scenario/detail/scenario-detail.component.ts index 7aad7ba82..79a187df1 100644 --- a/simulator-ui/src/main/webapp/app/scenario/detail/scenario-detail.component.ts +++ b/simulator-ui/src/main/webapp/app/scenario/detail/scenario-detail.component.ts @@ -8,7 +8,7 @@ import { DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe } from 'ap @Component({ standalone: true, - selector: 'jhi-scenario-detail', + selector: 'app-scenario-detail', templateUrl: './scenario-detail.component.html', imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe], }) diff --git a/simulator-ui/src/main/webapp/app/scenario/list/scenario.component.html b/simulator-ui/src/main/webapp/app/scenario/list/scenario.component.html index ae8dc50d5..ab2c8146d 100644 --- a/simulator-ui/src/main/webapp/app/scenario/list/scenario.component.html +++ b/simulator-ui/src/main/webapp/app/scenario/list/scenario.component.html @@ -10,9 +10,9 @@

  • - + - +
    No Scenarios found @@ -49,6 +49,21 @@

    Launch +