The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Enterprise plan required for private app sharing (#19393)
martmullfe07de63b0ab
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphqlindex e7ebc6199c9..c03e944e034 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql@@ -3234,7 +3234,6 @@ type Query {findApplicationRegistrationStats(id: String!): ApplicationRegistrationStats!findApplicationRegistrationVariables(applicationRegistrationId: String!): [ApplicationRegistrationVariable!]!applicationRegistrationTarballUrl(id: String!): String- getApplicationShareLink(id: String!): String!currentUser: User!currentWorkspace: Workspace!getPublicWorkspaceDataByDomain(origin: String): PublicWorkspaceData!diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.tsindex de96dde40ee..fd7c034c600 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts@@ -2786,7 +2786,6 @@ export interface Query {findApplicationRegistrationStats: ApplicationRegistrationStatsfindApplicationRegistrationVariables: ApplicationRegistrationVariable[]applicationRegistrationTarballUrl?: Scalars['String']- getApplicationShareLink: Scalars['String']currentUser: UsercurrentWorkspace: WorkspacegetPublicWorkspaceDataByDomain: PublicWorkspaceData@@ -6017,7 +6016,6 @@ export interface QueryGenqlSelection{findApplicationRegistrationStats?: (ApplicationRegistrationStatsGenqlSelection & { __args: {id: Scalars['String']} })findApplicationRegistrationVariables?: (ApplicationRegistrationVariableGenqlSelection & { __args: {applicationRegistrationId: Scalars['String']} })applicationRegistrationTarballUrl?: { __args: {id: Scalars['String']} }- getApplicationShareLink?: { __args: {id: Scalars['String']} }currentUser?: UserGenqlSelectioncurrentWorkspace?: WorkspaceGenqlSelectiongetPublicWorkspaceDataByDomain?: (PublicWorkspaceDataGenqlSelection & { __args?: {origin?: (Scalars['String'] | null)} })diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.tsindex fbe6aa17d20..2f93daecea7 100644--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts@@ -6703,15 +6703,6 @@ export default {]}],- "getApplicationShareLink": [- 1,- {- "id": [- 1,- "String!"- ]- }- ],"currentUser": [69],diff --git a/packages/twenty-docs/developers/extend/apps/publishing.mdx b/packages/twenty-docs/developers/extend/apps/publishing.mdxindex c3f8bd3ab49..4adb676cc52 100644--- a/packages/twenty-docs/developers/extend/apps/publishing.mdx+++ b/packages/twenty-docs/developers/extend/apps/publishing.mdx@@ -52,7 +52,11 @@ yarn twenty deploy### Sharing a deployed app-Tarball apps are not listed in the public marketplace, so other workspaces on the same server won't discover them by browsing. To share a deployed app:+<Warning>+Sharing private (tarball) apps across workspaces is an **Enterprise** feature. The **Distribution** tab will show an upgrade prompt instead of the share controls until your workspace has a valid Enterprise key. See [Settings > Admin Panel > Enterprise](/settings/admin-panel#enterprise) to activate it.+</Warning>++Tarball apps are not listed in the public marketplace, so other workspaces on the same server won't discover them by browsing. Once your workspace is on the Enterprise plan, you can share a deployed app like this:1. Go to **Settings > Applications > Registrations** and open your app2. In the **Distribution** tab, click **Copy share link**@@ -60,10 +64,6 @@ Tarball apps are not listed in the public marketplace, so other workspaces on thThe share link uses the server's base URL (without any workspace subdomain) so it works for any workspace on the server.-<Warning>-Sharing private apps is an Enterprise feature. Go to [Settings > Admin Panel > Enterprise](/settings/admin-panel#enterprise) to enable it.-</Warning>-### Version managementTo release an update:diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.tsindex ca2d311aa00..6e484d5b49f 100644--- a/packages/twenty-front/src/generated-metadata/graphql.ts+++ b/packages/twenty-front/src/generated-metadata/graphql.ts@@ -4282,7 +4282,6 @@ export type Query = {getAdminAiModels: AdminAiModels;getAdminAiUsageByWorkspace: Array<UsageBreakdownItem>;getAiProviders: Scalars['JSON'];- getApplicationShareLink: Scalars['String'];getApprovedAccessDomains: Array<ApprovedAccessDomain>;getAutoCompleteAddress: Array<AutocompleteResult>;getAvailablePackages: Scalars['JSON'];@@ -4507,11 +4506,6 @@ export type QueryGetAdminAiUsageByWorkspaceArgs = {};-export type QueryGetApplicationShareLinkArgs = {- id: Scalars['String'];-};--export type QueryGetAutoCompleteAddressArgs = {address: Scalars['String'];country?: InputMaybe<Scalars['String']>;@@ -7386,13 +7380,6 @@ export type FindOneApplicationRegistrationQueryVariables = Exact<{export type FindOneApplicationRegistrationQuery = { __typename?: 'Query', findOneApplicationRegistration: { __typename?: 'ApplicationRegistration', id: string, universalIdentifier: string, name: string, oAuthClientId: string, oAuthRedirectUris: Array<string>, oAuthScopes: Array<string>, sourceType: ApplicationRegistrationSourceType, sourcePackage?: string | null, latestAvailableVersion?: string | null, isListed: boolean, isFeatured: boolean, ownerWorkspaceId?: string | null, createdAt: string, updatedAt: string } };-export type GetApplicationShareLinkQueryVariables = Exact<{- id: Scalars['String'];-}>;---export type GetApplicationShareLinkQuery = { __typename?: 'Query', getApplicationShareLink: string };-export type UninstallApplicationMutationVariables = Exact<{universalIdentifier: Scalars['String'];}>;@@ -8445,7 +8432,6 @@ export const FindApplicationRegistrationStatsDocument = {"kind":"Document","defiexport const FindApplicationRegistrationVariablesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindApplicationRegistrationVariables"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findApplicationRegistrationVariables"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationRegistrationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"isFilled"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<FindApplicationRegistrationVariablesQuery, FindApplicationRegistrationVariablesQueryVariables>;export const FindManyApplicationRegistrationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyApplicationRegistrations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyApplicationRegistrations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationRegistrationFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationRegistrationFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApplicationRegistration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthClientId"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthRedirectUris"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthScopes"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}},{"kind":"Field","name":{"kind":"Name","value":"ownerWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindManyApplicationRegistrationsQuery, FindManyApplicationRegistrationsQueryVariables>;export const FindOneApplicationRegistrationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationRegistration"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplicationRegistration"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationRegistrationFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationRegistrationFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApplicationRegistration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthClientId"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthRedirectUris"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthScopes"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"isListed"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}},{"kind":"Field","name":{"kind":"Name","value":"ownerWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindOneApplicationRegistrationQuery, FindOneApplicationRegistrationQueryVariables>;-export const GetApplicationShareLinkDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetApplicationShareLink"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getApplicationShareLink"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<GetApplicationShareLinkQuery, GetApplicationShareLinkQueryVariables>;export const UninstallApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UninstallApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uninstallApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}]}]}}]} as unknown as DocumentNode<UninstallApplicationMutation, UninstallApplicationMutationVariables>;export const UpdateOneApplicationVariableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneApplicationVariable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"key"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"value"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneApplicationVariable"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"key"},"value":{"kind":"Variable","name":{"kind":"Name","value":"key"}}},{"kind":"Argument","name":{"kind":"Name","value":"value"},"value":{"kind":"Variable","name":{"kind":"Name","value":"value"}}},{"kind":"Argument","name":{"kind":"Name","value":"applicationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}}}]}]}}]} as unknown as DocumentNode<UpdateOneApplicationVariableMutation, UpdateOneApplicationVariableMutationVariables>;export const CancelSwitchBillingIntervalDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CancelSwitchBillingInterval"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cancelSwitchBillingInterval"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}}]} as unknown as DocumentNode<CancelSwitchBillingIntervalMutation, CancelSwitchBillingIntervalMutationVariables>;diff --git a/packages/twenty-front/src/modules/settings/application-registrations/graphql/queries/getApplicationShareLink.ts b/packages/twenty-front/src/modules/settings/application-registrations/graphql/queries/getApplicationShareLink.tsdeleted file mode 100644index 4aa6883f445..00000000000--- a/packages/twenty-front/src/modules/settings/application-registrations/graphql/queries/getApplicationShareLink.ts+++ /dev/null@@ -1,7 +0,0 @@-import { gql } from '@apollo/client';--export const GET_APPLICATION_SHARE_LINK = gql`- query GetApplicationShareLink($id: String!) {- getApplicationShareLink(id: $id)- }-`;diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationDistributionTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationDistributionTab.tsxindex d54dd71f1fa..cedca5e691f 100644--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationDistributionTab.tsx+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationDistributionTab.tsx@@ -18,11 +18,13 @@ import { getSettingsPath } from 'twenty-shared/utils';import {ApplicationRegistrationSourceType,FindApplicationRegistrationStatsDocument,- GetApplicationShareLinkDocument,} from '~/generated-metadata/graphql';import { themeCssVariables } from 'twenty-ui/theme-constants';import { useCopyToClipboard } from '~/hooks/useCopyToClipboard';import { type ApplicationRegistrationData } from '~/pages/settings/applications/tabs/types/ApplicationRegistrationData';+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';+import { SettingsEnterpriseFeatureGateCard } from '@/settings/components/SettingsEnterpriseFeatureGateCard';const StyledButtonGroup = styled.div`display: flex;@@ -41,19 +43,16 @@ export const SettingsApplicationRegistrationDistributionTab = ({const { copyToClipboard } = useCopyToClipboard();+ const currentWorkspace = useAtomStateValue(currentWorkspaceState);++ const hasEnterpriseAccess = currentWorkspace?.hasValidEnterpriseKey === true;+const isNpmSource =registration.sourceType === ApplicationRegistrationSourceType.NPM;const isTarballSource =registration.sourceType === ApplicationRegistrationSourceType.TARBALL;- const { data: shareLinkData } = useQuery(GetApplicationShareLinkDocument, {- variables: { id: applicationRegistrationId },- skip: !isTarballSource || !applicationRegistrationId,- });-- const shareLink = shareLinkData?.getApplicationShareLink;-const { data: statsData } = useQuery(FindApplicationRegistrationStatsDocument,{@@ -62,12 +61,9 @@ export const SettingsApplicationRegistrationDistributionTab = ({},);- const marketplacePageUrl = getSettingsPath(- SettingsPath.AvailableApplicationDetail,- {- availableApplicationId: registration.universalIdentifier,- },- );+ const shareLink = getSettingsPath(SettingsPath.AvailableApplicationDetail, {+ availableApplicationId: registration.universalIdentifier,+ });const stats = statsData?.findApplicationRegistrationStats;const hasStats = (stats?.activeInstalls ?? 0) > 0;@@ -120,39 +116,47 @@ export const SettingsApplicationRegistrationDistributionTab = ({Icon={IconExternalLink}title={t`View marketplace page`}variant="secondary"- to={marketplacePageUrl}+ to={shareLink}/></StyledButtonGroup></Section>)}- {isTarballSource && (- <Section>- <H2Title- title={t`Share`}- description={t`Share this link with other workspaces on this server to let them install this application.`}+ {isTarballSource &&+ (!hasEnterpriseAccess ? (+ <SettingsEnterpriseFeatureGateCard+ description={t`Upgrade to Enterprise to share private applications.`}/>- <StyledButtonGroup>- <Button- Icon={IconCopy}- title={t`Copy share link`}- variant="secondary"- disabled={!shareLink}- onClick={() => {- if (shareLink) {- copyToClipboard(shareLink, t`Share link copied to clipboard`);- }- }}+ ) : (+ <Section>+ <H2Title+ title={t`Share`}+ description={t`Share this link with other workspaces on this server to let them install this application.`}/>- <Button- Icon={IconExternalLink}- title={t`View marketplace page`}- variant="secondary"- to={marketplacePageUrl}- />- </StyledButtonGroup>- </Section>- )}+ <StyledButtonGroup>+ <Button+ Icon={IconCopy}+ title={t`Copy share link`}+ variant="secondary"+ disabled={!shareLink}+ onClick={async () => {+ if (shareLink) {+ await copyToClipboard(+ shareLink,+ t`Share link copied to clipboard`,+ );+ }+ }}+ />+ <Button+ Icon={IconExternalLink}+ title={t`View private application page`}+ variant="secondary"+ to={shareLink}+ />+ </StyledButtonGroup>+ </Section>+ ))}{hasStats && (<Section>diff --git a/packages/twenty-server/src/engine/core-modules/application/application-registration/application-registration.resolver.ts b/packages/twenty-server/src/engine/core-modules/application/application-registration/application-registration.resolver.tsindex 052a230f6d3..00b3f79cb52 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-registration/application-registration.resolver.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-registration/application-registration.resolver.ts@@ -292,25 +292,6 @@ export class ApplicationRegistrationResolver {});}- @UseGuards(- WorkspaceAuthGuard,- SettingsPermissionGuard(PermissionFlagType.API_KEYS_AND_WEBHOOKS),- )- @Query(() => String)- async getApplicationShareLink(- @Args('id') id: string,- @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,- ): Promise<string> {- const registration = await this.applicationRegistrationService.findOneById(- id,- workspaceId,- );-- const frontUrl = this.domainServerConfigService.getFrontUrl();-- return `${frontUrl.origin}/settings/applications/available/${registration.universalIdentifier}`;- }-@UseGuards(WorkspaceAuthGuard,SettingsPermissionGuard(PermissionFlagType.APPLICATIONS),