Skip to content

Commit

Permalink
Chore/tracefoss 1967 legal notice for end user content (#407)
Browse files Browse the repository at this point in the history
* chore(trg):[TRACEFOSS-1853] added about card component and workflow to provide about info
  • Loading branch information
ds-mmaul authored Jul 13, 2023
1 parent 1be814a commit a364af8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/import-about-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
echo "${{ github.sha }}" > commit-id.txt
REPO_NAME=$(basename -s .git "${{ github.repository }}")
REPO_URL="${{ github.event.repository.html_url }}"
SOURCE_PATH="${REPO_URL}}/blob/${{ github.sha }}"
SOURCE_PATH="${REPO_URL}/blob/${{ github.sha }}"
echo "${SOURCE_PATH}" > source-path.txt
echo "${REPO_URL}" > repository-path.txt
echo "${REPO_URL}/blob/main/LICENSE" > license-path.txt
Expand All @@ -45,12 +45,13 @@ jobs:
title: Update legal-notice.json
branch: update-legal-notice
body: |
This pull request updates the JSON file with the following information:
This pull request updates the legal-notice.json file with the following information:
- Commit ID: ${{ github.sha }}
- Source Path: ${{ github.event.repository.html_url }}/blob/${{ github.sha }}
- Repository Path: ${{ github.event.repository.html_url }}
- License Path: ${{ github.event.repository.html_url }}/blob/main/LICENSE
- Notice Path: ${{ github.event.repository.html_url }}/blob/main/NOTICE.md
- Repository Name: ${{ env.REPO_NAME }}
The Information is used to update the about page with the latest info about the commit
labels: |
auto-generated
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class AlertDetailFacade {
constructor(
private readonly partsService: PartsService,
private readonly alertDetailState: AlertDetailState,
private readonly formatSemanticDataModelToCamelCasePipe: FormatPartlistSemanticDataModelToCamelCasePipe,
private readonly formatPartlistSemanticDataModelToCamelCasePipe: FormatPartlistSemanticDataModelToCamelCasePipe,
) {
}

Expand Down Expand Up @@ -73,7 +73,7 @@ export class AlertDetailFacade {
.getPartDetailOfIds(notification.assetIds)
.subscribe({
next: data => {
this.formatSemanticDataModelToCamelCasePipe.transform(data);
this.formatPartlistSemanticDataModelToCamelCasePipe.transform(data);
this.alertDetailState.alertPartsInformation = { data };
},
error: error => (this.alertDetailState.alertPartsInformation = { error }),
Expand All @@ -92,9 +92,7 @@ export class AlertDetailFacade {
)
.subscribe({
next: data => {
data.forEach(part => {
part.semanticDataModel = this.formatSemanticDataModelToCamelCasePipe.transform(part.semanticDataModel);
})
this.formatPartlistSemanticDataModelToCamelCasePipe.transform(data);
this.alertDetailState.supplierPartsInformation = { data };
},
error: error => (this.alertDetailState.supplierPartsInformation = { error }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export class FormatPartlistSemanticDataModelToCamelCasePipe implements PipeTrans

transform(partList: Part[] | any[]): Part[] | any[] {


partList.forEach(part => {
switch (part.semanticDataModel.toString().toLowerCase()) {

Expand Down

0 comments on commit a364af8

Please sign in to comment.