You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: rename isActiveSubscription to canAccessSubscriptionFeatures
The name isActiveSubscription was misleading: it's defined as
!isCloud || !subscription_required || subscription.is_active
so it returns true on non-cloud builds and when subscription is not
required, regardless of actual subscription state. The new name
canAccessSubscriptionFeatures reads correctly at every call site:
'if can access features, show UI / allow action'.
This revives the spirit of PR #7127 which attempted the internal
rename (isSubscribed -> isSubscribedOrIsNotCloud) but never tackled
the exported public name.
Scope:
- Renamed exported composable property from isActiveSubscription to
canAccessSubscriptionFeatures in useSubscription, useBillingContext,
useWorkspaceBilling, useLegacyBilling.
- Renamed the internal alias isSubscribedOrIsNotCloud to match.
- Updated all 112 call sites across 37 files (templates, composables,
services, tests, prop names in kebab-case).
No behavioral changes. Pure identifier rename.
0 commit comments