From 81fb0df56e425a6a01ab01cdf252c87b6a9c80e8 Mon Sep 17 00:00:00 2001 From: Damien Menanteau Date: Tue, 10 Sep 2024 09:28:16 +0200 Subject: [PATCH] [#674] Include variant state diagram image in webapp session info page --- .../tcr-session-info.component.css | 22 ++++- .../tcr-session-info.component.html | 97 ++++++++++--------- .../tcr-session-info.component.ts | 5 +- webapp/src/assets/.gitkeep | 0 4 files changed, 73 insertions(+), 51 deletions(-) delete mode 100644 webapp/src/assets/.gitkeep diff --git a/webapp/src/app/components/tcr-session-info/tcr-session-info.component.css b/webapp/src/app/components/tcr-session-info/tcr-session-info.component.css index 9d525209..86bf7a70 100644 --- a/webapp/src/app/components/tcr-session-info/tcr-session-info.component.css +++ b/webapp/src/app/components/tcr-session-info/tcr-session-info.component.css @@ -26,6 +26,12 @@ section { background-color: #f1f4fa; } +.statechart { + vertical-align: center; + width: auto; + height: auto; +} + .wrap { display: flex; background: white; @@ -36,7 +42,7 @@ section { } .ico-wrap { - margin: auto; + margin: 10px; } .mbr-iconfont { @@ -47,7 +53,7 @@ section { } .vcenter { - margin: auto; + margin: 10px; } .mbr-section-title3 { @@ -78,3 +84,15 @@ p { font-family: 'Source Sans Pro', sans-serif; font-size: 1rem; } + +.table-header { + font-family: 'Source Sans Pro', sans-serif; + font-weight: lighter; + font-size: 1rem; +} + +.table-value { + font-family: 'Source Sans Pro', sans-serif; + font-weight: bold; + font-size: 1.1rem; +} diff --git a/webapp/src/app/components/tcr-session-info/tcr-session-info.component.html b/webapp/src/app/components/tcr-session-info/tcr-session-info.component.html index 3735d13c..59313173 100644 --- a/webapp/src/app/components/tcr-session-info/tcr-session-info.component.html +++ b/webapp/src/app/components/tcr-session-info/tcr-session-info.component.html @@ -1,85 +1,88 @@
+

{{ title }}

- -
+
- +
-

Directories

-

Base Directory

-
    -
  • {{ sessionInfo.baseDir }}
  • -
-

Work Directory

-
    -
  • {{ sessionInfo.workDir }}
  • -
+

Workflow Variant: {{ sessionInfo.variant | showEmpty }}

+ {{ sessionInfo.variant | showEmpty }}
+
-
+
+
- +
-

Language and Toolchain

-

Language

-
    -
  • {{ sessionInfo.language }}
  • -
-

Toolchain

-
    -
  • {{ sessionInfo.toolchain }}
  • -
+

Directories

+ + + + + + + + + +
Base Directory:{{ sessionInfo.baseDir }}
Work Directory:{{ sessionInfo.workDir }}
-
+
- +
-

Version Control System

-

Used VCS

-
    -
  • {{ sessionInfo.vcsName }}
  • -
-

Session Summary

-
    -
  • {{ sessionInfo.vcsSession }}
  • -
+

Language and Toolchain

+ + + + + + + + + +
Language:{{ sessionInfo.language }}
Toolchain:{{ sessionInfo.toolchain }}
-
+
- +
-

Options and Flags

-

VCS Commit Message Suffix

-
    -
  • {{ sessionInfo.messageSuffix | showEmpty }}
  • -
-

VCS - Commit-On-Fail {{ sessionInfo.commitOnFail | onOff }}

-

- Variant "{{ sessionInfo.variant | showEmpty }}"

-

Git - Auto-Push {{ sessionInfo.gitAutoPush | onOff }}

+

Version Control System

+ + + + + + + + + + + + + +
Used VCS:{{ sessionInfo.vcsName }}
Session Summary:{{ sessionInfo.vcsSession }}
Git Auto-Push:{{ sessionInfo.gitAutoPush | onOff }}
diff --git a/webapp/src/app/components/tcr-session-info/tcr-session-info.component.ts b/webapp/src/app/components/tcr-session-info/tcr-session-info.component.ts index 3ddd3f55..9bcb8ccf 100644 --- a/webapp/src/app/components/tcr-session-info/tcr-session-info.component.ts +++ b/webapp/src/app/components/tcr-session-info/tcr-session-info.component.ts @@ -23,7 +23,7 @@ SOFTWARE. import {Component, Input, OnInit} from '@angular/core'; import {TcrSessionInfo} from "../../interfaces/tcr-session-info"; import {TcrSessionInfoService} from "../../services/tcr-session-info.service"; -import {DatePipe, NgIf} from "@angular/common"; +import {DatePipe, NgIf, NgOptimizedImage} from "@angular/common"; import {OnOffPipe} from "../../pipes/on-off.pipe"; import {ShowEmptyPipe} from "../../pipes/show-empty.pipe"; @@ -34,7 +34,8 @@ import {ShowEmptyPipe} from "../../pipes/show-empty.pipe"; DatePipe, NgIf, OnOffPipe, - ShowEmptyPipe + ShowEmptyPipe, + NgOptimizedImage ], templateUrl: './tcr-session-info.component.html', styleUrl: './tcr-session-info.component.css' diff --git a/webapp/src/assets/.gitkeep b/webapp/src/assets/.gitkeep deleted file mode 100644 index e69de29b..00000000