ycyxcxc
All checks were successful
Deploy / deploy-staging (push) Successful in 25s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-24 01:00:04 +02:00
parent 1e3f7aa721
commit d02d5a95e9
2 changed files with 15 additions and 2 deletions

View File

@@ -1268,6 +1268,8 @@ final class Router
if (in_array($view, ['overview', 'mining'], true)) {
$rows = $this->repository()->listRecentMeasurements($projectKey, self::BOOTSTRAP_MEASUREMENT_LIMIT);
} elseif ($view === 'wallet') {
$rows = $this->repository()->listRecentMeasurements($projectKey, 1);
} elseif ($view === 'measurements') {
$rows = $this->repository()->listRecentMeasurements($projectKey, 10);
} else {
@@ -1331,6 +1333,14 @@ final class Router
private function bootstrapSummary(array $measurements, array $settings, array $targets, array $walletSnapshots, string $view): array
{
if ($view === 'wallet') {
return $this->analytics()->buildSummary($measurements, $settings, [], [
'include_offer_scenarios' => false,
'include_long_term_projection' => false,
'wallet_snapshots' => $walletSnapshots,
]);
}
if (!in_array($view, ['overview', 'mining'], true)) {
return [
'latest_measurement' => $measurements !== [] ? $measurements[array_key_last($measurements)] : null,