From 9fb5d64fa3aad080a27d9b8bb4da2e042d3e5860 Mon Sep 17 00:00:00 2001 From: feeling001 Date: Mon, 9 Feb 2026 08:33:46 +0100 Subject: [PATCH] Delete backup_story2_20260208_120845/applications directory useless --- .../application-detail.component.html | 55 ----- .../application-detail.component.scss | 127 ----------- .../application-detail.component.ts | 11 - .../application-form.component.html | 92 -------- .../application-form.component.scss | 98 --------- .../application-form.component.ts | 11 - .../application-list.component.html | 94 -------- .../application-list.component.scss | 203 ------------------ .../application-list.component.ts | 22 -- .../applications/application.service.ts | 71 ------ 10 files changed, 784 deletions(-) delete mode 100644 backup_story2_20260208_120845/applications/application-detail/application-detail.component.html delete mode 100644 backup_story2_20260208_120845/applications/application-detail/application-detail.component.scss delete mode 100644 backup_story2_20260208_120845/applications/application-detail/application-detail.component.ts delete mode 100644 backup_story2_20260208_120845/applications/application-form/application-form.component.html delete mode 100644 backup_story2_20260208_120845/applications/application-form/application-form.component.scss delete mode 100644 backup_story2_20260208_120845/applications/application-form/application-form.component.ts delete mode 100644 backup_story2_20260208_120845/applications/application-list/application-list.component.html delete mode 100644 backup_story2_20260208_120845/applications/application-list/application-list.component.scss delete mode 100644 backup_story2_20260208_120845/applications/application-list/application-list.component.ts delete mode 100644 backup_story2_20260208_120845/applications/application.service.ts diff --git a/backup_story2_20260208_120845/applications/application-detail/application-detail.component.html b/backup_story2_20260208_120845/applications/application-detail/application-detail.component.html deleted file mode 100644 index 0075c51..0000000 --- a/backup_story2_20260208_120845/applications/application-detail/application-detail.component.html +++ /dev/null @@ -1,55 +0,0 @@ -
-
Loading...
-
{{ error }}
- -
-
-

{{ application.name }}

-
- - -
-
- -
-
- - - {{ getStatusDisplay(application.status) }} - -
- -
- - {{ application.description || '-' }} -
- -
- - {{ application.businessUnit.name }} -
- -
- - {{ application.endOfSupportDate ? (application.endOfSupportDate | date:'mediumDate') : '-' }} -
- -
- - {{ application.endOfLifeDate ? (application.endOfLifeDate | date:'mediumDate') : '-' }} -
- -
- - {{ application.createdAt | date:'medium' }} -
- -
- - {{ application.updatedAt | date:'medium' }} -
-
- - -
-
diff --git a/backup_story2_20260208_120845/applications/application-detail/application-detail.component.scss b/backup_story2_20260208_120845/applications/application-detail/application-detail.component.scss deleted file mode 100644 index e5a1150..0000000 --- a/backup_story2_20260208_120845/applications/application-detail/application-detail.component.scss +++ /dev/null @@ -1,127 +0,0 @@ -.container { - max-width: 800px; - margin: 0 auto; - padding: 2rem; -} - -.loading, .error { - text-align: center; - padding: 2rem; -} - -.error { - color: #f44336; -} - -.detail-card { - background: white; - padding: 2rem; - border-radius: 8px; - box-shadow: 0 2px 4px rgba(0,0,0,0.1); -} - -.header { - display: flex; - justify-content: space-between; - align-items: center; - margin-bottom: 2rem; - padding-bottom: 1rem; - border-bottom: 2px solid #f5f5f5; - - h1 { - margin: 0; - } - - .actions { - display: flex; - gap: 0.5rem; - } -} - -.details { - margin-bottom: 2rem; -} - -.detail-row { - display: flex; - padding: 1rem 0; - border-bottom: 1px solid #f5f5f5; - - label { - font-weight: 600; - width: 250px; - color: #555; - } - - span { - flex: 1; - color: #333; - } -} - -.status-badge { - padding: 0.25rem 0.75rem; - border-radius: 12px; - font-size: 0.875rem; - font-weight: 500; - - &.status-idea { - background-color: #e3f2fd; - color: #1976d2; - } - - &.status-in-development { - background-color: #fff3e0; - color: #f57c00; - } - - &.status-in-service { - background-color: #e8f5e9; - color: #388e3c; - } - - &.status-maintenance { - background-color: #fff9c4; - color: #f57f17; - } - - &.status-decommissioned { - background-color: #f5f5f5; - color: #616161; - } -} - -.btn-primary, .btn-secondary, .btn-danger { - padding: 0.75rem 1.5rem; - border: none; - border-radius: 4px; - cursor: pointer; - font-size: 1rem; -} - -.btn-primary { - background-color: #3f51b5; - color: white; - - &:hover { - background-color: #303f9f; - } -} - -.btn-secondary { - background-color: #f5f5f5; - color: #333; - - &:hover { - background-color: #e0e0e0; - } -} - -.btn-danger { - background-color: #f44336; - color: white; - - &:hover { - background-color: #d32f2f; - } -} diff --git a/backup_story2_20260208_120845/applications/application-detail/application-detail.component.ts b/backup_story2_20260208_120845/applications/application-detail/application-detail.component.ts deleted file mode 100644 index 3b7fc74..0000000 --- a/backup_story2_20260208_120845/applications/application-detail/application-detail.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -import { CommonModule } from '@angular/common'; - -@Component({ - selector: 'app-application-detail', - standalone: true, - imports: [CommonModule], - template: `

Application Detail

ℹ️ Coming in Story 2

`, - styles: [`.container { max-width: 1200px; margin: 2rem auto; padding: 2rem; } .info-message { background: #e3f2fd; padding: 1rem; border-radius: 4px; }`] -}) -export class ApplicationDetailComponent {} diff --git a/backup_story2_20260208_120845/applications/application-form/application-form.component.html b/backup_story2_20260208_120845/applications/application-form/application-form.component.html deleted file mode 100644 index 6c04eaa..0000000 --- a/backup_story2_20260208_120845/applications/application-form/application-form.component.html +++ /dev/null @@ -1,92 +0,0 @@ -
-

{{ isEditMode ? 'Edit Application' : 'Create New Application' }}

- -
-
- - -
- Name is required - Name must not exceed 255 characters -
-
- -
- - -
- -
- - -
- Status is required -
-
- -
- - -
- Business unit is required -
-
- -
-
- - -
- -
- - -
-
- -
- {{ error }} -
- -
- - -
-
-
diff --git a/backup_story2_20260208_120845/applications/application-form/application-form.component.scss b/backup_story2_20260208_120845/applications/application-form/application-form.component.scss deleted file mode 100644 index 1097562..0000000 --- a/backup_story2_20260208_120845/applications/application-form/application-form.component.scss +++ /dev/null @@ -1,98 +0,0 @@ -.container { - max-width: 800px; - margin: 0 auto; - padding: 2rem; - - h1 { - margin-bottom: 2rem; - } -} - -form { - background: white; - padding: 2rem; - border-radius: 8px; - box-shadow: 0 2px 4px rgba(0,0,0,0.1); -} - -.form-group { - margin-bottom: 1.5rem; - - label { - display: block; - margin-bottom: 0.5rem; - font-weight: 500; - color: #555; - } - - input[type="text"], - input[type="date"], - select, - textarea { - width: 100%; - padding: 0.75rem; - border: 1px solid #ddd; - border-radius: 4px; - font-size: 1rem; - font-family: inherit; - - &:focus { - outline: none; - border-color: #3f51b5; - } - - &.error { - border-color: #f44336; - } - } -} - -.form-row { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 1rem; -} - -.form-actions { - display: flex; - gap: 1rem; - justify-content: flex-end; - margin-top: 2rem; -} - -.btn-primary, .btn-secondary { - padding: 0.75rem 1.5rem; - border: none; - border-radius: 4px; - cursor: pointer; - font-size: 1rem; -} - -.btn-primary { - background-color: #3f51b5; - color: white; - - &:hover:not(:disabled) { - background-color: #303f9f; - } - - &:disabled { - background-color: #ccc; - cursor: not-allowed; - } -} - -.btn-secondary { - background-color: #f5f5f5; - color: #333; - - &:hover { - background-color: #e0e0e0; - } -} - -.error-message { - color: #f44336; - font-size: 0.875rem; - margin-top: 0.25rem; -} diff --git a/backup_story2_20260208_120845/applications/application-form/application-form.component.ts b/backup_story2_20260208_120845/applications/application-form/application-form.component.ts deleted file mode 100644 index 5e8b3d5..0000000 --- a/backup_story2_20260208_120845/applications/application-form/application-form.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -import { CommonModule } from '@angular/common'; - -@Component({ - selector: 'app-application-form', - standalone: true, - imports: [CommonModule], - template: `

Application Form

ℹ️ Coming in Story 2

`, - styles: [`.container { max-width: 1200px; margin: 2rem auto; padding: 2rem; } .info-message { background: #e3f2fd; padding: 1rem; border-radius: 4px; }`] -}) -export class ApplicationFormComponent {} diff --git a/backup_story2_20260208_120845/applications/application-list/application-list.component.html b/backup_story2_20260208_120845/applications/application-list/application-list.component.html deleted file mode 100644 index 49c5360..0000000 --- a/backup_story2_20260208_120845/applications/application-list/application-list.component.html +++ /dev/null @@ -1,94 +0,0 @@ -
-
-

Applications

- -
- -
-
-
- - -
- -
- - -
- -
- - -
-
-
- -
Loading...
-
{{ error }}
- -
- - - - - - - - - - - - - - - - - - - -
NameStatusBusiness UnitEnd of LifeActions
{{ app.name }} - - {{ getStatusDisplay(app.status) }} - - {{ app.businessUnit.name }}{{ app.endOfLifeDate ? (app.endOfLifeDate | date:'mediumDate') : '-' }} - - - - -
-
- -
- No applications found. Click "Create New Application" to get started. -
- - -
diff --git a/backup_story2_20260208_120845/applications/application-list/application-list.component.scss b/backup_story2_20260208_120845/applications/application-list/application-list.component.scss deleted file mode 100644 index 7b920a7..0000000 --- a/backup_story2_20260208_120845/applications/application-list/application-list.component.scss +++ /dev/null @@ -1,203 +0,0 @@ -.container { - max-width: 1400px; - margin: 0 auto; - padding: 2rem; -} - -.header { - display: flex; - justify-content: space-between; - align-items: center; - margin-bottom: 1.5rem; - - h1 { - margin: 0; - } -} - -.filters { - background: white; - padding: 1.5rem; - border-radius: 8px; - margin-bottom: 1.5rem; - box-shadow: 0 2px 4px rgba(0,0,0,0.1); -} - -.filter-row { - display: flex; - gap: 1rem; - flex-wrap: wrap; -} - -.filter-group { - flex: 1; - min-width: 200px; - - label { - display: block; - margin-bottom: 0.5rem; - font-weight: 500; - color: #555; - } - - .search-input, - .filter-select { - width: 100%; - padding: 0.75rem; - border: 1px solid #ddd; - border-radius: 4px; - font-size: 1rem; - - &:focus { - outline: none; - border-color: #3f51b5; - } - } -} - -.btn-primary { - background-color: #3f51b5; - color: white; - border: none; - padding: 0.75rem 1.5rem; - border-radius: 4px; - cursor: pointer; - - &:hover { - background-color: #303f9f; - } -} - -.loading, .error, .empty { - text-align: center; - padding: 2rem; - color: #666; -} - -.error { - color: #f44336; -} - -.table-container { - overflow-x: auto; - background: white; - border-radius: 8px; - box-shadow: 0 2px 4px rgba(0,0,0,0.1); -} - -table { - width: 100%; - border-collapse: collapse; - - th, td { - padding: 1rem; - text-align: left; - border-bottom: 1px solid #ddd; - } - - th { - background-color: #f5f5f5; - font-weight: 600; - } - - tbody tr:hover { - background-color: #f9f9f9; - } -} - -.status-badge { - padding: 0.25rem 0.75rem; - border-radius: 12px; - font-size: 0.875rem; - font-weight: 500; - - &.status-idea { - background-color: #e3f2fd; - color: #1976d2; - } - - &.status-in-development { - background-color: #fff3e0; - color: #f57c00; - } - - &.status-in-service { - background-color: #e8f5e9; - color: #388e3c; - } - - &.status-maintenance { - background-color: #fff9c4; - color: #f57f17; - } - - &.status-decommissioned { - background-color: #f5f5f5; - color: #616161; - } -} - -.actions { - display: flex; - gap: 0.5rem; - flex-wrap: wrap; -} - -.btn-sm { - padding: 0.5rem 1rem; - border: none; - border-radius: 4px; - cursor: pointer; - background-color: #2196f3; - color: white; - font-size: 0.875rem; - - &:hover { - background-color: #1976d2; - } - - &.btn-danger { - background-color: #f44336; - - &:hover { - background-color: #d32f2f; - } - } - - &.status-select { - background-color: #9c27b0; - - &:hover { - background-color: #7b1fa2; - } - } -} - -.pagination { - display: flex; - justify-content: center; - align-items: center; - gap: 1rem; - margin-top: 2rem; - - button { - padding: 0.5rem 1rem; - border: 1px solid #ddd; - border-radius: 4px; - background: white; - cursor: pointer; - - &:hover:not(:disabled) { - background-color: #f5f5f5; - } - - &:disabled { - opacity: 0.5; - cursor: not-allowed; - } - } - - span { - color: #666; - } -} diff --git a/backup_story2_20260208_120845/applications/application-list/application-list.component.ts b/backup_story2_20260208_120845/applications/application-list/application-list.component.ts deleted file mode 100644 index a3e95aa..0000000 --- a/backup_story2_20260208_120845/applications/application-list/application-list.component.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Component } from '@angular/core'; -import { CommonModule } from '@angular/common'; - -@Component({ - selector: 'app-application-list', - standalone: true, - imports: [CommonModule], - template: ` -
-

Applications

-

- ℹ️ Application management will be implemented in Story 2. -

-

Coming soon: Create and manage applications, track lifecycle status, and link to business units.

-
- `, - styles: [` - .container { max-width: 1200px; margin: 2rem auto; padding: 2rem; } - .info-message { background: #e3f2fd; padding: 1rem; border-radius: 4px; border-left: 4px solid #2196f3; } - `] -}) -export class ApplicationListComponent {} diff --git a/backup_story2_20260208_120845/applications/application.service.ts b/backup_story2_20260208_120845/applications/application.service.ts deleted file mode 100644 index 6d8791e..0000000 --- a/backup_story2_20260208_120845/applications/application.service.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpParams } from '@angular/common/http'; -import { Observable } from 'rxjs'; -import { - Application, - ApplicationStatus, - CreateApplicationRequest, - UpdateApplicationRequest -} from '../../shared/models/application.model'; -import { Page } from '../../shared/models/environment.model'; - -@Injectable({ - providedIn: 'root' -}) -export class ApplicationService { - private readonly API_URL = '/api/applications'; - - constructor(private http: HttpClient) {} - - getApplications( - filters?: { - status?: ApplicationStatus; - businessUnitId?: string; - name?: string; - }, - page: number = 0, - size: number = 20, - sortBy: string = 'name', - sortDirection: string = 'asc' - ): Observable> { - let params = new HttpParams() - .set('page', page.toString()) - .set('size', size.toString()) - .set('sortBy', sortBy) - .set('sortDirection', sortDirection); - - if (filters?.status) { - params = params.set('status', filters.status); - } - if (filters?.businessUnitId) { - params = params.set('businessUnitId', filters.businessUnitId); - } - if (filters?.name) { - params = params.set('name', filters.name); - } - - return this.http.get>(this.API_URL, { params }); - } - - getApplication(id: string): Observable { - return this.http.get(`${this.API_URL}/${id}`); - } - - createApplication(data: CreateApplicationRequest): Observable { - return this.http.post(this.API_URL, data); - } - - updateApplication(id: string, data: UpdateApplicationRequest): Observable { - return this.http.put(`${this.API_URL}/${id}`, data); - } - - updateStatus(id: string, status: ApplicationStatus): Observable { - return this.http.patch(`${this.API_URL}/${id}/status`, null, { - params: { status } - }); - } - - deleteApplication(id: string): Observable { - return this.http.delete(`${this.API_URL}/${id}`); - } -}