Skip to content

Commit 9d3c778

Browse files
feat: Introduce veil management feature with dedicated page, data model, service, and UI components for display and forms.
1 parent d9d0627 commit 9d3c778

16 files changed

Lines changed: 434 additions & 300 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/backend/pnpm-debug.log*
1919
/backend/lerna-debug.log*
2020
/backend/.env
21+
/backend/uploads
2122
dist
2223
dist-ssr
2324
*.local
-62 KB
Binary file not shown.
-62 KB
Binary file not shown.
-62 KB
Binary file not shown.

frontend/src/entities/veil/veil.model.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

frontend/src/entities/veil/veil.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Injectable, inject, signal } from '@angular/core';
22
import { HttpClient } from '@angular/common/http';
33
import { Observable, tap } from 'rxjs';
4-
import { Veil } from './veil.model';
4+
import { Veil } from '@features/veil/model/veil.data';
55

66
@Injectable({
77
providedIn: 'root'
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
export interface Veil {
2+
id?: string;
3+
name: string;
4+
description?: string;
5+
price: number;
6+
rentalPrice?: number;
7+
images: string[];
8+
category: string;
9+
isAvailable: boolean;
10+
sku: string;
11+
silhouette: string;
12+
neckline: string;
13+
fabric: string;
14+
trainLength: string;
15+
stock: number;
16+
}
17+
18+
export const veilFormData: Veil = {
19+
id: "",
20+
name: "Just Name of Veil",
21+
sku: "lorem",
22+
price: 2500,
23+
stock: 10,
24+
images: ["image_url"],
25+
silhouette: "lorem",
26+
neckline: "lorem",
27+
fabric: "lorem",
28+
trainLength: "lorem",
29+
category: "Bridal",
30+
isAvailable: true,
31+
description: "lorem",
32+
};
33+
34+
export const resetVeilData: Veil = {
35+
id: "",
36+
name: "",
37+
sku: "",
38+
price: 0,
39+
stock: 0,
40+
images: [],
41+
silhouette: "",
42+
neckline: "",
43+
fabric: "",
44+
trainLength: "",
45+
category: "",
46+
isAvailable: true,
47+
description: "",
48+
};

frontend/src/pages/veil/ui/veil-card/veil-card.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { Component, input, output, ChangeDetectionStrategy } from '@angular/core';
2-
import { CommonModule, NgOptimizedImage } from '@angular/common';
3-
import { Veil } from '@entities/veil/veil.model';
1+
import { CommonModule } from '@angular/common';
2+
import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';
3+
import { Veil } from '@features/veil/model/veil.data';
44

55
@Component({
66
selector: 'app-veil-card',
77
standalone: true,
8-
imports: [CommonModule, NgOptimizedImage],
8+
imports: [CommonModule],
99
changeDetection: ChangeDetectionStrategy.OnPush,
1010
templateUrl: './veil-card.component.html',
1111
styleUrl: './veil-card.component.scss'

frontend/src/pages/veil/ui/veil-form/veil-form.component.data.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

frontend/src/pages/veil/ui/veil-form/veil-form.component.html

Lines changed: 243 additions & 118 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)