Handle expired subscriptions in client profile UI
Build and Deploy Gateway / build-and-push (push) Successful in 21s
Build and Deploy Gateway / deploy (push) Successful in 6s

This commit is contained in:
2026-08-13 15:06:13 +03:00
parent 0ea2f9d548
commit 019930924d
8 changed files with 68 additions and 39 deletions
+7 -2
View File
@@ -482,12 +482,17 @@ export function ClientOverviewPage({
&& (canonicalSwitch || localSwitch)
&& Boolean(operationProfile && operationServer)
&& (operationProfile?.id !== appliedProfile?.id || operationServer?.id !== appliedServer?.id);
const subscriptionError = error?.context === 'subscription'
&& profiles.some((profile) => profile.id === error.profileId
&& profile.subscription.errorCode === 'SUBSCRIPTION_EXPIRED')
? null
: error;
const subscriptionFeature = useSubscriptionFeature({
profiles,
selection: state.selection,
connected,
operations: visibleOperations,
error,
error: subscriptionError,
isGateway,
gatewayDirect,
onAdd: onAddProfile,
@@ -716,7 +721,7 @@ export function ClientOverviewPage({
<SubscriptionPanel
feature={subscriptionFeature}
statusSlot={<>
<InlineError error={subscriptionFeature.error || error} context="subscription" />
<InlineError error={subscriptionFeature.error} context="subscription" />
</>}
renderServerPicker={(profile, pickerState) => <ServerPicker
profileId={profile.id}