diff --git a/apps/client/src/app/pages/portfolio/targets/targets-page.html b/apps/client/src/app/pages/portfolio/targets/targets-page.html new file mode 100644 index 0000000000..1690657b48 --- /dev/null +++ b/apps/client/src/app/pages/portfolio/targets/targets-page.html @@ -0,0 +1,147 @@ +
+

Targets

+ +
+
+ @if (profile) { +
{{ profile.name }}
+ Allowed deviation: + ±{{ profile.tolerance * 100 | number: '1.0-1' }}% + } @else { + No target configured yet + } +
+ @if (canEdit) { + + } +
+ + @if (accounts.length > 1) { + + Account + + All accounts + @for (account of accounts; track account.id) { + {{ account.name }} + } + + + @if (selectedAccountId) { +

+ Comparing the selected account with the global portfolio target. +

+ } + } + + @if (!profile) { + + +

+ Create a target to compare the actual asset allocation with your desired allocation. +

+
+
+ } @else if (isLoading) { +

Loading portfolio allocation…

+ } @else if (hasError || !result || result.status === 'unavailable') { + + +

+ The current allocation cannot be calculated with the available data or permissions. +

+
+
+ } @else if (result.status === 'empty') { +

The selected portfolio is empty.

+ } @else if (result.status === 'inconsistent') { + + +

+ The asset classification or account values cannot be reconciled. Check unclassified + holdings, missing market prices, or negative balances before using this comparison. +

+
+
+ } @else { +
+
+ +
Total allocation drift
+
{{ result.totalDrift * 100 | number: '1.0-2' }}%
+
+
+
+ +
Maximum deviation
+
{{ result.maxDrift * 100 | number: '1.0-2' }}%
+
+
+
+ +
Classes outside tolerance
+
{{ result.outOfToleranceCount }} / {{ displayedRows.length }}
+
+
+
+ + + Actual vs target allocation + +
+ Actual + Target +
+ @for (row of displayedRows; track row.assetClass) { +
+
+ {{ formatClass(row.assetClass) }} + + {{ (row.drift >= 0 ? '+' : '') + (row.drift * 100 | number: '1.0-2') }}% + +
+
+
+
+
+
+
+
+ } +
+
+ + + Deviation details + + + + + + + + + + + @for (row of displayedRows; track row.assetClass) { + + + + + + + + } + +
Asset classActualTargetDeviationStatus
{{ formatClass(row.assetClass) }}{{ row.actual * 100 | number: '1.0-2' }}%{{ row.target * 100 | number: '1.0-2' }}%{{ row.drift * 100 | number: '+1.0-2' }}% + @if (row.outOfTolerance) { + Outside tolerance + } @else { + Within tolerance + } +
+
+
+ } +