-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CXSPA-3856 quote details: Status, prices, entries, refresh issues (#1…
…7596) Co-authored-by: Moritz Schaefer <[email protected]>
- Loading branch information
1 parent
aea911a
commit 36a3c06
Showing
22 changed files
with
388 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
168 changes: 81 additions & 87 deletions
168
feature-libs/quote/components/details/overview/quote-details-overview.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,84 @@ | ||
<ng-container *ngIf="quoteDetails$ | async as quoteDetailsState"> | ||
<ng-container *ngIf="!quoteDetailsState.loading; else loading"> | ||
<div class="cx-quote-details-header-status"> | ||
<h3 class="quote-details-header"> | ||
{{ 'quote.commons.id' | cxTranslate }}: | ||
{{ quoteDetailsState?.data?.code }} | ||
</h3> | ||
<h3 class="status"> | ||
{{ 'quote.commons.status' | cxTranslate }} | ||
{{ 'quote.states.' + quoteDetailsState?.data?.state | cxTranslate }} | ||
</h3> | ||
</div> | ||
<div class="cx-quote-overview"> | ||
<div class="container"> | ||
<div class="cx-summary-card"> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
quoteDetailsState?.data?.code || 'TODO CHHI', | ||
'quote.details.code' | ||
) | async | ||
" | ||
></cx-card> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
quoteDetailsState?.data?.creationTime | cxDate, | ||
'quote.details.created' | ||
) | async | ||
" | ||
></cx-card> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
quoteDetailsState?.data?.updatedTime | cxDate, | ||
'quote.details.lastUpdated' | ||
) | async | ||
" | ||
></cx-card> | ||
</div> | ||
<div class="cx-summary-card"> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
quoteDetailsState?.data?.previousEstimatedTotal | ||
?.formattedValue || 'TODO CHHI', | ||
'quote.details.estimatedTotal' | ||
) | async | ||
" | ||
></cx-card> | ||
<cx-card | ||
class="cx-card-description" | ||
[content]=" | ||
getCardContent( | ||
quoteDetailsState?.data?.description || 'TODO CHHI', | ||
'quote.details.description' | ||
) | async | ||
" | ||
[truncateText]="true" | ||
[charactersLimit]="30" | ||
></cx-card> | ||
</div> | ||
<div class="cx-summary-card"> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
'quote.states.' + quoteDetailsState?.data?.state | cxTranslate, | ||
'quote.commons.status' | ||
) | async | ||
" | ||
></cx-card> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
quoteDetailsState?.data?.expirationTime | cxDate, | ||
'quote.details.expiryDate' | ||
) | async | ||
" | ||
></cx-card> | ||
</div> | ||
<ng-container *ngIf="quoteDetails$ | async as quoteDetails; else loading"> | ||
<div class="cx-quote-details-header-status"> | ||
<h3 class="quote-details-header"> | ||
{{ 'quote.commons.id' | cxTranslate }}: | ||
{{ quoteDetails.code }} | ||
</h3> | ||
<h3 class="status"> | ||
{{ 'quote.commons.status' | cxTranslate }} | ||
{{ 'quote.states.' + quoteDetails.state | cxTranslate }} | ||
</h3> | ||
</div> | ||
<div class="cx-quote-overview"> | ||
<div class="container"> | ||
<div class="cx-summary-card"> | ||
<cx-card | ||
[content]=" | ||
getCardContent(quoteDetails.code, 'quote.details.code') | async | ||
" | ||
></cx-card> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
quoteDetails.creationTime | cxDate, | ||
'quote.details.created' | ||
) | async | ||
" | ||
></cx-card> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
quoteDetails.updatedTime | cxDate, | ||
'quote.details.lastUpdated' | ||
) | async | ||
" | ||
></cx-card> | ||
</div> | ||
<div class="cx-summary-card"> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
getTotalPrice(quoteDetails), | ||
getTotalPriceDescription(quoteDetails) | ||
) | async | ||
" | ||
></cx-card> | ||
<cx-card | ||
class="cx-card-description" | ||
[content]=" | ||
getCardContent( | ||
quoteDetails.description, | ||
'quote.details.description' | ||
) | async | ||
" | ||
[truncateText]="true" | ||
[charactersLimit]="30" | ||
></cx-card> | ||
</div> | ||
<div class="cx-summary-card"> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
'quote.states.' + quoteDetails.state | cxTranslate, | ||
'quote.commons.status' | ||
) | async | ||
" | ||
></cx-card> | ||
<cx-card | ||
[content]=" | ||
getCardContent( | ||
quoteDetails.expirationTime | cxDate, | ||
'quote.details.expiryDate' | ||
) | async | ||
" | ||
></cx-card> | ||
</div> | ||
</div> | ||
</ng-container> | ||
|
||
<ng-template #loading> | ||
<div class="cx-spinner"> | ||
<cx-spinner></cx-spinner> | ||
</div> | ||
</ng-template> | ||
</div> | ||
</ng-container> | ||
|
||
<ng-template #loading> | ||
<div class="cx-spinner"> | ||
<cx-spinner></cx-spinner> | ||
</div> | ||
</ng-template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.