Browse Source

Feature/adapt style of X-ray rule to summary (#4394)

* Adapt style of X-ray rule to summary

* Update changelog
pull/4411/head
Tobias Kugel 3 weeks ago
committed by GitHub
parent
commit
ff73e7e0ee
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      apps/client/src/app/components/rule/rule.component.scss
  3. 63
      apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html
  4. 14
      apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.scss

1
CHANGELOG.md

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Improved the style of the summary on the _X-ray_ page
- Improved the language localization for German (`de`) - Improved the language localization for German (`de`)
## 2.144.0 - 2025-03-06 ## 2.144.0 - 2025-03-06

2
apps/client/src/app/components/rule/rule.component.scss

@ -2,7 +2,7 @@
display: block; display: block;
.icon-container { .icon-container {
background-color: rgba(var(--dark-primary-text), 0.05); background-color: rgba(var(--palette-foreground-base), 0.02);
border-radius: 0.25rem; border-radius: 0.25rem;
height: 2rem; height: 2rem;

63
apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html

@ -7,23 +7,58 @@
risks in your portfolio. Adjust the rules below and set custom risks in your portfolio. Adjust the rules below and set custom
thresholds to align with your personal investment strategy. thresholds to align with your personal investment strategy.
</p> </p>
<p class="mb-4"> <div class="d-flex pb-3">
@if (isLoading) { @if (isLoading) {
<ngx-skeleton-loader <div class="d-flex">
animation="pulse" <ngx-skeleton-loader
class="w-100" animation="pulse"
[theme]="{ class="mr-2"
height: '1rem', [theme]="{
width: '100%' height: '2rem',
}" width: '2rem'
/> }"
/>
<ngx-skeleton-loader
animation="pulse"
class="mt-2 mb-1"
[theme]="{
height: '1rem',
width: '15rem'
}"
/>
</div>
} @else { } @else {
{{ statistics?.rulesFulfilledCount }} <div
<ng-container i18n>out of</ng-container> class="align-items-center d-flex icon-container mr-2 px-2"
{{ statistics?.rulesActiveCount }} [ngClass]="{
<ng-container i18n>rules align with your portfolio.</ng-container> okay:
statistics?.rulesFulfilledCount ===
statistics?.rulesActiveCount,
warn:
statistics?.rulesFulfilledCount !== statistics?.rulesActiveCount
}"
>
@if (
statistics?.rulesActiveCount === 0 ||
statistics?.rulesFulfilledCount === 0
) {
<ion-icon class="text-muted" name="remove-circle-outline" />
} @else if (
statistics?.rulesFulfilledCount === statistics?.rulesActiveCount
) {
<ion-icon name="checkmark-circle-outline" />
} @else {
<ion-icon name="warning-outline" />
}
</div>
<div class="d-flex align-items-center">
<ng-container>{{ statistics?.rulesFulfilledCount }} </ng-container>
<ng-container i18n>out of</ng-container>
{{ statistics?.rulesActiveCount }}
<ng-container i18n>rules align with your portfolio.</ng-container>
</div>
} }
</p> </div>
<div <div
class="mb-4" class="mb-4"
[ngClass]="{ [ngClass]="{

14
apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.scss

@ -1,3 +1,17 @@
:host { :host {
display: block; display: block;
.icon-container {
background-color: rgba(var(--palette-foreground-base), 0.02);
border-radius: 0.25rem;
height: 2rem;
&.okay {
color: var(--success);
}
&.warn {
color: var(--danger);
}
}
} }

Loading…
Cancel
Save