From 54e41b27618418c1beeb3fc78932b8f61a2c098f Mon Sep 17 00:00:00 2001 From: Ben Stokes Date: Tue, 24 Nov 2026 17:01:44 +0000 Subject: [PATCH] feat: clearer wording for platform wallets in settings --- apps/web/src/app/core/services/auth.service.ts | 8 ++++++-- .../connected-account-detail.component.html | 2 ++ .../connected-account-detail.component.ts | 6 +++++- .../app/features/account/settings/settings.component.html | 8 ++++++-- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/apps/web/src/app/core/services/auth.service.ts b/apps/web/src/app/core/services/auth.service.ts index aae1c12..c53853b 100644 --- a/apps/web/src/app/core/services/auth.service.ts +++ b/apps/web/src/app/core/services/auth.service.ts @@ -24,12 +24,16 @@ export interface ApiKeyLoginResponse { account_id: string; } +export function IsPlatformAccount(account: Account | null): boolean { + return !!account && account.platform_account === account.id; +} + export function ResolveDashboardType(account: Account | null): DashboardType { const explicit = account?.controller?.zoneless_dashboard?.type; if (explicit) { return explicit; } - if (account && account.platform_account === account.id) { + if (IsPlatformAccount(account)) { return 'full'; } return 'express'; @@ -71,7 +75,7 @@ export class AuthService { SyncFromAccount(account: Account | null): void { const type = ResolveDashboardType(account); - const isPlatform = !!(account && account.platform_account === account.id); + const isPlatform = IsPlatformAccount(account); this.dashboardType.set(type); this.isPlatform.set(isPlatform); diff --git a/apps/web/src/app/features/account/connected-accounts/views/connected-account-detail/connected-account-detail.component.html b/apps/web/src/app/features/account/connected-accounts/views/connected-account-detail/connected-account-detail.component.html index c1ea9e1..5ae77e5 100644 --- a/apps/web/src/app/features/account/connected-accounts/views/connected-account-detail/connected-account-detail.component.html +++ b/apps/web/src/app/features/account/connected-accounts/views/connected-account-detail/connected-account-detail.component.html @@ -184,6 +184,7 @@

Account balances

> Pull funds + @if (!isPlatformAccount()) { + } diff --git a/apps/web/src/app/features/account/connected-accounts/views/connected-account-detail/connected-account-detail.component.ts b/apps/web/src/app/features/account/connected-accounts/views/connected-account-detail/connected-account-detail.component.ts index 6a8ac75..22a0fd5 100644 --- a/apps/web/src/app/features/account/connected-accounts/views/connected-account-detail/connected-account-detail.component.ts +++ b/apps/web/src/app/features/account/connected-accounts/views/connected-account-detail/connected-account-detail.component.ts @@ -26,7 +26,7 @@ import { IdentityService, PersonService, } from '../../../../../data'; -import { MetaService } from '../../../../../core'; +import { IsPlatformAccount, MetaService } from '../../../../../core'; import { CopyTextComponent, PaginatedListColumn, @@ -128,6 +128,10 @@ export class ConnectedAccountDetailViewComponent implements OnInit, OnDestroy { return account?.email ?? account?.individual?.email ?? null; }); + readonly isPlatformAccount = computed(() => + IsPlatformAccount(this.account()) + ); + readonly showIdentityAction = computed(() => NeedsIdentityDocumentAction(this.account()) ); diff --git a/apps/web/src/app/features/account/settings/settings.component.html b/apps/web/src/app/features/account/settings/settings.component.html index 6c0da8d..c86ea7b 100644 --- a/apps/web/src/app/features/account/settings/settings.component.html +++ b/apps/web/src/app/features/account/settings/settings.component.html @@ -146,7 +146,9 @@

Settings

@if (externalWalletService.wallet()) {
-
Payout wallet
+
+ {{ authService.isPlatform() ? 'Platform wallet' : 'Payout wallet' }} +
Settings