produzione 1 #9

Merged
JoeKung merged 135 commits from dev into main 2026-03-03 09:58:04 +01:00
4 changed files with 40 additions and 6 deletions
Showing only changes of commit bb151ae835 - Show all commits

View File

@@ -24,6 +24,13 @@
<small>* Include {{ result().setupCost | currency:result().currency }} Setup Cost</small>
</div>
@if (result().notes) {
<div class="notes-section">
<label>{{ 'CALC.NOTES' | translate }}:</label>
<p>{{ result().notes }}</p>
</div>
}
<div class="divider"></div>
<!-- Detailed Items List (NOW ON BOTTOM) -->

View File

@@ -83,3 +83,27 @@
}
.actions { display: flex; flex-direction: column; gap: var(--space-3); }
.notes-section {
margin-top: var(--space-4);
margin-bottom: var(--space-4);
padding: var(--space-3);
background: var(--color-neutral-50);
border-radius: var(--radius-md);
border: 1px solid var(--color-border);
label {
font-weight: 500;
font-size: 0.9rem;
color: var(--color-text-muted);
display: block;
margin-bottom: var(--space-2);
}
p {
margin: 0;
font-size: 0.95rem;
color: var(--color-text);
white-space: pre-wrap; /* Preserve line breaks */
}
}

View File

@@ -129,13 +129,14 @@
</div>
</div>
<app-input
formControlName="notes"
[label]="'CALC.NOTES' | translate"
placeholder="Istruzioni specifiche..."
></app-input>
}
<app-input
formControlName="notes"
[label]="'CALC.NOTES' | translate"
placeholder="Istruzioni specifiche..."
></app-input>
<div class="actions">
<!-- Progress Bar (Only when uploading i.e. progress < 100) -->
@if (loading() && uploadProgress() < 100) {

View File

@@ -35,6 +35,7 @@ export interface QuoteResult {
totalTimeHours: number;
totalTimeMinutes: number;
totalWeight: number;
notes?: string;
}
interface BackendResponse {
@@ -278,7 +279,8 @@ export class QuoteEstimatorService {
totalPrice: Math.round(grandTotal * 100) / 100,
totalTimeHours: totalHours,
totalTimeMinutes: totalMinutes,
totalWeight: Math.ceil(totalWeight)
totalWeight: Math.ceil(totalWeight),
notes: request.notes
};
observer.next(result);