The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Redesign the marketplace app detail page (#25969)
martmull153f8bbc6a22
diff --git a/packages/twenty-agent-skills/references/publish-app/prepare-for-app-store.md b/packages/twenty-agent-skills/references/publish-app/prepare-for-app-store.mdindex cf98a47de82..7a961402b4d 100644--- a/packages/twenty-agent-skills/references/publish-app/prepare-for-app-store.md+++ b/packages/twenty-agent-skills/references/publish-app/prepare-for-app-store.md@@ -187,7 +187,7 @@ export default defineApplication({});```-Only set `aboutDescription` when the marketplace About tab should differ from the npm README. Otherwise keep one source of truth in `README.md`.+Only set `aboutDescription` when the marketplace About tab should differ from the npm README. Otherwise keep one source of truth in `README.md`. The About tab renders markdown text only: images and raw HTML (badges, `<div>` blocks) are not rendered, so keep the marketplace-facing content in plain markdown.If the app requires a specific Twenty server version, set `engines.twenty` in `package.json`. If publishing to npm, add the `twenty-app` keyword.diff --git a/packages/twenty-agent-skills/skills/publish-app/SKILL.md b/packages/twenty-agent-skills/skills/publish-app/SKILL.mdindex 720c53dc861..7934afc5f48 100644--- a/packages/twenty-agent-skills/skills/publish-app/SKILL.md+++ b/packages/twenty-agent-skills/skills/publish-app/SKILL.md@@ -29,7 +29,7 @@ Keep the skill workflow concise:- For npm marketplace publication, ensure `package.json` has a valid bumped `version` and the `twenty-app` keyword.- In `defineApplication()`, verify marketplace-facing fields such as `displayName`, `description`, `author`, `category`, `logoUrl`, `screenshots`, `aboutDescription`, `websiteUrl`, `termsUrl`, `emailSupport`, and `issueReportUrl`.- Keep `logoUrl` and `screenshots` pointed at files in `public/`. Public assets must not contain secrets, private data, customer records, real tokens, or unreleased confidential material.-- Remember that if `aboutDescription` is omitted, the marketplace uses the package `README.md` from npm for the About content.+- Remember that if `aboutDescription` is omitted, the marketplace uses the package `README.md` from npm for the About content. The About tab renders markdown text only: images and raw HTML are not rendered.- Validate with `yarn twenty dev:build`; publish with `yarn twenty app:publish` or `yarn twenty app:publish --tag <tag>`.# Boundariesdiff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphqlindex 8a1f0eb251a..6e0ad88a9ef 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql@@ -2399,6 +2399,7 @@ type MarketplaceAppDetail {issueReportUrl: Stringscreenshots: [String!]! @deprecated(reason: "Use galleryImages instead")galleryImages: [String!]!+ installCount: Int!defaultRoleUniversalIdentifier: Stringroles: [MarketplaceAppRole!]manifest: JSON @deprecated(reason: "Use the explicit MarketplaceAppDetail fields (description, author, roles, ...) instead")diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.tsindex 69a85cc3d99..86ae7bfc8cc 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts@@ -2031,6 +2031,7 @@ export interface MarketplaceAppDetail {/** @deprecated Use galleryImages instead */screenshots: Scalars['String'][]galleryImages: Scalars['String'][]+ installCount: Scalars['Int']defaultRoleUniversalIdentifier?: Scalars['String']roles?: MarketplaceAppRole[]/** @deprecated Use the explicit MarketplaceAppDetail fields (description, author, roles, ...) instead */@@ -5701,6 +5702,7 @@ export interface MarketplaceAppDetailGenqlSelection{/** @deprecated Use galleryImages instead */screenshots?: boolean | numbergalleryImages?: boolean | number+ installCount?: boolean | numberdefaultRoleUniversalIdentifier?: boolean | numberroles?: MarketplaceAppRoleGenqlSelection/** @deprecated Use the explicit MarketplaceAppDetail fields (description, author, roles, ...) instead */diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.tsindex dab47c5b7ba..0437e2576bd 100644--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts@@ -4782,6 +4782,9 @@ export default {"galleryImages": [1],+ "installCount": [+ 28+ ],"defaultRoleUniversalIdentifier": [1],diff --git a/packages/twenty-docs/developers/extend/apps/config/application.mdx b/packages/twenty-docs/developers/extend/apps/config/application.mdxindex 371265a8c4c..3c1c8192f30 100644--- a/packages/twenty-docs/developers/extend/apps/config/application.mdx+++ b/packages/twenty-docs/developers/extend/apps/config/application.mdx@@ -115,7 +115,7 @@ If you plan to [publish your app](/developers/extend/apps/operations/publishing)| `category` | App category for marketplace filtering || `logo` | Path to your app logo bundled in `public/` (e.g., `public/logo.png`) || `galleryImages` | Array of gallery image paths bundled in `public/` (e.g., `public/screenshot-1.png`) |-| `aboutDescription` | Longer markdown description for the "About" tab. If omitted, the marketplace uses the package's `README.md` from npm |+| `aboutDescription` | Longer markdown description for the "About" tab. If omitted, the marketplace uses the package's `README.md` from npm. Images do not render, and raw HTML shows as plain text || `billing.description` | What the app costs, in one short friendly line shown next to the install button (e.g. `$0.02 per minute recorded`). Set it if your app [charges credits](/developers/extend/apps/logic/credits) || `websiteUrl` | Link to your website || `termsUrl` | Link to terms of service |diff --git a/packages/twenty-docs/developers/extend/apps/operations/publishing.mdx b/packages/twenty-docs/developers/extend/apps/operations/publishing.mdxindex 61a1cd83f80..af70792a348 100644--- a/packages/twenty-docs/developers/extend/apps/operations/publishing.mdx+++ b/packages/twenty-docs/developers/extend/apps/operations/publishing.mdx@@ -275,6 +275,8 @@ The metadata shown in the marketplace comes from your `defineApplication()` conf<Note>If your app does not define an `aboutDescription` in `defineApplication()`, the marketplace will automatically use your package's `README.md` from npm as the about page content. This means you can maintain a single README for both npm and the Twenty marketplace. If you want a different description in the marketplace, explicitly set `aboutDescription`.++The About tab renders markdown text only. Images do not render, whether they use markdown syntax or `<img>` tags, and raw HTML such as badges or `<div align="center">` blocks shows as plain text.</Note>### CI publishingdiff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.tsindex fac939d71de..4d804b810bd 100644--- a/packages/twenty-front/src/generated-metadata/graphql.ts+++ b/packages/twenty-front/src/generated-metadata/graphql.ts@@ -2651,6 +2651,7 @@ export type MarketplaceAppDetail = {emailSupport?: Maybe<Scalars['String']['output']>;galleryImages: Array<Scalars['String']['output']>;id: Scalars['String']['output'];+ installCount: Scalars['Int']['output'];isListed: Scalars['Boolean']['output'];isVetted: Scalars['Boolean']['output'];issueReportUrl?: Maybe<Scalars['String']['output']>;@@ -8397,7 +8398,7 @@ export type GetLogicFunctionSourceCodeQueryVariables = Exact<{export type GetLogicFunctionSourceCodeQuery = { __typename?: 'Query', getLogicFunctionSourceCode?: string | null };-export type MarketplaceAppDetailFieldsFragment = { __typename?: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: ApplicationRegistrationSourceType, sourcePackage?: string | null, latestAvailableVersion?: string | null, isListed: boolean, isVetted: boolean, description?: string | null, author?: string | null, category?: string | null, logoUrl?: string | null, websiteUrl?: string | null, aboutDescription?: string | null, pricingDescription?: string | null, termsUrl?: string | null, emailSupport?: string | null, issueReportUrl?: string | null, galleryImages: Array<string>, defaultRoleUniversalIdentifier?: string | null, roles?: Array<{ __typename?: 'MarketplaceAppRole', universalIdentifier: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings?: boolean | null, canAccessAllTools?: boolean | null, canReadAllObjectRecords?: boolean | null, canUpdateAllObjectRecords?: boolean | null, canSoftDeleteAllObjectRecords?: boolean | null, canDestroyAllObjectRecords?: boolean | null, permissionFlagUniversalIdentifiers?: Array<string> | null, objectPermissions?: Array<{ __typename?: 'MarketplaceAppRoleObjectPermission', universalIdentifier: string, objectUniversalIdentifier: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null, fieldPermissions?: Array<{ __typename?: 'MarketplaceAppRoleFieldPermission', universalIdentifier: string, objectUniversalIdentifier: string, fieldUniversalIdentifier: string, canReadFieldValue?: boolean | null, canUpdateFieldValue?: boolean | null }> | null }> | null };+export type MarketplaceAppDetailFieldsFragment = { __typename?: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: ApplicationRegistrationSourceType, sourcePackage?: string | null, latestAvailableVersion?: string | null, isListed: boolean, isVetted: boolean, description?: string | null, author?: string | null, category?: string | null, logoUrl?: string | null, websiteUrl?: string | null, aboutDescription?: string | null, pricingDescription?: string | null, termsUrl?: string | null, emailSupport?: string | null, issueReportUrl?: string | null, galleryImages: Array<string>, installCount: number, defaultRoleUniversalIdentifier?: string | null, roles?: Array<{ __typename?: 'MarketplaceAppRole', universalIdentifier: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings?: boolean | null, canAccessAllTools?: boolean | null, canReadAllObjectRecords?: boolean | null, canUpdateAllObjectRecords?: boolean | null, canSoftDeleteAllObjectRecords?: boolean | null, canDestroyAllObjectRecords?: boolean | null, permissionFlagUniversalIdentifiers?: Array<string> | null, objectPermissions?: Array<{ __typename?: 'MarketplaceAppRoleObjectPermission', universalIdentifier: string, objectUniversalIdentifier: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null, fieldPermissions?: Array<{ __typename?: 'MarketplaceAppRoleFieldPermission', universalIdentifier: string, objectUniversalIdentifier: string, fieldUniversalIdentifier: string, canReadFieldValue?: boolean | null, canUpdateFieldValue?: boolean | null }> | null }> | null };export type MarketplaceAppFieldsFragment = { __typename?: 'MarketplaceApp', id: string, name: string, description: string, author: string, category: string, logoUrl?: string | null, sourcePackage?: string | null, isVetted: boolean };@@ -8447,7 +8448,7 @@ export type FindMarketplaceAppDetailQueryVariables = Exact<{}>;-export type FindMarketplaceAppDetailQuery = { __typename?: 'Query', findMarketplaceAppDetail: { __typename?: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: ApplicationRegistrationSourceType, sourcePackage?: string | null, latestAvailableVersion?: string | null, isListed: boolean, isVetted: boolean, description?: string | null, author?: string | null, category?: string | null, logoUrl?: string | null, websiteUrl?: string | null, aboutDescription?: string | null, pricingDescription?: string | null, termsUrl?: string | null, emailSupport?: string | null, issueReportUrl?: string | null, galleryImages: Array<string>, defaultRoleUniversalIdentifier?: string | null, roles?: Array<{ __typename?: 'MarketplaceAppRole', universalIdentifier: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings?: boolean | null, canAccessAllTools?: boolean | null, canReadAllObjectRecords?: boolean | null, canUpdateAllObjectRecords?: boolean | null, canSoftDeleteAllObjectRecords?: boolean | null, canDestroyAllObjectRecords?: boolean | null, permissionFlagUniversalIdentifiers?: Array<string> | null, objectPermissions?: Array<{ __typename?: 'MarketplaceAppRoleObjectPermission', universalIdentifier: string, objectUniversalIdentifier: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null, fieldPermissions?: Array<{ __typename?: 'MarketplaceAppRoleFieldPermission', universalIdentifier: string, objectUniversalIdentifier: string, fieldUniversalIdentifier: string, canReadFieldValue?: boolean | null, canUpdateFieldValue?: boolean | null }> | null }> | null } };+export type FindMarketplaceAppDetailQuery = { __typename?: 'Query', findMarketplaceAppDetail: { __typename?: 'MarketplaceAppDetail', id: string, universalIdentifier: string, name: string, sourceType: ApplicationRegistrationSourceType, sourcePackage?: string | null, latestAvailableVersion?: string | null, isListed: boolean, isVetted: boolean, description?: string | null, author?: string | null, category?: string | null, logoUrl?: string | null, websiteUrl?: string | null, aboutDescription?: string | null, pricingDescription?: string | null, termsUrl?: string | null, emailSupport?: string | null, issueReportUrl?: string | null, galleryImages: Array<string>, installCount: number, defaultRoleUniversalIdentifier?: string | null, roles?: Array<{ __typename?: 'MarketplaceAppRole', universalIdentifier: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings?: boolean | null, canAccessAllTools?: boolean | null, canReadAllObjectRecords?: boolean | null, canUpdateAllObjectRecords?: boolean | null, canSoftDeleteAllObjectRecords?: boolean | null, canDestroyAllObjectRecords?: boolean | null, permissionFlagUniversalIdentifiers?: Array<string> | null, objectPermissions?: Array<{ __typename?: 'MarketplaceAppRoleObjectPermission', universalIdentifier: string, objectUniversalIdentifier: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null, fieldPermissions?: Array<{ __typename?: 'MarketplaceAppRoleFieldPermission', universalIdentifier: string, objectUniversalIdentifier: string, fieldUniversalIdentifier: string, canReadFieldValue?: boolean | null, canUpdateFieldValue?: boolean | null }> | null }> | null } };export type FindMarketplaceAppManifestQueryVariables = Exact<{universalIdentifier: Scalars['String']['input'];@@ -10038,7 +10039,7 @@ export const CommandMenuItemFieldsFragmentDoc = {"kind":"Document","definitions"export const PageLayoutWidgetFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutWidgetFragmentFragment, unknown>;export const PageLayoutTabFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutTabFragmentFragment, unknown>;export const PageLayoutFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"isFirstTabPinned"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"heightBehavior"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingSummaryConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CallRecordingTranscriptConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignBodyConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageCampaignDetailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"nestedRelationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormFieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"recordLimit"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"headerCommandMenuItemUniversalIdentifiers"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<PageLayoutFragmentFragment, unknown>;-export const MarketplaceAppDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"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":"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":"isVetted"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"pricingDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImages"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode<MarketplaceAppDetailFieldsFragment, unknown>;+export const MarketplaceAppDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"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":"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":"isVetted"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"pricingDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImages"}},{"kind":"Field","name":{"kind":"Name","value":"installCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode<MarketplaceAppDetailFieldsFragment, unknown>;export const MarketplaceAppFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceApp"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"isVetted"}}]}}]} as unknown as DocumentNode<MarketplaceAppFieldsFragment, unknown>;export const NavigationMenuItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<NavigationMenuItemFieldsFragment, unknown>;export const NavigationMenuItemQueryFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemFields"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordIdentifier"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifier"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<NavigationMenuItemQueryFieldsFragment, unknown>;@@ -10186,7 +10187,7 @@ export const TriggerInstallApplicationJobDocument = {"kind":"Document","definitiexport const UpgradeApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpgradeApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appRegistrationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"targetVersion"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upgradeApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appRegistrationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"appRegistrationId"}}},{"kind":"Argument","name":{"kind":"Name","value":"targetVersion"},"value":{"kind":"Variable","name":{"kind":"Name","value":"targetVersion"}}}]}]}}]} as unknown as DocumentNode<UpgradeApplicationMutation, UpgradeApplicationMutationVariables>;export const FindInstallApplicationJobStatusDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindInstallApplicationJobStatus"},"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":"findInstallApplicationJobStatus"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jobId"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"failedReason"}}]}}]}}]} as unknown as DocumentNode<FindInstallApplicationJobStatusQuery, FindInstallApplicationJobStatusQueryVariables>;export const FindManyMarketplaceAppsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyMarketplaceApps"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifiers"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyMarketplaceApps"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifiers"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifiers"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MarketplaceAppFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceApp"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"isVetted"}}]}}]} as unknown as DocumentNode<FindManyMarketplaceAppsQuery, FindManyMarketplaceAppsQueryVariables>;-export const FindMarketplaceAppDetailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMarketplaceAppDetail"},"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":"findMarketplaceAppDetail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MarketplaceAppDetailFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"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":"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":"isVetted"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"pricingDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImages"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode<FindMarketplaceAppDetailQuery, FindMarketplaceAppDetailQueryVariables>;+export const FindMarketplaceAppDetailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMarketplaceAppDetail"},"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":"findMarketplaceAppDetail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MarketplaceAppDetailFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceAppDetail"}},"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":"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":"isVetted"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"pricingDescription"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"emailSupport"}},{"kind":"Field","name":{"kind":"Name","value":"issueReportUrl"}},{"kind":"Field","name":{"kind":"Name","value":"galleryImages"}},{"kind":"Field","name":{"kind":"Name","value":"installCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlagUniversalIdentifiers"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}}]}}]}}]} as unknown as DocumentNode<FindMarketplaceAppDetailQuery, FindMarketplaceAppDetailQueryVariables>;export const FindMarketplaceAppManifestDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMarketplaceAppManifest"},"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":"findMarketplaceAppDetail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"manifest"}}]}}]}}]} as unknown as DocumentNode<FindMarketplaceAppManifestQuery, FindMarketplaceAppManifestQueryVariables>;export const FindMinimalMetadataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindMinimalMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"minimalMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}}]}},{"kind":"Field","name":{"kind":"Name","value":"views"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"Field","name":{"kind":"Name","value":"collectionHashes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"collectionName"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}}]}}]}}]}}]} as unknown as DocumentNode<FindMinimalMetadataQuery, FindMinimalMetadataQueryVariables>;export const CreateManyNavigationMenuItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyNavigationMenuItems"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateNavigationMenuItemInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyNavigationMenuItems"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemFields"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordIdentifier"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifier"}}]}}]}}]} as unknown as DocumentNode<CreateManyNavigationMenuItemsMutation, CreateManyNavigationMenuItemsMutationVariables>;diff --git a/packages/twenty-front/src/modules/ai/components/LazyMarkdownRenderer.tsx b/packages/twenty-front/src/modules/ai/components/LazyMarkdownRenderer.tsxindex c98688e9e2e..f3515252580 100644--- a/packages/twenty-front/src/modules/ai/components/LazyMarkdownRenderer.tsx+++ b/packages/twenty-front/src/modules/ai/components/LazyMarkdownRenderer.tsx@@ -104,6 +104,11 @@ const MARKDOWN_COMPONENTS = {),};+const MARKDOWN_COMPONENTS_WITHOUT_IMAGES = {+ ...MARKDOWN_COMPONENTS,+ img: () => null,+};+const MarkdownRenderer = lazy(async () => {const [{ default: Markdown }, { default: remarkGfm }] = await Promise.all([import('react-markdown'),@@ -113,8 +118,19 @@ const MarkdownRenderer = lazy(async () => {const remarkPlugins = [remarkGfm];return {- default: ({ children }: { children: string }) => (- <Markdown remarkPlugins={remarkPlugins} components={MARKDOWN_COMPONENTS}>+ default: ({+ children,+ noImage,+ }: {+ children: string;+ noImage?: boolean;+ }) => (+ <Markdown+ remarkPlugins={remarkPlugins}+ components={+ noImage ? MARKDOWN_COMPONENTS_WITHOUT_IMAGES : MARKDOWN_COMPONENTS+ }+ >{children}</Markdown>),@@ -141,13 +157,23 @@ export const MarkdownLoadingSkeleton = () => {// Protecting per block behind the memo means only the streaming tail blocks// pay the reference-parsing cost on each flush; settled blocks never re-run it.-const MemoizedMarkdownBlock = memo(({ blockText }: { blockText: string }) => (- <MarkdownRenderer>- {protectChatReferencesForMarkdown(blockText)}- </MarkdownRenderer>-));+const MemoizedMarkdownBlock = memo(+ ({ blockText, noImage }: { blockText: string; noImage?: boolean }) => (+ <MarkdownRenderer noImage={noImage}>+ {protectChatReferencesForMarkdown(blockText)}+ </MarkdownRenderer>+ ),+);-export const LazyMarkdownContent = ({ text }: { text: string }) => {+type LazyMarkdownContentProps = {+ text: string;+ noImage?: boolean;+};++export const LazyMarkdownContent = ({+ text,+ noImage,+}: LazyMarkdownContentProps) => {// Not state: the blocks are a pure function of `text`, the ref only caches// the previous split so streaming appends skip re-tokenizing settled blocks.// oxlint-disable-next-line twenty/no-state-useref@@ -166,14 +192,23 @@ export const LazyMarkdownContent = ({ text }: { text: string }) => {data-replay-ignore-mutations="true">{markdownBlocks.map((blockText, blockIndex) => (- <MemoizedMarkdownBlock key={blockIndex} blockText={blockText} />+ <MemoizedMarkdownBlock+ key={blockIndex}+ blockText={blockText}+ noImage={noImage}+ />))}</StyledMarkdownContainer>);};-export const LazyMarkdownRenderer = ({ text }: { text: string }) => (+type LazyMarkdownRendererProps = LazyMarkdownContentProps;++export const LazyMarkdownRenderer = ({+ text,+ noImage,+}: LazyMarkdownRendererProps) => (<Suspense fallback={<MarkdownLoadingSkeleton />}>- <LazyMarkdownContent text={text} />+ <LazyMarkdownContent text={text} noImage={noImage} /></Suspense>);diff --git a/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.ts b/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.tsindex 78c7b2bfad8..c08eab217f3 100644--- a/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.ts+++ b/packages/twenty-front/src/modules/marketplace/graphql/fragments/marketplaceAppDetailFragment.ts@@ -21,6 +21,7 @@ export const MARKETPLACE_APP_DETAIL_FRAGMENT = gql`emailSupportissueReportUrlgalleryImages+ installCountdefaultRoleUniversalIdentifierroles {universalIdentifierdiff --git a/packages/twenty-front/src/modules/marketplace/hooks/useCopyMarketplaceAppLink.ts b/packages/twenty-front/src/modules/marketplace/hooks/useCopyMarketplaceAppLink.tsnew file mode 100644index 00000000000..a0d0385e4a2--- /dev/null+++ b/packages/twenty-front/src/modules/marketplace/hooks/useCopyMarketplaceAppLink.ts@@ -0,0 +1,20 @@+import { useLingui } from '@lingui/react/macro';+import { SettingsPath } from 'twenty-shared/types';+import { getSettingsPath } from 'twenty-shared/utils';+import { useCopyToClipboard } from '~/hooks/useCopyToClipboard';++export const useCopyMarketplaceAppLink = () => {+ const { t } = useLingui();+ const { copyToClipboard } = useCopyToClipboard();++ const copyMarketplaceAppLink = (universalIdentifier: string) =>+ copyToClipboard(+ `${window.location.origin}${getSettingsPath(+ SettingsPath.AvailableApplicationDetail,+ { availableApplicationId: universalIdentifier },+ )}`,+ t`Link copied to clipboard`,+ );++ return { copyMarketplaceAppLink };+};diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationAboutSidebar.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationAboutSidebar.tsxindex 361ce870c8e..38cf0274b9b 100644--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationAboutSidebar.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationAboutSidebar.tsx@@ -1,25 +1,28 @@-import { isNonEmptyString } from '@sniptt/guards';+import { AppChip } from '@/applications/components/AppChip';+import { useNumberFormat } from '@/localization/hooks/useNumberFormat';+import { getInstallCountEstimate } from '@/settings/applications/utils/getInstallCountEstimate';import { styled } from '@linaria/react';-import { t } from '@lingui/core/macro';-import { type ReactNode } from 'react';-import { isDefined } from 'twenty-shared/utils';-import { Tag } from 'twenty-ui/primitives/data-display';+import { plural, t } from '@lingui/core/macro';+import { isNonEmptyString } from '@sniptt/guards';+import { useContext } from 'react';+import { isDefined, isSafeUrl } from 'twenty-shared/utils';import {IconAlertTriangle,IconBrandNpm,type IconComponent,+ IconCurrencyDollar,+ IconDownload,IconLink,IconMail,+ IconShare2,+ IconTag,+ IconUserCircle,+ IconVersions,IconWorld,} from 'twenty-ui/icon';-import { themeCssVariables } from 'twenty-ui/theme-constants';--export type ContentEntry = {- icon: IconComponent;- count: number;- one: string;- many: string;-};+import { Button } from 'twenty-ui/primitives/input';+import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/surfaces';+import { ThemeContext, themeCssVariables } from 'twenty-ui/theme-constants';export type DeveloperLinks = {websiteUrl?: string;@@ -30,220 +33,272 @@ export type DeveloperLinks = {};type SettingsApplicationAboutSidebarProps = {- actionButton?: ReactNode;- pricingDescription?: string;+ applicationId?: string | null;+ logoUrl?: string | null;+ displayName: string;+ description?: string;+ onShare?: () => void;author?: string;+ version?: string;+ installCount?: number;category?: string;- contentEntries?: ContentEntry[];- currentVersion?: string;- latestAvailableVersion?: string;+ pricingDescription?: string;developerLinks?: DeveloperLinks;};+type AboutRow = {+ Icon: IconComponent;+ label: string;+ tooltip?: string;+};++type ResourceLink = AboutRow & {+ href: string;+};++const isResourceLinkUrl = (url: string | undefined): url is string =>+ isNonEmptyString(url) && isSafeUrl(url);+const StyledSidebar = styled.div`- flex-shrink: 0;- width: 140px;+ display: flex;+ flex-direction: column;+ gap: ${themeCssVariables.spacing[5]};+ min-width: 0;`;-const StyledSidebarSection = styled.div`- padding: ${themeCssVariables.spacing[3]} 0;-- &:first-of-type {- padding-top: 0;- }+const StyledHeader = styled.div`+ align-items: flex-start;+ display: flex;+ flex-direction: column;+ gap: ${themeCssVariables.spacing[4]};`;-const StyledSidebarLabel = styled.div`- color: ${themeCssVariables.font.color.tertiary};- font-size: ${themeCssVariables.font.size.sm};- margin-bottom: ${themeCssVariables.spacing[2]};+const StyledIdentity = styled.div`+ display: flex;+ flex-direction: column;+ gap: ${themeCssVariables.spacing[3]};+ width: 100%;`;-const StyledSidebarValue = styled.div`+const StyledName = styled.div`color: ${themeCssVariables.font.color.primary};font-size: ${themeCssVariables.font.size.md};font-weight: ${themeCssVariables.font.weight.medium};+ line-height: 1.4;+ min-width: 0;`;-// Prose rather than a datum: it wraps, and stays regular weight so a sentence-// does not shout next to the short sidebar values.-const StyledPricingValue = styled.div`- color: ${themeCssVariables.font.color.primary};- font-size: ${themeCssVariables.font.size.md};+const StyledDescription = styled.div`+ color: ${themeCssVariables.font.color.tertiary};+ font-size: ${themeCssVariables.font.size.sm};+ line-height: 1.4;overflow-wrap: anywhere;`;-const StyledContentList = styled.div`- align-items: flex-start;+const StyledSection = styled.div`display: flex;flex-direction: column;- gap: ${themeCssVariables.spacing[2]};+ gap: ${themeCssVariables.spacing[1]};`;-const StyledLink = styled.a`+const StyledSectionLabel = styled.div`align-items: center;- color: ${themeCssVariables.font.color.primary};+ color: ${themeCssVariables.font.color.tertiary};+ display: flex;+ font-size: ${themeCssVariables.font.size.sm};+ min-height: ${themeCssVariables.spacing[6]};+`;++const StyledRow = styled.div`+ align-items: center;+ color: ${themeCssVariables.font.color.secondary};+ display: flex;+ font-size: ${themeCssVariables.font.size.sm};+ font-weight: ${themeCssVariables.font.weight.medium};+ gap: ${themeCssVariables.spacing[1]};+ line-height: 1.4;+ min-height: ${themeCssVariables.spacing[6]};+`;++const StyledResourceLink = styled.a`+ align-items: center;+ color: ${themeCssVariables.font.color.secondary};display: flex;font-size: ${themeCssVariables.font.size.sm};- gap: ${themeCssVariables.spacing[2]};- margin-bottom: ${themeCssVariables.spacing[2]};+ font-weight: ${themeCssVariables.font.weight.medium};+ gap: ${themeCssVariables.spacing[1]};+ line-height: 1.4;+ min-height: ${themeCssVariables.spacing[6]};text-decoration: none;&:hover {text-decoration: underline;}+`;- &:last-of-type {- margin-bottom: 0;- }+const StyledRowIcon = styled.div`+ display: flex;+ flex-shrink: 0;`;export const SettingsApplicationAboutSidebar = ({- actionButton,- pricingDescription,+ applicationId,+ logoUrl,+ displayName,+ description,+ onShare,author,+ version,+ installCount,category,- contentEntries,- currentVersion,- latestAvailableVersion,+ pricingDescription,developerLinks,}: SettingsApplicationAboutSidebarProps) => {- const isSafeUrl = (url: string | undefined): url is string => {- if (!isNonEmptyString(url)) return false;-- try {- const parsed = new URL(url);+ const { theme } = useContext(ThemeContext);+ const { formatNumber } = useNumberFormat();- return ['http:', 'https:', 'mailto:'].includes(parsed.protocol);- } catch {- return false;+ const getInstallCountRows = (): AboutRow[] => {+ if (!isDefined(installCount) || installCount <= 0) {+ return [];}- };- const filteredContentEntries = (contentEntries ?? []).filter(- (entry) => entry.count > 0,- );+ const exactInstallCountLabel = plural(installCount, {+ one: `${formatNumber(installCount)} install`,+ other: `${formatNumber(installCount)} installs`,+ });+ const installCountEstimate = getInstallCountEstimate(installCount);- const hasDeveloperLinks =- isDefined(developerLinks) &&- (isNonEmptyString(developerLinks.websiteUrl) ||- isNonEmptyString(developerLinks.termsUrl) ||- isNonEmptyString(developerLinks.emailSupport) ||- isNonEmptyString(developerLinks.issueReportUrl) ||- isNonEmptyString(developerLinks.sourcePackageUrl));+ if (!isDefined(installCountEstimate)) {+ return [{ Icon: IconDownload, label: exactInstallCountLabel }];+ }- return (- <StyledSidebar>- {isDefined(actionButton) && (- <StyledSidebarSection>{actionButton}</StyledSidebarSection>- )}+ const estimatedInstallCount = formatNumber(installCountEstimate);- {isNonEmptyString(pricingDescription) && (- <StyledSidebarSection>- <StyledSidebarLabel>{t`Pricing`}</StyledSidebarLabel>- <StyledPricingValue>{pricingDescription}</StyledPricingValue>- </StyledSidebarSection>- )}+ return [+ {+ Icon: IconDownload,+ label: t`+${estimatedInstallCount} installs`,+ tooltip: exactInstallCountLabel,+ },+ ];+ };- {isDefined(author) && (- <StyledSidebarSection>- <StyledSidebarLabel>{t`Created by`}</StyledSidebarLabel>- <StyledSidebarValue>{author}</StyledSidebarValue>- </StyledSidebarSection>- )}+ const aboutRows: AboutRow[] = [+ ...(isNonEmptyString(author)+ ? [{ Icon: IconUserCircle, label: t`by ${author}` }]+ : []),+ ...(isNonEmptyString(version)+ ? [{ Icon: IconVersions, label: version }]+ : []),+ ...getInstallCountRows(),+ ...(isNonEmptyString(category) ? [{ Icon: IconTag, label: category }] : []),+ ...(isNonEmptyString(pricingDescription)+ ? [{ Icon: IconCurrencyDollar, label: pricingDescription }]+ : []),+ ];- {isDefined(category) && (- <StyledSidebarSection>- <StyledSidebarLabel>{t`Category`}</StyledSidebarLabel>- <StyledSidebarValue>{category}</StyledSidebarValue>- </StyledSidebarSection>- )}+ const {+ websiteUrl,+ termsUrl,+ emailSupport,+ issueReportUrl,+ sourcePackageUrl,+ } = developerLinks ?? {};- {filteredContentEntries.length > 0 && (- <StyledSidebarSection>- <StyledSidebarLabel>{t`Content`}</StyledSidebarLabel>- <StyledContentList>- {filteredContentEntries.map((entry) => (- <Tag- key={entry.one}- color="gray"- startIcon={<entry.icon />}- >{`${entry.count} ${- entry.count === 1 ? entry.one : entry.many- }`}</Tag>- ))}- </StyledContentList>- </StyledSidebarSection>- )}+ const resourceLinks: ResourceLink[] = [+ ...(isResourceLinkUrl(websiteUrl)+ ? [{ Icon: IconWorld, label: t`Website`, href: websiteUrl }]+ : []),+ ...(isResourceLinkUrl(termsUrl)+ ? [{ Icon: IconLink, label: t`Terms / Privacy`, href: termsUrl }]+ : []),+ ...(isNonEmptyString(emailSupport)+ ? [+ {+ Icon: IconMail,+ label: t`Email support`,+ href: `mailto:${emailSupport}`,+ },+ ]+ : []),+ ...(isResourceLinkUrl(issueReportUrl)+ ? [+ {+ Icon: IconAlertTriangle,+ label: t`Report an issue`,+ href: issueReportUrl,+ },+ ]+ : []),+ ...(isResourceLinkUrl(sourcePackageUrl)+ ? [{ Icon: IconBrandNpm, label: t`Npm package`, href: sourcePackageUrl }]+ : []),+ ];- {isDefined(currentVersion) && (- <StyledSidebarSection>- <StyledSidebarLabel>{t`Current`}</StyledSidebarLabel>- <StyledSidebarValue>{currentVersion}</StyledSidebarValue>- </StyledSidebarSection>- )}+ return (+ <StyledSidebar>+ <StyledHeader>+ <AppChip+ applicationId={applicationId}+ logoUrl={logoUrl}+ fallbackApplicationData={{ name: displayName }}+ size="xl"+ chipOnly+ />+ <StyledIdentity>+ <StyledName>+ <OverflowingTextWithTooltip text={displayName} />+ </StyledName>+ {isNonEmptyString(description) && (+ <StyledDescription>{description}</StyledDescription>+ )}+ </StyledIdentity>+ {isDefined(onShare) && (+ <Button+ Icon={IconShare2}+ title={t`Share`}+ variant="secondary"+ size="small"+ onClick={onShare}+ />+ )}+ </StyledHeader>- {isDefined(latestAvailableVersion) && (- <StyledSidebarSection>- <StyledSidebarLabel>{t`Latest`}</StyledSidebarLabel>- <StyledSidebarValue>{latestAvailableVersion}</StyledSidebarValue>- </StyledSidebarSection>+ {aboutRows.length > 0 && (+ <StyledSection>+ <StyledSectionLabel>{t`About`}</StyledSectionLabel>+ {aboutRows.map(({ Icon, label, tooltip }) => (+ <StyledRow key={label}>+ <StyledRowIcon>+ <Icon size={theme.icon.size.sm} />+ </StyledRowIcon>+ <OverflowingTextWithTooltip+ text={label}+ tooltipContent={tooltip}+ alwaysShowTooltip={isDefined(tooltip)}+ />+ </StyledRow>+ ))}+ </StyledSection>)}- {hasDeveloperLinks && (- <StyledSidebarSection>- <StyledSidebarLabel>{t`Developers links`}</StyledSidebarLabel>- {isSafeUrl(developerLinks.websiteUrl) && (- <StyledLink- href={developerLinks.websiteUrl}- target="_blank"- rel="noopener noreferrer"- >- <IconWorld size={16} />- {t`Website`}- </StyledLink>- )}- {isSafeUrl(developerLinks.termsUrl) && (- <StyledLink- href={developerLinks.termsUrl}- target="_blank"- rel="noopener noreferrer"- >- <IconLink size={16} />- {t`Terms / Privacy`}- </StyledLink>- )}- {isNonEmptyString(developerLinks.emailSupport) && (- <StyledLink- href={`mailto:${developerLinks.emailSupport}`}- target="_blank"- rel="noopener noreferrer"- >- <IconMail size={16} />- {t`Email support`}- </StyledLink>- )}- {isSafeUrl(developerLinks.issueReportUrl) && (- <StyledLink- href={developerLinks.issueReportUrl}+ {resourceLinks.length > 0 && (+ <StyledSection>+ <StyledSectionLabel>{t`Resources`}</StyledSectionLabel>+ {resourceLinks.map(({ Icon, label, href }) => (+ <StyledResourceLink+ key={label}+ href={href}target="_blank"rel="noopener noreferrer">- <IconAlertTriangle size={16} />- {t`Report an issue`}- </StyledLink>- )}- {isSafeUrl(developerLinks.sourcePackageUrl) && (- <StyledLink- href={developerLinks.sourcePackageUrl}- target="_blank"- rel="noopener noreferrer"- >- <IconBrandNpm size={16} />- {t`Npm package`}- </StyledLink>- )}- </StyledSidebarSection>+ <StyledRowIcon>+ <Icon size={theme.icon.size.sm} />+ </StyledRowIcon>+ <OverflowingTextWithTooltip text={label} />+ </StyledResourceLink>+ ))}+ </StyledSection>)}</StyledSidebar>);diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationActionButton.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationActionButton.tsxnew file mode 100644index 00000000000..9cdc7da521c--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationActionButton.tsx@@ -0,0 +1,119 @@+import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModal';+import { useModal } from '@/ui/layout/modal/hooks/useModal';+import { t } from '@lingui/core/macro';+import { Trans } from '@lingui/react/macro';+import { useId } from 'react';+import { isDefined } from 'twenty-shared/utils';+import { IconCheck, IconDownload, IconTrash, IconUpload } from 'twenty-ui/icon';+import { Button } from 'twenty-ui/primitives/input';++type SettingsApplicationActionButtonProps = {+ isInstalled: boolean;+ canInstallMarketplaceApps?: boolean;+ onInstall?: () => void;+ isInstalling?: boolean;+ hasUpdate?: boolean;+ latestAvailableVersion?: string;+ onUpgrade?: () => void;+ isUpgrading?: boolean;+ canBeUninstalled?: boolean;+ onUninstall?: () => void;+ isUninstalling?: boolean;+};++export const SettingsApplicationActionButton = ({+ isInstalled,+ canInstallMarketplaceApps,+ onInstall,+ isInstalling,+ hasUpdate,+ latestAvailableVersion,+ onUpgrade,+ isUpgrading,+ canBeUninstalled,+ onUninstall,+ isUninstalling,+}: SettingsApplicationActionButtonProps) => {+ const { openModal } = useModal();+ const uninstallModalId = useId();++ const confirmationValue = t`yes`;++ if (!canInstallMarketplaceApps) {+ return null;+ }++ if (!isInstalled || isInstalling) {+ return (+ <Button+ Icon={IconDownload}+ title={isInstalling ? t`Installing...` : t`Install`}+ variant="primary"+ accent="blue"+ size="small"+ onClick={onInstall}+ disabled={isInstalling}+ />+ );+ }++ if (hasUpdate) {+ return (+ <Button+ Icon={IconUpload}+ title={+ isUpgrading+ ? t`Upgrading...`+ : t`Upgrade to ${latestAvailableVersion ?? ''}`+ }+ variant="secondary"+ accent="blue"+ size="small"+ onClick={onUpgrade}+ disabled={isUpgrading}+ />+ );+ }++ if (canBeUninstalled && isDefined(onUninstall)) {+ return (+ <>+ <Button+ Icon={IconTrash}+ title={isUninstalling ? t`Uninstalling...` : t`Uninstall`}+ variant="secondary"+ accent="danger"+ size="small"+ onClick={() => openModal(uninstallModalId)}+ disabled={isUninstalling}+ />+ <ConfirmationModal+ confirmationPlaceholder={confirmationValue}+ confirmationValue={confirmationValue}+ modalInstanceId={uninstallModalId}+ title={t`Uninstall Application?`}+ subtitle={+ <Trans>+ Please type {`"${confirmationValue}"`} to confirm you want to+ uninstall this application.+ </Trans>+ }+ onConfirmClick={onUninstall}+ confirmButtonText={t`Uninstall`}+ loading={isUninstalling}+ />+ </>+ );+ }++ return (+ <Button+ Icon={IconCheck}+ title={t`Installed`}+ variant="secondary"+ accent="default"+ size="small"+ disabled+ />+ );+};diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotGallery.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotGallery.tsxindex 6d8ab07b920..75507e9efea 100644--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotGallery.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotGallery.tsx@@ -1,5 +1,8 @@+import { SettingsApplicationScreenshotLightbox } from '@/settings/applications/components/SettingsApplicationScreenshotLightbox';+import { useModal } from '@/ui/layout/modal/hooks/useModal';import { styled } from '@linaria/react';-import { useState } from 'react';+import { t } from '@lingui/core/macro';+import { useId, useState } from 'react';import { themeCssVariables } from 'twenty-ui/theme-constants';type SettingsApplicationScreenshotGalleryProps = {@@ -11,38 +14,38 @@ const StyledGalleryContainer = styled.div`display: flex;flex-direction: column;gap: ${themeCssVariables.spacing[2]};- margin-bottom: ${themeCssVariables.spacing[6]};min-width: 0;+ padding-bottom: ${themeCssVariables.spacing[4]};width: 100%;`;-const StyledScreenshotsContainer = styled.div`- align-items: center;- aspect-ratio: 8 / 5;+const StyledHeroButton = styled.button`+ aspect-ratio: 59 / 30;background-color: ${themeCssVariables.background.secondary};- border: 1px solid ${themeCssVariables.border.color.medium};+ border: none;border-radius: ${themeCssVariables.border.radius.md};- display: flex;- justify-content: center;+ cursor: pointer;overflow: hidden;+ padding: 0;+ width: 100%;`;-const StyledScreenshotImage = styled.img`+const StyledHeroImage = styled.img`+ display: block;height: 100%;- object-fit: contain;+ object-fit: cover;+ object-position: top center;width: 100%;`;-const StyledScreenshotThumbnails = styled.div`+const StyledThumbnails = styled.div`display: flex;gap: ${themeCssVariables.spacing[2]};min-width: 0;overflow-x: auto;`;-const StyledThumbnail = styled.div<{ isSelected?: boolean }>`- align-items: center;- aspect-ratio: 8 / 5;+const StyledThumbnail = styled.button<{ isSelected: boolean }>`background-color: ${themeCssVariables.background.secondary};border: 1px solid${({ isSelected }) =>@@ -51,10 +54,10 @@ const StyledThumbnail = styled.div<{ isSelected?: boolean }>`: themeCssVariables.border.color.medium};border-radius: ${themeCssVariables.border.radius.sm};cursor: pointer;- display: flex;- flex: 0 0 96px;- justify-content: center;+ flex: 0 0 88px;+ height: 56px;overflow: hidden;+ padding: 0;&:hover {border-color: ${themeCssVariables.color.blue};@@ -62,8 +65,9 @@ const StyledThumbnail = styled.div<{ isSelected?: boolean }>``;const StyledThumbnailImage = styled.img`+ display: block;height: 100%;- object-fit: contain;+ object-fit: cover;width: 100%;`;@@ -72,6 +76,8 @@ export const SettingsApplicationScreenshotGallery = ({displayName,}: SettingsApplicationScreenshotGalleryProps) => {const [selectedScreenshotIndex, setSelectedScreenshotIndex] = useState(0);+ const { openModal, closeModal } = useModal();+ const lightboxModalId = useId();if (screenshots.length === 0) {return null;@@ -81,26 +87,41 @@ export const SettingsApplicationScreenshotGallery = ({return (<StyledGalleryContainer>- <StyledScreenshotsContainer>- <StyledScreenshotImage+ <StyledHeroButton+ type="button"+ aria-label={t`View screenshot in full screen`}+ onClick={() => openModal(lightboxModalId)}+ >+ <StyledHeroImagesrc={screenshots[safeIndex]}alt={`${displayName} screenshot ${safeIndex + 1}`}/>- </StyledScreenshotsContainer>- <StyledScreenshotThumbnails>- {screenshots.slice(0, 6).map((screenshot, index) => (- <StyledThumbnail- key={index}- isSelected={index === selectedScreenshotIndex}- onClick={() => setSelectedScreenshotIndex(index)}- >- <StyledThumbnailImage- src={screenshot}- alt={`${displayName} thumbnail ${index + 1}`}- />- </StyledThumbnail>- ))}- </StyledScreenshotThumbnails>+ </StyledHeroButton>+ {screenshots.length > 1 && (+ <StyledThumbnails>+ {screenshots.map((screenshot, index) => (+ <StyledThumbnail+ key={index}+ type="button"+ isSelected={index === safeIndex}+ onClick={() => setSelectedScreenshotIndex(index)}+ >+ <StyledThumbnailImage+ src={screenshot}+ alt={`${displayName} thumbnail ${index + 1}`}+ />+ </StyledThumbnail>+ ))}+ </StyledThumbnails>+ )}+ <SettingsApplicationScreenshotLightbox+ modalInstanceId={lightboxModalId}+ screenshots={screenshots}+ displayName={displayName}+ selectedIndex={safeIndex}+ onSelectedIndexChange={setSelectedScreenshotIndex}+ onClose={() => closeModal(lightboxModalId)}+ /></StyledGalleryContainer>);};diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotLightbox.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotLightbox.tsxnew file mode 100644index 00000000000..355a6bfd870--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationScreenshotLightbox.tsx@@ -0,0 +1,148 @@+import { ModalStatefulWrapper } from '@/ui/layout/modal/components/ModalStatefulWrapper';+import { useHotkeysOnFocusedElement } from '@/ui/utilities/hotkey/hooks/useHotkeysOnFocusedElement';+import { styled } from '@linaria/react';+import { t } from '@lingui/core/macro';+import { Key } from 'ts-key-enum';+import { IconChevronLeft, IconChevronRight, IconX } from 'twenty-ui/icon';+import { FloatingIconButton } from 'twenty-ui/primitives/input';+import { themeCssVariables } from 'twenty-ui/theme-constants';++type SettingsApplicationScreenshotLightboxProps = {+ modalInstanceId: string;+ screenshots: string[];+ displayName: string;+ selectedIndex: number;+ onSelectedIndexChange: (index: number) => void;+ onClose: () => void;+};++const StyledContainer = styled.div`+ align-items: center;+ background: ${themeCssVariables.background.secondary};+ box-sizing: border-box;+ display: flex;+ flex-direction: column;+ gap: ${themeCssVariables.spacing[4]};+ height: 100%;+ justify-content: center;+ padding: ${themeCssVariables.spacing[16]};+ position: relative;+ width: 100%;+`;++const StyledImage = styled.img`+ display: block;+ max-height: 100%;+ max-width: 100%;+ min-height: 0;+ object-fit: contain;+`;++const StyledCounter = styled.div`+ color: ${themeCssVariables.font.color.tertiary};+ flex-shrink: 0;+ font-size: ${themeCssVariables.font.size.sm};+`;++const StyledCloseButton = styled.div`+ position: absolute;+ right: ${themeCssVariables.spacing[4]};+ top: ${themeCssVariables.spacing[4]};+`;++const StyledPreviousButton = styled.div`+ left: ${themeCssVariables.spacing[4]};+ position: absolute;+ top: 50%;+ transform: translateY(-50%);+`;++const StyledNextButton = styled.div`+ position: absolute;+ right: ${themeCssVariables.spacing[4]};+ top: 50%;+ transform: translateY(-50%);+`;++export const SettingsApplicationScreenshotLightbox = ({+ modalInstanceId,+ screenshots,+ displayName,+ selectedIndex,+ onSelectedIndexChange,+ onClose,+}: SettingsApplicationScreenshotLightboxProps) => {+ const screenshotCount = screenshots.length;+ const hasSeveralScreenshots = screenshotCount > 1;++ const showPrevious = () =>+ onSelectedIndexChange(+ (selectedIndex - 1 + screenshotCount) % screenshotCount,+ );++ const showNext = () =>+ onSelectedIndexChange((selectedIndex + 1) % screenshotCount);++ useHotkeysOnFocusedElement({+ keys: [Key.ArrowLeft],+ callback: showPrevious,+ focusId: modalInstanceId,+ dependencies: [selectedIndex, screenshotCount],+ });++ useHotkeysOnFocusedElement({+ keys: [Key.ArrowRight],+ callback: showNext,+ focusId: modalInstanceId,+ dependencies: [selectedIndex, screenshotCount],+ });++ return (+ <ModalStatefulWrapper+ modalInstanceId={modalInstanceId}+ size="fullscreen"+ padding="none"+ overlay="transparent"+ isClosable+ onClose={onClose}+ renderInDocumentBody+ >+ <StyledContainer>+ <StyledCloseButton>+ <FloatingIconButton+ Icon={IconX}+ ariaLabel={t`Close`}+ onClick={onClose}+ />+ </StyledCloseButton>+ {hasSeveralScreenshots && (+ <StyledPreviousButton>+ <FloatingIconButton+ Icon={IconChevronLeft}+ ariaLabel={t`Previous screenshot`}+ onClick={showPrevious}+ />+ </StyledPreviousButton>+ )}+ <StyledImage+ src={screenshots[selectedIndex]}+ alt={`${displayName} screenshot ${selectedIndex + 1}`}+ />+ {hasSeveralScreenshots && (+ <>+ <StyledNextButton>+ <FloatingIconButton+ Icon={IconChevronRight}+ ariaLabel={t`Next screenshot`}+ onClick={showNext}+ />+ </StyledNextButton>+ <StyledCounter>+ {selectedIndex + 1} / {screenshotCount}+ </StyledCounter>+ </>+ )}+ </StyledContainer>+ </ModalStatefulWrapper>+ );+};diff --git a/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationActionButton.stories.tsx b/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationActionButton.stories.tsxnew file mode 100644index 00000000000..ee98c675a51--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationActionButton.stories.tsx@@ -0,0 +1,41 @@+import { type Meta, type StoryObj } from '@storybook/react-vite';+import { fn } from 'storybook/test';++import { SettingsApplicationActionButton } from '@/settings/applications/components/SettingsApplicationActionButton';+import { ComponentDecorator } from 'twenty-ui/testing';+import { RootDecorator } from '~/testing/decorators/RootDecorator';++const meta: Meta<typeof SettingsApplicationActionButton> = {+ title: 'Modules/Settings/Applications/SettingsApplicationActionButton',+ component: SettingsApplicationActionButton,+ decorators: [RootDecorator, ComponentDecorator],+ args: {+ canInstallMarketplaceApps: true,+ onInstall: fn(),+ onUpgrade: fn(),+ onUninstall: fn(),+ },+};++export default meta;+type Story = StoryObj<typeof SettingsApplicationActionButton>;++export const Install: Story = {+ args: { isInstalled: false },+};++export const Installing: Story = {+ args: { isInstalled: false, isInstalling: true },+};++export const Upgrade: Story = {+ args: { isInstalled: true, hasUpdate: true, latestAvailableVersion: '2.1.0' },+};++export const Uninstall: Story = {+ args: { isInstalled: true, canBeUninstalled: true },+};++export const Installed: Story = {+ args: { isInstalled: true },+};diff --git a/packages/twenty-front/src/modules/settings/applications/components/__tests__/SettingsApplicationActionButton.test.tsx b/packages/twenty-front/src/modules/settings/applications/components/__tests__/SettingsApplicationActionButton.test.tsxnew file mode 100644index 00000000000..3449c85b258--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/components/__tests__/SettingsApplicationActionButton.test.tsx@@ -0,0 +1,128 @@+import { i18n } from '@lingui/core';+import { I18nProvider } from '@lingui/react';+import { render, screen, within } from '@testing-library/react';+import userEvent from '@testing-library/user-event';++import { SettingsApplicationActionButton } from '@/settings/applications/components/SettingsApplicationActionButton';++type RenderActionButtonOptions = {+ isInstalled?: boolean;+ canInstallMarketplaceApps?: boolean;+ onInstall?: () => void;+ isInstalling?: boolean;+ hasUpdate?: boolean;+ latestAvailableVersion?: string;+ onUpgrade?: () => void;+ canBeUninstalled?: boolean;+ onUninstall?: () => void;+};++const renderActionButton = ({+ isInstalled = false,+ canInstallMarketplaceApps = true,+ onInstall,+ isInstalling,+ hasUpdate,+ latestAvailableVersion,+ onUpgrade,+ canBeUninstalled,+ onUninstall,+}: RenderActionButtonOptions = {}) =>+ render(+ <I18nProvider i18n={i18n}>+ <SettingsApplicationActionButton+ isInstalled={isInstalled}+ canInstallMarketplaceApps={canInstallMarketplaceApps}+ onInstall={onInstall}+ isInstalling={isInstalling}+ hasUpdate={hasUpdate}+ latestAvailableVersion={latestAvailableVersion}+ onUpgrade={onUpgrade}+ canBeUninstalled={canBeUninstalled}+ onUninstall={onUninstall}+ />+ </I18nProvider>,+ );++describe('SettingsApplicationActionButton', () => {+ it('renders nothing without the applications permission', () => {+ const { container } = renderActionButton({+ canInstallMarketplaceApps: false,+ });++ expect(container).toBeEmptyDOMElement();+ });++ it('installs the application', async () => {+ const user = userEvent.setup();+ const onInstall = jest.fn();++ renderActionButton({ onInstall });++ await user.click(screen.getByRole('button', { name: /^Install\b/ }));++ expect(onInstall).toHaveBeenCalledTimes(1);+ });++ it('disables the button while installing', () => {+ renderActionButton({ isInstalling: true });++ expect(+ screen.getByRole('button', { name: /^Installing\b/ }),+ ).toBeDisabled();+ });++ it('offers the upgrade when a newer version is available', async () => {+ const user = userEvent.setup();+ const onUpgrade = jest.fn();++ renderActionButton({+ isInstalled: true,+ hasUpdate: true,+ latestAvailableVersion: '2.0.0',+ onUpgrade,+ });++ await user.click(+ screen.getByRole('button', { name: /^Upgrade to 2\.0\.0\b/ }),+ );++ expect(onUpgrade).toHaveBeenCalledTimes(1);+ });++ it('asks for confirmation before uninstalling', async () => {+ const user = userEvent.setup();+ const onUninstall = jest.fn();++ renderActionButton({+ isInstalled: true,+ canBeUninstalled: true,+ onUninstall,+ });++ await user.click(screen.getByRole('button', { name: /^Uninstall\b/ }));++ const confirmationDialog = await screen.findByRole('dialog');++ expect(+ within(confirmationDialog).getByText('Uninstall Application?'),+ ).toBeVisible();+ expect(onUninstall).not.toHaveBeenCalled();++ await user.type(+ within(confirmationDialog).getByPlaceholderText('yes'),+ 'yes',+ );+ await user.click(+ within(confirmationDialog).getByRole('button', { name: /^Uninstall\b/ }),+ );++ expect(onUninstall).toHaveBeenCalledTimes(1);+ });++ it('shows a disabled installed state when nothing else applies', () => {+ renderActionButton({ isInstalled: true });++ expect(screen.getByRole('button', { name: /^Installed\b/ })).toBeDisabled();+ });+});diff --git a/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getInstallCountEstimate.test.ts b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getInstallCountEstimate.test.tsnew file mode 100644index 00000000000..dfc91997bd7--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getInstallCountEstimate.test.ts@@ -0,0 +1,21 @@+import { getInstallCountEstimate } from '@/settings/applications/utils/getInstallCountEstimate';++describe('getInstallCountEstimate', () => {+ it('keeps counts under ten exact', () => {+ expect(getInstallCountEstimate(0)).toBeUndefined();+ expect(getInstallCountEstimate(9)).toBeUndefined();+ });++ it('rounds counts down to their order of magnitude', () => {+ expect(getInstallCountEstimate(47)).toBe(40);+ expect(getInstallCountEstimate(742)).toBe(700);+ expect(getInstallCountEstimate(1098)).toBe(1000);+ expect(getInstallCountEstimate(9803)).toBe(9000);+ expect(getInstallCountEstimate(12345)).toBe(10000);+ });++ it('keeps counts that are already round exact', () => {+ expect(getInstallCountEstimate(40)).toBeUndefined();+ expect(getInstallCountEstimate(1000)).toBeUndefined();+ });+});diff --git a/packages/twenty-front/src/modules/settings/applications/utils/getInstallCountEstimate.ts b/packages/twenty-front/src/modules/settings/applications/utils/getInstallCountEstimate.tsnew file mode 100644index 00000000000..d2fcaf1adda--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/utils/getInstallCountEstimate.ts@@ -0,0 +1,14 @@+export const getInstallCountEstimate = (+ installCount: number,+): number | undefined => {+ if (!Number.isInteger(installCount) || installCount < 10) {+ return undefined;+ }++ const orderOfMagnitude = 10 ** (String(installCount).length - 1);+ const estimate =+ Math.floor(installCount / orderOfMagnitude) * orderOfMagnitude;++ // "+40 installs" would misread as more than 40 when the count is exactly 40+ return estimate === installCount ? undefined : estimate;+};diff --git a/packages/twenty-front/src/modules/settings/components/SettingsPageContainer.tsx b/packages/twenty-front/src/modules/settings/components/SettingsPageContainer.tsxindex 1a468dbdb25..1438d2d5088 100644--- a/packages/twenty-front/src/modules/settings/components/SettingsPageContainer.tsx+++ b/packages/twenty-front/src/modules/settings/components/SettingsPageContainer.tsx@@ -29,6 +29,10 @@ const StyledSettingsPageContainer = styled.div<{isInSidePanel?: boolean;overflow?: 'auto' | 'visible';}>`+ --settings-page-container-padding-top: ${({ isInSidePanel }) =>+ isInSidePanel+ ? themeCssVariables.spacing[4]+ : themeCssVariables.spacing[6]};box-sizing: border-box;display: flex;flex-direction: column;@@ -36,10 +40,12 @@ const StyledSettingsPageContainer = styled.div<{margin: 0 auto;max-width: ${SETTINGS_CONTENT_MAX_WIDTH}px;overflow: ${({ overflow = 'auto' }) => overflow};- padding: ${({ isInSidePanel }) =>- isInSidePanel- ? `${themeCssVariables.spacing[4]} ${themeCssVariables.spacing[4]} ${themeCssVariables.spacing[8]}`- : `${themeCssVariables.spacing[6]} ${themeCssVariables.spacing[8]} ${themeCssVariables.spacing[8]}`};+ padding: var(--settings-page-container-padding-top)+ ${({ isInSidePanel }) =>+ isInSidePanel+ ? themeCssVariables.spacing[4]+ : themeCssVariables.spacing[8]}+ ${themeCssVariables.spacing[8]};padding-bottom: ${themeCssVariables.spacing[20]};width: ${({ width, isMobile }) => {if (isDefined(width)) {diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsxindex 6e00da5c73b..03aa31e1608 100644--- a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx+++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx@@ -5,9 +5,10 @@ import { useResolvedApplicationDescription } from '@/applications/hooks/useResolimport { isTwentyStandardApplication } from '@/applications/utils/isTwentyStandardApplication';import { isWorkspaceCustomApplication } from '@/applications/utils/isWorkspaceCustomApplication';import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';+import { useCopyMarketplaceAppLink } from '@/marketplace/hooks/useCopyMarketplaceAppLink';import { useInstallMarketplaceApp } from '@/marketplace/hooks/useInstallMarketplaceApp';import { useUpgradeApplication } from '@/marketplace/hooks/useUpgradeApplication';-import { objectMetadataItemsSelector } from '@/object-metadata/states/objectMetadataItemsSelector';+import { SettingsApplicationActionButton } from '@/settings/applications/components/SettingsApplicationActionButton';import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';import { useUninstallApplication } from '@/settings/applications/hooks/useUninstallApplication';import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFlag';@@ -19,7 +20,7 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useimport { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';import { useQuery } from '@apollo/client/react';import { t } from '@lingui/core/macro';-import { useCallback, useMemo } from 'react';+import { useCallback } from 'react';import { useParams } from 'react-router-dom';import { type Manifest } from 'twenty-shared/application';import { SettingsPath } from 'twenty-shared/types';@@ -28,11 +29,7 @@ import { InlineBanner } from 'twenty-ui/primitives/feedback';import {IconAlertTriangle,IconBox,- IconBrandTypescript,- IconGraph,- IconInfoCircle,- IconLego,- IconListDetails,+ IconInfoSquareRounded,IconLock,IconSettings,} from 'twenty-ui/icon';@@ -131,6 +128,7 @@ export const SettingsApplicationDetails = () => {const screenshots = getScreenshots();const { upgrade, isUpgrading } = useUpgradeApplication();+ const { copyMarketplaceAppLink } = useCopyMarketplaceAppLink();const { isInstalling } = useInstallMarketplaceApp({universalIdentifier: application?.universalIdentifier,@@ -173,62 +171,8 @@ export const SettingsApplicationDetails = () => {onCompleted: handleUninstallCompleted,});- const objectMetadataItems = useAtomStateValue(objectMetadataItemsSelector);-- const applicationObjectIds = useMemo(- () => new Set((application?.objects ?? []).map((obj) => obj.id)),- [application?.objects],- );-- const appFieldExtensionsCount = useMemo(() => {- if (!isDefined(application)) return 0;-- return objectMetadataItems- .filter((item) => !applicationObjectIds.has(item.id))- .reduce(- (total, item) =>- total +- item.fields.filter((field) => field.applicationId === application.id)- .length,- 0,- );- }, [objectMetadataItems, applicationObjectIds, application]);-- const contentEntries = [- {- icon: IconBox,- count: (application?.objects ?? []).length,- one: t`object`,- many: t`objects`,- },- {- icon: IconListDetails,- count: appFieldExtensionsCount,- one: t`field`,- many: t`fields`,- },- {- icon: IconBrandTypescript,- count: (application?.logicFunctions ?? []).length,- one: t`logic function`,- many: t`logic functions`,- },- {- icon: IconGraph,- count: (application?.frontComponents ?? []).length,- one: t`front component`,- many: t`front components`,- },- {- icon: IconLego,- count: (application?.agents ?? []).length,- one: t`agent`,- many: t`agents`,- },- ];-const tabs: SingleTabProps[] = [- { id: 'about', title: t`About`, Icon: IconInfoCircle },+ { id: 'about', title: t`About`, Icon: IconInfoSquareRounded },{ id: 'content', title: t`Content`, Icon: IconBox },{id: 'permissions',@@ -279,16 +223,17 @@ export const SettingsApplicationDetails = () => {case 'about':return (<SettingsApplicationDetailAboutTab+ applicationId={application.id}+ logoUrl={application.logoUrl}displayName={displayName}description={description}aboutDescription={detail?.aboutDescription ?? undefined}pricingDescription={detail?.pricingDescription ?? undefined}screenshots={screenshots}author={detail?.author ?? undefined}+ version={currentVersion ?? undefined}+ installCount={detail?.installCount}category={detail?.category ?? undefined}- contentEntries={contentEntries}- currentVersion={currentVersion ?? undefined}- latestAvailableVersion={latestAvailableVersion ?? undefined}developerLinks={isDefined(detail)? {@@ -299,15 +244,11 @@ export const SettingsApplicationDetails = () => {}: undefined}- isInstalled={true}- isInstalling={isInstalling}- canInstallMarketplaceApps={canInstallMarketplaceApps}- hasUpdate={hasUpdate}- onUpgrade={handleUpgrade}- isUpgrading={isUpgrading}- canBeUninstalled={application.canBeUninstalled}- onUninstall={uninstall}- isUninstalling={isUninstalling}+ onShare={+ isDefined(detail)+ ? () => copyMarketplaceAppLink(detail.universalIdentifier)+ : undefined+ }/>);case 'content':@@ -362,11 +303,27 @@ export const SettingsApplicationDetails = () => {href: getSettingsPath(SettingsPath.General),},{- children: t`Applications`,+ children: t`Apps`,href: getSettingsPath(SettingsPath.Applications),},{ children: displayName },]}+ actionButton={+ isDefined(application) ? (+ <SettingsApplicationActionButton+ isInstalled+ canInstallMarketplaceApps={canInstallMarketplaceApps}+ isInstalling={isInstalling}+ hasUpdate={hasUpdate}+ latestAvailableVersion={latestAvailableVersion ?? undefined}+ onUpgrade={handleUpgrade}+ isUpgrading={isUpgrading}+ canBeUninstalled={application.canBeUninstalled}+ onUninstall={uninstall}+ isUninstalling={isUninstalling}+ />+ ) : undefined+ }secondaryBar={<SettingsTabBartabs={tabs}@@ -374,7 +331,7 @@ export const SettingsApplicationDetails = () => {/>}>- <SettingsPageContainer>+ <SettingsPageContainer overflow="visible">{isApplicationStopped && (<InlineBannercolor="danger"diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsxindex 42f9acd61e3..a2d6ce19f28 100644--- a/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx+++ b/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx@@ -1,34 +1,30 @@-import { CurrentApplicationContext } from '@/applications/contexts/CurrentApplicationContext';import { AppChip } from '@/applications/components/AppChip';+import { CurrentApplicationContext } from '@/applications/contexts/CurrentApplicationContext';import { SettingsApplicationInstallPermissionValidationModal } from '@/marketplace/components/SettingsApplicationInstallPermissionValidationModal';+import { useCopyMarketplaceAppLink } from '@/marketplace/hooks/useCopyMarketplaceAppLink';import { useInstallMarketplaceAppWithPermissionValidation } from '@/marketplace/hooks/useInstallMarketplaceAppWithPermissionValidation';import { useUpgradeApplication } from '@/marketplace/hooks/useUpgradeApplication';import { getMarketplaceAppDefaultRoleManifest } from '@/marketplace/utils/getMarketplaceAppDefaultRoleManifest';+import { SettingsApplicationActionButton } from '@/settings/applications/components/SettingsApplicationActionButton';import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';-import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFlag';+import { SettingsSectionSkeletonLoader } from '@/settings/components/SettingsSectionSkeletonLoader';import { SettingsPageLayout } from '@/settings/components/layout/SettingsPageLayout';import { SettingsTabBar } from '@/settings/components/layout/SettingsTabBar';+import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFlag';import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTabIdComponentState';import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';import { useQuery } from '@apollo/client/react';import { t } from '@lingui/core/macro';import { useCallback } from 'react';import { useParams } from 'react-router-dom';-import { useNavigateSettings } from '~/hooks/useNavigateSettings';import { type Manifest } from 'twenty-shared/application';import { SettingsPath } from 'twenty-shared/types';import { getSettingsPath, isDefined } from 'twenty-shared/utils';import { InlineBanner } from 'twenty-ui/primitives/feedback';import {- IconBook,IconBox,- IconBrandTypescript,- IconCommand,IconEyeOff,- IconInfoCircle,- IconLego,- IconLayoutGridAdd,- IconListDetails,+ IconInfoSquareRounded,IconLock,} from 'twenty-ui/icon';import {@@ -38,6 +34,7 @@ import {FindOneApplicationByUniversalIdentifierDocument,PermissionFlagType,} from '~/generated-metadata/graphql';+import { useNavigateSettings } from '~/hooks/useNavigateSettings';import { SettingsApplicationDetailAboutTab } from '~/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab';import { SettingsApplicationDetailContentTab } from '~/pages/settings/applications/tabs/SettingsApplicationDetailContentTab';import { SettingsApplicationPermissionsTab } from '~/pages/settings/applications/tabs/SettingsApplicationPermissionsTab';@@ -66,6 +63,7 @@ export const SettingsAvailableApplicationDetails = () => {onCompleted: handleInstallCompleted,});const { upgrade, isUpgrading } = useUpgradeApplication();+ const { copyMarketplaceAppLink } = useCopyMarketplaceAppLink();const canInstallMarketplaceApps = useHasPermissionFlag(PermissionFlagType.APPLICATIONS,@@ -96,8 +94,7 @@ export const SettingsAvailableApplicationDetails = () => {| Manifest| undefined;- const displayName = detail?.name ?? '';- const description = detail?.description ?? '';+ const displayName = detail?.name ?? t`Application details`;const currentVersion = application?.version;const latestAvailableVersion = detail?.latestAvailableVersion;@@ -132,103 +129,37 @@ export const SettingsAvailableApplicationDetails = () => {});};- const contentEntries = [- {- icon: IconBox,- count: (manifest?.objects ?? []).length,- one: t`object`,- many: t`objects`,- },- {- icon: IconListDetails,- count: (manifest?.fields ?? []).length,- one: t`field`,- many: t`fields`,- },- {- icon: IconBrandTypescript,- count: (manifest?.logicFunctions ?? []).length,- one: t`logic function`,- many: t`logic functions`,- },- {- icon: IconLayoutGridAdd,- count: (manifest?.frontComponents ?? []).filter(- (fc) =>- !(manifest?.commandMenuItems ?? [])- .map((cm) => cm.frontComponentUniversalIdentifier)- .includes(fc.universalIdentifier),- ).length,- one: t`widget`,- many: t`widgets`,- },- {- icon: IconCommand,- count: (manifest?.frontComponents ?? []).filter(- (fc) =>- !fc.isHeadless &&- (manifest?.commandMenuItems ?? [])- .map((cm) => cm.frontComponentUniversalIdentifier)- .includes(fc.universalIdentifier),- ).length,- one: t`command`,- many: t`commands`,- },- {- icon: IconLock,- count: (detail?.roles ?? []).filter(- (role) =>- role.universalIdentifier !== detail?.defaultRoleUniversalIdentifier,- ).length,- one: t`role`,- many: t`roles`,- },- {- icon: IconBook,- count: (manifest?.skills ?? []).length,- one: t`skill`,- many: t`skills`,- },- {- icon: IconLego,- count: (manifest?.agents ?? []).length,- one: t`agent`,- many: t`agents`,- },- ];-const activeTabId = useAtomComponentStateValue(activeTabIdComponentState,AVAILABLE_APPLICATION_DETAIL_ID,);const tabs = [- { id: 'about', title: t`About`, Icon: IconInfoCircle },+ { id: 'about', title: t`About`, Icon: IconInfoSquareRounded },{ id: 'content', title: t`Content`, Icon: IconBox },{ id: 'permissions', title: t`Permissions`, Icon: IconLock },];const renderActiveTabContent = () => {- if (!detail) return null;+ if (!isDefined(detail)) {+ return <SettingsSectionSkeletonLoader />;+ }switch (activeTabId) {case 'about':return (<SettingsApplicationDetailAboutTab+ applicationId={application?.id}+ logoUrl={detail.logoUrl}displayName={displayName}- description={description}+ description={detail.description ?? undefined}aboutDescription={detail.aboutDescription ?? undefined}pricingDescription={detail.pricingDescription ?? undefined}screenshots={detail.galleryImages}- author={detail.author ?? 'Unknown'}+ author={detail.author ?? undefined}+ version={currentVersion ?? latestAvailableVersion ?? undefined}+ installCount={detail.installCount}category={detail.category ?? undefined}- contentEntries={contentEntries}- currentVersion={- isAlreadyInstalled- ? (application.version ?? undefined)- : undefined- }- latestAvailableVersion={detail.latestAvailableVersion ?? '0.0.0'}developerLinks={{websiteUrl: detail.websiteUrl ?? undefined,termsUrl: detail.termsUrl ?? undefined,@@ -236,13 +167,7 @@ export const SettingsAvailableApplicationDetails = () => {issueReportUrl: detail.issueReportUrl ?? undefined,sourcePackageUrl,}}- isInstalled={isAlreadyInstalled}- canInstallMarketplaceApps={canInstallMarketplaceApps}- onInstall={requestInstall}- isInstalling={isInstalling}- hasUpdate={hasUpdate}- onUpgrade={handleUpgrade}- isUpgrading={isUpgrading}+ onShare={() => copyMarketplaceAppLink(detail.universalIdentifier)}/>);case 'content':@@ -270,10 +195,6 @@ export const SettingsAvailableApplicationDetails = () => {}};- if (!detail) {- return null;- }-return (<CurrentApplicationContext.Provider value={application?.id ?? null}><SettingsPageLayout@@ -283,22 +204,38 @@ export const SettingsAvailableApplicationDetails = () => {href: getSettingsPath(SettingsPath.General),},{- children: t`Applications`,+ children: t`Apps`,href: getSettingsPath(SettingsPath.Applications),},{ children: displayName },]}title={displayName}icon={- <AppChip- applicationId={application?.id}- logoUrl={detail?.logoUrl}- fallbackApplicationData={{- name: displayName,- }}- size="md"- chipOnly- />+ isDefined(detail) ? (+ <AppChip+ applicationId={application?.id}+ logoUrl={detail.logoUrl}+ fallbackApplicationData={{+ name: displayName,+ }}+ size="md"+ chipOnly+ />+ ) : undefined+ }+ actionButton={+ isDefined(detail) ? (+ <SettingsApplicationActionButton+ isInstalled={isAlreadyInstalled}+ canInstallMarketplaceApps={canInstallMarketplaceApps}+ onInstall={requestInstall}+ isInstalling={isInstalling}+ hasUpdate={hasUpdate}+ latestAvailableVersion={latestAvailableVersion ?? undefined}+ onUpgrade={handleUpgrade}+ isUpgrading={isUpgrading}+ />+ ) : undefined}secondaryBar={<SettingsTabBar@@ -307,7 +244,7 @@ export const SettingsAvailableApplicationDetails = () => {/>}>- <SettingsPageContainer>+ <SettingsPageContainer overflow="visible">{isUnlisted && (<InlineBannerLeftIcon={IconEyeOff}diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsxindex c4af026eefe..26f796b43d2 100644--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx@@ -1,75 +1,107 @@import { LazyMarkdownRenderer } from '@/ai/components/LazyMarkdownRenderer';-import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModal';-import { useModal } from '@/ui/layout/modal/hooks/useModal';-import { styled } from '@linaria/react';-import { t } from '@lingui/core/macro';-import { Trans } from '@lingui/react/macro';-import { isDefined } from 'twenty-shared/utils';-import { IconCheck, IconDownload, IconTrash, IconUpload } from 'twenty-ui/icon';-import { Button } from 'twenty-ui/primitives/input';-import { Section } from 'twenty-ui/primitives/layout';-import { themeCssVariables } from 'twenty-ui/theme-constants';import {- type ContentEntry,type DeveloperLinks,SettingsApplicationAboutSidebar,} from '@/settings/applications/components/SettingsApplicationAboutSidebar';import { SettingsApplicationScreenshotGallery } from '@/settings/applications/components/SettingsApplicationScreenshotGallery';--const UNINSTALL_APPLICATION_MODAL_ID = 'uninstall-application-modal';+import { styled } from '@linaria/react';+import { t } from '@lingui/core/macro';+import { isNonEmptyString } from '@sniptt/guards';+import { isDefined } from 'twenty-shared/utils';+import { themeCssVariables } from 'twenty-ui/theme-constants';+import { getApplicationDescriptionSummary } from '~/pages/settings/applications/utils/getApplicationDescriptionSummary';type SettingsApplicationDetailAboutTabProps = {+ applicationId?: string | null;+ logoUrl?: string | null;displayName: string;description?: string;aboutDescription?: string;pricingDescription?: string;screenshots?: string[];author?: string;+ version?: string;+ installCount?: number;category?: string;- contentEntries?: ContentEntry[];- currentVersion?: string;- latestAvailableVersion?: string;developerLinks?: DeveloperLinks;- isInstalled: boolean;- canInstallMarketplaceApps?: boolean;- onInstall?: () => void;- isInstalling?: boolean;- hasUpdate?: boolean;- onUpgrade?: () => void;- isUpgrading?: boolean;- canBeUninstalled?: boolean;- onUninstall?: () => void;- isUninstalling?: boolean;+ onShare?: () => void;};+const SIDEBAR_COLUMN_MIN_WIDTH_PX = 160;+const MAIN_COLUMN_WIDTH_PX = 472;+const COLUMN_GAP_PX = 16;+const TWO_COLUMN_LAYOUT_MIN_WIDTH_PX =+ SIDEBAR_COLUMN_MIN_WIDTH_PX + COLUMN_GAP_PX + MAIN_COLUMN_WIDTH_PX;+const StyledContentContainer = styled.div`+ align-items: flex-start;+ container-name: application-about;+ container-type: inline-size;display: flex;- gap: ${themeCssVariables.spacing[4]};+ flex-wrap: wrap;+ gap: ${COLUMN_GAP_PX}px;+ width: 100%;`;-const StyledMainContent = styled.div`- flex: 1;+// The sidebar only sticks while both columns fit side by side: once they+// stack, a sticky sidebar would cover the description below it. It sticks+// at the page's top padding so it does not jump when scrolling starts.+const StyledSidebarColumn = styled.div`+ flex: 1 1 0;+ min-width: ${SIDEBAR_COLUMN_MIN_WIDTH_PX}px;++ @container application-about (min-width: ${TWO_COLUMN_LAYOUT_MIN_WIDTH_PX}px) {+ position: sticky;+ top: var(--settings-page-container-padding-top, 0);+ }+`;++const StyledMainColumn = styled.div`+ display: flex;+ flex: 0 0 ${MAIN_COLUMN_WIDTH_PX}px;+ flex-direction: column;+ gap: ${themeCssVariables.spacing[3]};+ max-width: 100%;min-width: 0;- overflow: hidden;+ padding-bottom: ${themeCssVariables.spacing[4]};`;const StyledMarkdownContent = styled.div`.markdown-section {+ color: ${themeCssVariables.font.color.secondary};+ font-size: ${themeCssVariables.font.size.md};+ line-height: 1.4;margin: 0;}+ .markdown-section h1,+ .markdown-section h2 {+ color: ${themeCssVariables.font.color.primary};+ font-size: ${themeCssVariables.font.size.xl};+ line-height: 1.2;+ margin-bottom: ${themeCssVariables.spacing[2]};+ margin-top: ${themeCssVariables.spacing[6]};+ }++ .markdown-section h3,.markdown-section h4 {+ color: ${themeCssVariables.font.color.primary};font-size: ${themeCssVariables.font.size.lg};font-weight: ${themeCssVariables.font.weight.semiBold};- line-height: 1.35;+ line-height: 1.2;margin-bottom: ${themeCssVariables.spacing[2]};margin-top: ${themeCssVariables.spacing[5]};}- .markdown-section ul {+ .markdown-section > :first-child {+ margin-top: 0;+ }++ .markdown-section ul,+ .markdown-section ol {margin-bottom: ${themeCssVariables.spacing[3]};margin-top: ${themeCssVariables.spacing[2]};- padding-left: ${themeCssVariables.spacing[4]};+ padding-left: ${themeCssVariables.spacing[5]};}.markdown-section li {@@ -96,145 +128,73 @@ const StyledMarkdownContent = styled.div``;export const SettingsApplicationDetailAboutTab = ({+ applicationId,+ logoUrl,displayName,description,aboutDescription,pricingDescription,screenshots,author,+ version,+ installCount,category,- contentEntries,- currentVersion,- latestAvailableVersion,developerLinks,- isInstalled,- canInstallMarketplaceApps,- onInstall,- isInstalling,- hasUpdate,- onUpgrade,- isUpgrading,- canBeUninstalled,- onUninstall,- isUninstalling,+ onShare,}: SettingsApplicationDetailAboutTabProps) => {- const { openModal } = useModal();-const hasScreenshots = isDefined(screenshots) && screenshots.length > 0;- const markdownText =- aboutDescription ??- description ??- t`No description available for this application`;-- const getActionButton = () => {- if (!canInstallMarketplaceApps) {- return null;- }+ const descriptionSummary = getApplicationDescriptionSummary(description);- if (!isInstalled || isInstalling) {- return (- <Button- Icon={IconDownload}- title={isInstalling ? t`Installing...` : t`Install`}- variant={'primary'}- accent={'blue'}- onClick={onInstall}- disabled={isInstalling}- />- );+ // The sidebar shows the first paragraph of the description, so the content+ // column only renders the description itself when it holds more than that.+ const getMarkdownText = () => {+ if (isNonEmptyString(aboutDescription)) {+ return aboutDescription;}- if (hasUpdate) {- return (- <Button- Icon={IconUpload}- title={- isUpgrading- ? t`Upgrading...`- : t`Upgrade to ${latestAvailableVersion ?? ''}`- }- variant={'secondary'}- accent={'blue'}- onClick={onUpgrade}- disabled={isUpgrading}- />- );+ if (isNonEmptyString(description)) {+ return description.trim() === descriptionSummary+ ? undefined+ : description;}- if (canBeUninstalled) {- return (- <Button- Icon={IconTrash}- title={isUninstalling ? t`Uninstalling...` : t`Uninstall`}- variant={'secondary'}- accent={'danger'}- onClick={() => openModal(UNINSTALL_APPLICATION_MODAL_ID)}- disabled={isUninstalling}- />- );- }-- return (- <Button- Icon={IconCheck}- title={t`Installed`}- variant={'secondary'}- accent={'default'}- disabled={true}- />- );+ return t`No description available for this application`;};- const confirmationValue = t`yes`;+ const markdownText = getMarkdownText();return (- <>- {hasScreenshots && (- <SettingsApplicationScreenshotGallery- screenshots={screenshots}- displayName={displayName}- />- )}-- <StyledContentContainer>- <StyledMainContent>- <Section>- <StyledMarkdownContent>- <LazyMarkdownRenderer text={markdownText} />- </StyledMarkdownContent>- </Section>- </StyledMainContent>-+ <StyledContentContainer>+ <StyledSidebarColumn><SettingsApplicationAboutSidebar- actionButton={getActionButton()}- pricingDescription={pricingDescription}+ applicationId={applicationId}+ logoUrl={logoUrl}+ displayName={displayName}+ description={descriptionSummary}+ onShare={onShare}author={author}+ version={version}+ installCount={installCount}category={category}- contentEntries={contentEntries}- currentVersion={currentVersion}- latestAvailableVersion={latestAvailableVersion}+ pricingDescription={pricingDescription}developerLinks={developerLinks}/>- </StyledContentContainer>-- {canBeUninstalled && isDefined(onUninstall) && (- <ConfirmationModal- confirmationPlaceholder={confirmationValue}- confirmationValue={confirmationValue}- modalInstanceId={UNINSTALL_APPLICATION_MODAL_ID}- title={t`Uninstall Application?`}- subtitle={- <Trans>- Please type {`"${confirmationValue}"`} to confirm you want to- uninstall this application.- </Trans>- }- onConfirmClick={onUninstall}- confirmButtonText={t`Uninstall`}- loading={isUninstalling}- />- )}- </>+ </StyledSidebarColumn>++ <StyledMainColumn>+ {hasScreenshots && (+ <SettingsApplicationScreenshotGallery+ screenshots={screenshots}+ displayName={displayName}+ />+ )}+ {isDefined(markdownText) && (+ <StyledMarkdownContent>+ <LazyMarkdownRenderer text={markdownText} noImage />+ </StyledMarkdownContent>+ )}+ </StyledMainColumn>+ </StyledContentContainer>);};diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationDetailAboutTab.test.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationDetailAboutTab.test.tsxnew file mode 100644index 00000000000..36e89aeb109--- /dev/null+++ b/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationDetailAboutTab.test.tsx@@ -0,0 +1,240 @@+import { i18n } from '@lingui/core';+import { I18nProvider } from '@lingui/react';+import { render, screen, waitFor, within } from '@testing-library/react';+import userEvent from '@testing-library/user-event';++import { type DeveloperLinks } from '@/settings/applications/components/SettingsApplicationAboutSidebar';+import { SettingsApplicationDetailAboutTab } from '~/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab';++jest.mock('@/ai/components/LazyMarkdownRenderer', () => ({+ LazyMarkdownRenderer: ({+ text,+ noImage,+ }: {+ text: string;+ noImage?: boolean;+ }) => (+ <div data-testid="markdown-renderer" data-no-image={noImage}>+ {text}+ </div>+ ),+}));++jest.mock('@/applications/components/AppChip', () => ({+ AppChip: () => <div data-testid="app-chip" />,+}));++const SHORT_DESCRIPTION =+ 'The Stripe app lets you import customer data into your CRM.';+const ABOUT_DESCRIPTION =+ '## About\n\nEnhance your workspace with automated data intelligence.';+const DEVELOPER_LINKS: DeveloperLinks = {+ websiteUrl: 'https://stripe.com',+ termsUrl: 'https://stripe.com/terms',+ emailSupport: '[email protected]',+ issueReportUrl: 'https://github.com/stripe/issues',+ sourcePackageUrl: 'https://www.npmjs.com/package/stripe-app',+};++type RenderAboutTabOptions = {+ aboutDescription?: string | null;+ description?: string | null;+ developerLinks?: DeveloperLinks;+ installCount?: number;+ onShare?: (() => void) | null;+};++// null opts out of a default, undefined keeps it.+const renderAboutTab = ({+ aboutDescription = ABOUT_DESCRIPTION,+ description = SHORT_DESCRIPTION,+ developerLinks = DEVELOPER_LINKS,+ installCount = 7,+ onShare = jest.fn(),+}: RenderAboutTabOptions = {}) =>+ render(+ <I18nProvider i18n={i18n}>+ <SettingsApplicationDetailAboutTab+ displayName="Stripe"+ description={description ?? undefined}+ aboutDescription={aboutDescription ?? undefined}+ screenshots={[+ 'https://cdn.example.com/screenshot-1.png',+ 'https://cdn.example.com/screenshot-2.png',+ ]}+ author="Twenty"+ version="2.0"+ installCount={installCount}+ category="Finance"+ pricingDescription="Free"+ developerLinks={developerLinks}+ onShare={onShare ?? undefined}+ />+ </I18nProvider>,+ );++describe('SettingsApplicationDetailAboutTab', () => {+ it('hides the install count when nobody installed the application', () => {+ renderAboutTab({ installCount: 0 });++ expect(screen.queryByText(/installs?$/)).not.toBeInTheDocument();+ });++ it('estimates large install counts and reveals the exact count on hover', async () => {+ renderAboutTab({ installCount: 1098 });++ const estimatedInstallCount = screen.getByText('+1,000 installs');++ expect(estimatedInstallCount).toBeVisible();+ expect(screen.queryByText('1,098 installs')).not.toBeInTheDocument();++ await userEvent.setup().hover(estimatedInstallCount);++ expect(await screen.findByText('1,098 installs')).toBeVisible();+ });++ it('renders the application identity, metadata and resources', () => {+ renderAboutTab();++ expect(screen.getByText('Stripe')).toBeVisible();+ expect(screen.getByText(SHORT_DESCRIPTION)).toBeVisible();+ expect(screen.getByText('by Twenty')).toBeVisible();+ expect(screen.getByText('2.0')).toBeVisible();+ expect(screen.getByText('7 installs')).toBeVisible();+ expect(screen.getByText('Finance')).toBeVisible();+ expect(screen.getByText('Free')).toBeVisible();++ expect(screen.getByRole('link', { name: 'Website' })).toHaveAttribute(+ 'href',+ 'https://stripe.com',+ );+ expect(+ screen.getByRole('link', { name: 'Terms / Privacy' }),+ ).toHaveAttribute('href', 'https://stripe.com/terms');+ expect(screen.getByRole('link', { name: 'Email support' })).toHaveAttribute(+ 'href',+ 'mailto:[email protected]',+ );+ expect(+ screen.getByRole('link', { name: 'Report an issue' }),+ ).toHaveAttribute('href', 'https://github.com/stripe/issues');+ expect(screen.getByRole('link', { name: 'Npm package' })).toHaveAttribute(+ 'href',+ 'https://www.npmjs.com/package/stripe-app',+ );++ expect(screen.getByTestId('markdown-renderer')).toHaveTextContent(+ 'Enhance your workspace with automated data intelligence.',+ );+ expect(screen.getByTestId('markdown-renderer')).toHaveAttribute(+ 'data-no-image',+ 'true',+ );+ });++ it('shows the selected screenshot and lets the user switch it', async () => {+ const user = userEvent.setup();++ renderAboutTab();++ expect(screen.getByAltText('Stripe screenshot 1')).toHaveAttribute(+ 'src',+ 'https://cdn.example.com/screenshot-1.png',+ );++ await user.click(screen.getByAltText('Stripe thumbnail 2'));++ expect(screen.getByAltText('Stripe screenshot 2')).toHaveAttribute(+ 'src',+ 'https://cdn.example.com/screenshot-2.png',+ );+ });++ it('opens the screenshots in full screen and navigates between them', async () => {+ const user = userEvent.setup();++ renderAboutTab();++ await user.click(+ screen.getByRole('button', { name: 'View screenshot in full screen' }),+ );++ const lightbox = await screen.findByRole('dialog');++ expect(+ within(lightbox).getByAltText('Stripe screenshot 1'),+ ).toHaveAttribute('src', 'https://cdn.example.com/screenshot-1.png');++ await user.click(+ within(lightbox).getByRole('button', { name: 'Next screenshot' }),+ );++ expect(+ within(lightbox).getByAltText('Stripe screenshot 2'),+ ).toHaveAttribute('src', 'https://cdn.example.com/screenshot-2.png');++ await user.click(within(lightbox).getByRole('button', { name: 'Close' }));++ await waitFor(() =>+ expect(screen.queryByRole('dialog')).not.toBeInTheDocument(),+ );+ });++ it('calls onShare when clicking the share button', async () => {+ const user = userEvent.setup();+ const onShare = jest.fn();++ renderAboutTab({ onShare });++ await user.click(screen.getByRole('button', { name: /^Share\b/ }));++ expect(onShare).toHaveBeenCalledTimes(1);+ });++ it('hides the share button when the application cannot be shared', () => {+ renderAboutTab({ onShare: null });++ expect(+ screen.queryByRole('button', { name: /^Share\b/ }),+ ).not.toBeInTheDocument();+ });++ it('skips resource links that are not http, https or mailto', () => {+ renderAboutTab({ developerLinks: { websiteUrl: 'ftp://stripe.com' } });++ expect(screen.queryByText('Resources')).not.toBeInTheDocument();+ expect(+ screen.queryByRole('link', { name: 'Website' }),+ ).not.toBeInTheDocument();+ });++ it('does not repeat the short description as the about content', () => {+ renderAboutTab({ aboutDescription: null });++ expect(screen.getByText(SHORT_DESCRIPTION)).toBeVisible();+ expect(screen.queryByTestId('markdown-renderer')).not.toBeInTheDocument();+ });++ it('renders a long description as the about content and summarizes it in the sidebar', () => {+ renderAboutTab({+ aboutDescription: null,+ description:+ 'Host your workspace customizations.\n\n#### What it includes\n\nEverything you build on top of the standard app.',+ });++ expect(+ screen.getByText('Host your workspace customizations.'),+ ).toBeVisible();+ expect(screen.getByTestId('markdown-renderer')).toHaveTextContent(+ 'What it includes',+ );+ });++ it('shows a placeholder when the application has no description at all', () => {+ renderAboutTab({ aboutDescription: null, description: null });++ expect(screen.getByTestId('markdown-renderer')).toHaveTextContent(+ 'No description available for this application',+ );+ });+});diff --git a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.ts b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.tsindex e7aef34267e..4581ba75f84 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/dtos/marketplace-app-detail.dto.ts@@ -1,6 +1,12 @@-import { Field, ObjectType } from '@nestjs/graphql';--import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator';+import { Field, Int, ObjectType } from '@nestjs/graphql';++import {+ IsBoolean,+ IsInt,+ IsNotEmpty,+ IsOptional,+ IsString,+} from 'class-validator';import { GraphQLJSON } from 'graphql-type-json';import { type Manifest } from 'twenty-shared/application';@@ -103,6 +109,10 @@ export class MarketplaceAppDetailDTO {@Field(() => [String])galleryImages: string[];+ @IsInt()+ @Field(() => Int)+ installCount: number;+@IsOptional()@IsString()@Field({ nullable: true })diff --git a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.tsindex 46e0f8ac017..d415e21e63f 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-marketplace/marketplace-query.service.ts@@ -15,6 +15,7 @@ import {ApplicationRegistrationExceptionCode,} from 'src/engine/core-modules/application/application-registration/application-registration.exception';import { ApplicationRegistrationService } from 'src/engine/core-modules/application/application-registration/application-registration.service';+import { ApplicationService } from 'src/engine/core-modules/application/application.service';@Injectable()export class MarketplaceQueryService {@@ -22,6 +23,7 @@ export class MarketplaceQueryService {private readonly applicationRegistrationService: ApplicationRegistrationService,private readonly applicationRegistrationAssetUrlService: ApplicationRegistrationAssetUrlService,private readonly coreEntityCacheService: CoreEntityCacheService,+ private readonly applicationService: ApplicationService,) {}async findManyMarketplaceApps({@@ -80,14 +82,19 @@ export class MarketplaceQueryService {return registration;}- private toMarketplaceAppDetailDTO(+ private async toMarketplaceAppDetailDTO(registration: ApplicationRegistrationEntity,- ): MarketplaceAppDetailDTO {+ ): Promise<MarketplaceAppDetailDTO> {const galleryImageUrls =this.applicationRegistrationAssetUrlService.buildGalleryImageUrls(registration,);+ const installCount =+ await this.applicationService.countInstalledWorkspacesForApplication(+ registration.universalIdentifier,+ );+return {id: registration.id,universalIdentifier: registration.universalIdentifier,@@ -139,6 +146,7 @@ export class MarketplaceQueryService {undefined,screenshots: galleryImageUrls,galleryImages: galleryImageUrls,+ installCount,defaultRoleUniversalIdentifier:registration.manifest?.application?.defaultRoleUniversalIdentifier,roles: registration.manifest?.roles?.map((role) =>diff --git a/packages/twenty-server/src/engine/core-modules/application/application.service.ts b/packages/twenty-server/src/engine/core-modules/application/application.service.tsindex eab3acb47f0..c15715d6c8b 100644--- a/packages/twenty-server/src/engine/core-modules/application/application.service.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application.service.ts@@ -301,6 +301,20 @@ export class ApplicationService {});}+ async countInstalledWorkspacesForApplication(+ universalIdentifier: string,+ ): Promise<number> {+ return this.applicationRepository+ .createQueryBuilder('application')+ .innerJoin('application.workspace', 'workspace')+ .where('application.universalIdentifier = :universalIdentifier', {+ universalIdentifier,+ })+ .andWhere('application.deletedAt IS NULL')+ .andWhere('workspace.deletedAt IS NULL')+ .getCount();+ }+// Number of workspaces each external (non-LOCAL) application is installed in,// ranked by install count. Powers the "most installed apps" gauge/leaderboard.// LOCAL apps (built-in Standard/Custom) exist in every workspace and are notdiff --git a/packages/twenty-ui/src/icon/components/TablerIcons.ts b/packages/twenty-ui/src/icon/components/TablerIcons.tsindex d110593a4d1..fe768d8b998 100644--- a/packages/twenty-ui/src/icon/components/TablerIcons.ts+++ b/packages/twenty-ui/src/icon/components/TablerIcons.ts@@ -243,6 +243,7 @@ export {IconId,IconInbox,IconInfoCircle,+ IconInfoSquareRounded,IconItalic,IconJetpack,IconJson,@@ -362,6 +363,7 @@ export {IconSettingsAutomation,IconSettingsBolt,IconShare,+ IconShare2,IconShield,IconShoppingBag,IconSitemap,diff --git a/packages/twenty-ui/src/icon/index.ts b/packages/twenty-ui/src/icon/index.tsindex 261f7715944..dace5325359 100644--- a/packages/twenty-ui/src/icon/index.ts+++ b/packages/twenty-ui/src/icon/index.ts@@ -298,6 +298,7 @@ export {IconId,IconInbox,IconInfoCircle,+ IconInfoSquareRounded,IconItalic,IconJetpack,IconJson,@@ -417,6 +418,7 @@ export {IconSettingsAutomation,IconSettingsBolt,IconShare,+ IconShare2,IconShield,IconShoppingBag,IconSitemap,