Skip to content

Commit 6cba7b4

Browse files
committed
bug fix plans
Signed-off-by: RAWx18 <rawx18.dev@gmail.com>
1 parent f8cc6ab commit 6cba7b4

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

frontend/src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const config = defaultConfig.backendUrl
116116
? defaultConfig
117117
: composedConfig;
118118

119-
config.isCommunityVersion = config.edition === 'gitmesh';
119+
config.isCommunityVersion = config.edition === 'gitmesh' || config.edition === 'gitmesh-ce';
120120
config.hasPremiumModules = !config.isCommunityVersion
121121
|| config.communityPremium === 'true';
122122
config.isGitIntegrationEnabled = config.isGitEnabled === 'true';

frontend/src/modules/settings/pages/plans-page.vue

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<span class="text-2xs text-zinc-200">Active since {{ moment(currentTenant.createdAt).format('MMMM DD, YYYY') }}</span>
1212
</div>
1313
<el-button
14+
v-if="!isCommunityVersion"
1415
class="btn btn--bordered flex items-center gap-2 w-fit !shadow !border-zinc-700"
1516
@click="onManageBillingClick"
1617
>
@@ -218,6 +219,12 @@ const getBadge = (plan) => {
218219
};
219220
220221
const onManageBillingClick = () => {
222+
// Prevent billing access in Community Edition
223+
if (isCommunityVersion) {
224+
console.warn('Community Edition user attempted to access billing management');
225+
return;
226+
}
227+
221228
window.open(config.stripe.customerPortalLink, '_blank');
222229
};
223230
@@ -226,6 +233,18 @@ const displayCalDialog = () => {
226233
};
227234
228235
const handleOnCtaClick = ({ key, ctaAction }) => {
236+
// Prevent access to enterprise plan actions in Community Edition
237+
if (isCommunityVersion && Object.values(gitmeshHostedPlans).includes(key)) {
238+
console.warn('Community Edition user attempted to access enterprise plan:', key);
239+
// Show appropriate message for Community Edition users
240+
window.analytics.track('Community Edition Plan Access Attempt', {
241+
tenantId: currentTenant.value?.id,
242+
tenantName: currentTenant.value?.name,
243+
attemptedPlan: key,
244+
});
245+
return;
246+
}
247+
229248
// Send an event with plan request
230249
window.analytics.track('Change Plan Request', {
231250
tenantId: currentTenant.value.id,

frontend/src/modules/settings/settings-pricing-plans.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const plans = {
129129
key: communityPlans.community,
130130
title: 'Community',
131131
description:
132-
"Keep ownership of your data and host gitmesh.dev's community version for free on your own premises",
132+
"Keep ownership of your data and host GitMesh Community Edition",
133133
price: 'Free',
134134
features: [
135135
'Unlimited seats',
@@ -150,7 +150,7 @@ export const plans = {
150150
key: communityPlans.custom,
151151
title: 'Custom',
152152
description:
153-
"Get access to gitmesh.dev's premium features and support, and host the platform on your own premises",
153+
"Get access to GitMesh Enterprise Edition (By Alveoli)",
154154
price: 'On request',
155155
featuresNote: 'Everything in Community, plus:',
156156
features: [

0 commit comments

Comments
 (0)