From 9862323301aa38ff4bb27f4f72883aafa62ef2b3 Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Thu, 16 Apr 2026 14:33:01 -0300 Subject: [PATCH 1/2] fix: Shows info on UI and hides Manage button for shared subs --- packages/responses/src/Domain/Temp/Subscription.ts | 1 + .../Panes/Account/AccountPreferences.tsx | 4 +++- .../Subscription/SubscriptionInformation.tsx | 6 +++++- .../Account/Subscription/SubscriptionStatusText.tsx | 13 ++++++++++++- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/packages/responses/src/Domain/Temp/Subscription.ts b/packages/responses/src/Domain/Temp/Subscription.ts index e749413a965..26949937891 100644 --- a/packages/responses/src/Domain/Temp/Subscription.ts +++ b/packages/responses/src/Domain/Temp/Subscription.ts @@ -4,4 +4,5 @@ export type Subscription = { createdAt: number updatedAt: number cancelled: boolean + subscriptionType?: 'regular' | 'shared' } diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/Account/AccountPreferences.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/Account/AccountPreferences.tsx index 7fe9aa7daf5..13294ca0c4f 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/Account/AccountPreferences.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/Account/AccountPreferences.tsx @@ -18,6 +18,8 @@ type Props = { const AccountPreferences = ({ application }: Props) => { const isUsingThirdPartyServer = !application.sessions.isSignedIntoFirstPartyServer() + const onlineSubscription = application.subscriptionController.onlineSubscription + const isSharedSubscription = onlineSubscription?.subscriptionType === 'shared' return ( @@ -30,7 +32,7 @@ const AccountPreferences = ({ application }: Props) => { )} - + {!isSharedSubscription && } {application.hasAccount() && application.featuresController.entitledToFiles && ( )} diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/SubscriptionInformation.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/SubscriptionInformation.tsx index 5e02fc7d703..0c170bccf11 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/SubscriptionInformation.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/SubscriptionInformation.tsx @@ -5,6 +5,8 @@ import { useApplication } from '@/Components/ApplicationProvider' const SubscriptionInformation = () => { const application = useApplication() + const onlineSubscription = application.subscriptionController.onlineSubscription + const isSharedSubscription = onlineSubscription?.subscriptionType === 'shared' const manageSubscription = async () => { void application.openSubscriptionDashboard.execute() @@ -13,7 +15,9 @@ const SubscriptionInformation = () => { return ( <> -