diff --git a/frontend/src/app/projects/create-project/create-project.component.css b/frontend/src/app/projects/create-project/create-project.component.css
deleted file mode 100644
index 8535c6938a..0000000000
--- a/frontend/src/app/projects/create-project/create-project.component.css
+++ /dev/null
@@ -1,4 +0,0 @@
-/*
- * SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
- * SPDX-License-Identifier: Apache-2.0
- */
diff --git a/frontend/src/app/projects/create-project/create-project.component.html b/frontend/src/app/projects/create-project/create-project.component.html
index 2f9a82c0cc..05353ed622 100644
--- a/frontend/src/app/projects/create-project/create-project.component.html
+++ b/frontend/src/app/projects/create-project/create-project.component.html
@@ -25,14 +25,16 @@
Create new project
formControlName="name"
data-testId="input-name"
/>
-
- A project with a name similar to “{{
- form.controls.name.errors!.uniqueSlug.value
- }}” already exists.
-
-
- A project name is required.
-
+ @if (form.controls.name.errors?.uniqueSlug) {
+
+ A project with a name similar to “{{
+ form.controls.name.errors!.uniqueSlug.value
+ }}” already exists.
+
+ }
+ @if (form.controls.name.errors?.required) {
+ A project name is required.
+ }
[color]="getColorByModelCreationStep()"
data-testId="a-skipModelAndFinishProjectCreation"
>
-
- Abort model creation and finish
-
-
- Abort model creation and finish
-
-
- Finish project creation
-
+ @if (modelCreationStep === "create-model") {
+ Abort model creation and finish
+ } @else if (modelCreationStep === "complete") {
+ Finish project creation
+ } @else {
+ Abort model creation and finish
+ }
+
check
diff --git a/frontend/src/app/projects/create-project/create-project.component.ts b/frontend/src/app/projects/create-project/create-project.component.ts
index bd64c45583..422c3b409e 100644
--- a/frontend/src/app/projects/create-project/create-project.component.ts
+++ b/frontend/src/app/projects/create-project/create-project.component.ts
@@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
* SPDX-License-Identifier: Apache-2.0
*/
-import { NgIf, NgFor, AsyncPipe } from '@angular/common';
+import { NgFor, AsyncPipe } from '@angular/common';
import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
import {
FormControl,
@@ -32,7 +32,6 @@ import { ProjectWrapperService } from '../service/project.service';
@Component({
selector: 'app-create-project',
templateUrl: './create-project.component.html',
- styleUrls: ['./create-project.component.css'],
standalone: true,
imports: [
MatStepper,
@@ -43,7 +42,6 @@ import { ProjectWrapperService } from '../service/project.service';
MatFormField,
MatLabel,
MatInput,
- NgIf,
MatError,
MatRadioGroup,
NgFor,
diff --git a/frontend/src/app/projects/create-project/create-project.stories.ts b/frontend/src/app/projects/create-project/create-project.stories.ts
new file mode 100644
index 0000000000..1228591435
--- /dev/null
+++ b/frontend/src/app/projects/create-project/create-project.stories.ts
@@ -0,0 +1,18 @@
+/*
+ * SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import { Meta, StoryObj } from '@storybook/angular';
+import { CreateProjectComponent } from './create-project.component';
+
+const meta: Meta = {
+ title: 'Project Components / Create Project',
+ component: CreateProjectComponent,
+};
+
+export default meta;
+type Story = StoryObj;
+
+export const General: Story = {
+ args: {},
+};
diff --git a/frontend/src/app/projects/models/init-model/init-model.component.css b/frontend/src/app/projects/models/init-model/init-model.component.css
deleted file mode 100644
index 8535c6938a..0000000000
--- a/frontend/src/app/projects/models/init-model/init-model.component.css
+++ /dev/null
@@ -1,4 +0,0 @@
-/*
- * SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
- * SPDX-License-Identifier: Apache-2.0
- */
diff --git a/frontend/src/app/projects/models/init-model/init-model.component.html b/frontend/src/app/projects/models/init-model/init-model.component.html
index 71d81b9be2..a50efb9bfa 100644
--- a/frontend/src/app/projects/models/init-model/init-model.component.html
+++ b/frontend/src/app/projects/models/init-model/init-model.component.html
@@ -4,53 +4,56 @@
-->
-
-
-
-
+ @if (modelService.model$ | async) {
+
+
+
+
+
-
+ }
diff --git a/frontend/src/app/projects/models/init-model/init-model.component.ts b/frontend/src/app/projects/models/init-model/init-model.component.ts
index 2552e98043..037992b472 100644
--- a/frontend/src/app/projects/models/init-model/init-model.component.ts
+++ b/frontend/src/app/projects/models/init-model/init-model.component.ts
@@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
* SPDX-License-Identifier: Apache-2.0
*/
-import { NgIf, NgFor, AsyncPipe } from '@angular/common';
+import { NgFor, AsyncPipe } from '@angular/common';
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import {
FormControl,
@@ -34,10 +34,8 @@ import { ProjectWrapperService } from '../../service/project.service';
@Component({
selector: 'app-init-model',
templateUrl: './init-model.component.html',
- styleUrls: ['./init-model.component.css'],
standalone: true,
imports: [
- NgIf,
FormsModule,
ReactiveFormsModule,
MatFormField,
diff --git a/frontend/src/app/projects/project-detail/edit-project-metadata/edit-project-metadata.component.css b/frontend/src/app/projects/project-detail/edit-project-metadata/edit-project-metadata.component.css
deleted file mode 100644
index 8535c6938a..0000000000
--- a/frontend/src/app/projects/project-detail/edit-project-metadata/edit-project-metadata.component.css
+++ /dev/null
@@ -1,4 +0,0 @@
-/*
- * SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
- * SPDX-License-Identifier: Apache-2.0
- */
diff --git a/frontend/src/app/projects/project-detail/edit-project-metadata/edit-project-metadata.component.html b/frontend/src/app/projects/project-detail/edit-project-metadata/edit-project-metadata.component.html
index c6cdc9ca28..c922ba0fcf 100644
--- a/frontend/src/app/projects/project-detail/edit-project-metadata/edit-project-metadata.component.html
+++ b/frontend/src/app/projects/project-detail/edit-project-metadata/edit-project-metadata.component.html
@@ -9,18 +9,21 @@
Name
- The project name is required.
- A project with a similar name already exists.
- If you proceed, the project slug will be changed to
- {{ newSlug }} - Please make sure to update all
- references.
+ @if (form.controls.name.errors?.required) {
+ The project name is required.
+ }
+
+ @if (form.controls.name.errors?.uniqueSlug) {
+ A project with a similar name already exists.
+ }
+
+ @if (project?.slug !== newSlug && form.controls.name.valid) {
+ If you proceed, the project slug will be changed to
+ {{ newSlug }} - Please make sure to update all
+ references.
+ }
- check Last diagram
- cache update was successful
-
- error Last diagram
- cache update or fetching has failed
-
-
- settings
- No diagram cache configured
-
-
- settings
- The diagram cache is currently not supported for the linked Git server
- instance
+ Project
+ {{ projectStatus.project_slug }}
+ open_in_new
+ @for (warning of projectStatus.warnings; track warning) {
+
+ warning
+ {{ warning }}
+
+ }
+
+ @if (!projectStatus.warnings.length) {
+
+ check
+ All checks were successful.
+
+ }
+ }
+ }
+
+
+
Models monitoring
+
+ @if (!toolmodelStatuses) {
+
+ Loading the monitoring overview can take up to one minute.
+
+
+