From c992be1694ce38cc6493adc95341ebff6ac5055a Mon Sep 17 00:00:00 2001 From: Guillim Date: Fri, 20 Dec 2024 18:15:02 +0100 Subject: [PATCH 1/3] Workspace logo is not visible (#9174) Fixing "Workspace logo is not visible in the navbar" report issue from @Weiko --- .../components/NavigationDrawer.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx index eed58ea01fda..75c645db2245 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx @@ -111,15 +111,15 @@ export const NavigationDrawer = ({ onMouseEnter={handleHover} onMouseLeave={handleMouseLeave} > - {isSettingsDrawer && title - ? !isMobile && - : logo && ( - - )} + {isSettingsDrawer && title ? ( + !isMobile && + ) : ( + + )} {children} From 03f89791b6262a596bcc6c1412a0074e3583b3c3 Mon Sep 17 00:00:00 2001 From: Weiko Date: Fri, 20 Dec 2024 18:18:56 +0100 Subject: [PATCH 2/3] Add upgrade 0.35 command module (#9175) Moving commands from 0.40 to 0.35 since they should be ready for 0.35. --- .../database/commands/database-command.module.ts | 4 ++-- ...-phone-calling-code-create-column.command.ts} | 5 +---- ...5-phone-calling-code-migrate-data.command.ts} | 2 +- .../0-35-record-position-backfill.command.ts} | 2 +- .../0-35-upgrade-version.command.ts} | 14 +++++++------- .../0-35-upgrade-version.module.ts} | 16 ++++++++-------- ...0-35-view-group-no-value-backfill.command.ts} | 2 +- 7 files changed, 21 insertions(+), 24 deletions(-) rename packages/twenty-server/src/database/commands/upgrade-version/{0-40/0-40-phone-calling-code-create-column.command.ts => 0-35/0-35-phone-calling-code-create-column.command.ts} (95%) rename packages/twenty-server/src/database/commands/upgrade-version/{0-40/0-40-phone-calling-code-migrate-data.command.ts => 0-35/0-35-phone-calling-code-migrate-data.command.ts} (99%) rename packages/twenty-server/src/database/commands/upgrade-version/{0-40/0-40-record-position-backfill.command.ts => 0-35/0-35-record-position-backfill.command.ts} (96%) rename packages/twenty-server/src/database/commands/upgrade-version/{0-40/0-40-upgrade-version.command.ts => 0-35/0-35-upgrade-version.command.ts} (86%) rename packages/twenty-server/src/database/commands/upgrade-version/{0-40/0-40-upgrade-version.module.ts => 0-35/0-35-upgrade-version.module.ts} (84%) rename packages/twenty-server/src/database/commands/upgrade-version/{0-40/0-40-view-group-no-value-backfill.command.ts => 0-35/0-35-view-group-no-value-backfill.command.ts} (98%) diff --git a/packages/twenty-server/src/database/commands/database-command.module.ts b/packages/twenty-server/src/database/commands/database-command.module.ts index 1ab5b849f46b..e25e01cdb03c 100644 --- a/packages/twenty-server/src/database/commands/database-command.module.ts +++ b/packages/twenty-server/src/database/commands/database-command.module.ts @@ -10,7 +10,7 @@ import { ConfirmationQuestion } from 'src/database/commands/questions/confirmati import { UpgradeTo0_32CommandModule } from 'src/database/commands/upgrade-version/0-32/0-32-upgrade-version.module'; import { UpgradeTo0_33CommandModule } from 'src/database/commands/upgrade-version/0-33/0-33-upgrade-version.module'; import { UpgradeTo0_34CommandModule } from 'src/database/commands/upgrade-version/0-34/0-34-upgrade-version.module'; -import { UpgradeTo0_40CommandModule } from 'src/database/commands/upgrade-version/0-40/0-40-upgrade-version.module'; +import { UpgradeTo0_35CommandModule } from 'src/database/commands/upgrade-version/0-35/0-35-upgrade-version.module'; import { TypeORMModule } from 'src/database/typeorm/typeorm.module'; import { BillingSubscription } from 'src/engine/core-modules/billing/entities/billing-subscription.entity'; import { FeatureFlagEntity } from 'src/engine/core-modules/feature-flag/feature-flag.entity'; @@ -52,7 +52,7 @@ import { WorkspaceSyncMetadataModule } from 'src/engine/workspace-manager/worksp UpgradeTo0_32CommandModule, UpgradeTo0_33CommandModule, UpgradeTo0_34CommandModule, - UpgradeTo0_40CommandModule, + UpgradeTo0_35CommandModule, FeatureFlagModule, ], providers: [ diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-create-column.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-phone-calling-code-create-column.command.ts similarity index 95% rename from packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-create-column.command.ts rename to packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-phone-calling-code-create-column.command.ts index 4a26e8ec36a4..21fe77a6de86 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-create-column.command.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-phone-calling-code-create-column.command.ts @@ -15,7 +15,6 @@ import { FieldMetadataEntity, FieldMetadataType, } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity'; -import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; import { WorkspaceMetadataVersionService } from 'src/engine/metadata-modules/workspace-metadata-version/services/workspace-metadata-version.service'; import { generateMigrationName } from 'src/engine/metadata-modules/workspace-migration/utils/generate-migration-name.util'; import { @@ -30,7 +29,7 @@ import { WorkspaceMigrationRunnerService } from 'src/engine/workspace-manager/wo import { isDefined } from 'src/utils/is-defined'; @Command({ - name: 'upgrade-0.40:phone-calling-code-create-column', + name: 'upgrade-0.35:phone-calling-code-create-column', description: 'Create the callingCode column', }) export class PhoneCallingCodeCreateColumnCommand extends ActiveWorkspacesCommandRunner { @@ -39,8 +38,6 @@ export class PhoneCallingCodeCreateColumnCommand extends ActiveWorkspacesCommand protected readonly workspaceRepository: Repository, @InjectRepository(FieldMetadataEntity, 'metadata') private readonly fieldMetadataRepository: Repository, - @InjectRepository(ObjectMetadataEntity, 'metadata') - private readonly objectMetadataRepository: Repository, private readonly workspaceMigrationService: WorkspaceMigrationService, private readonly workspaceMigrationFactory: WorkspaceMigrationFactory, private readonly workspaceMigrationRunnerService: WorkspaceMigrationRunnerService, diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-migrate-data.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-phone-calling-code-migrate-data.command.ts similarity index 99% rename from packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-migrate-data.command.ts rename to packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-phone-calling-code-migrate-data.command.ts index 6359bb1a00e6..67bf658918d0 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-migrate-data.command.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-phone-calling-code-migrate-data.command.ts @@ -54,7 +54,7 @@ const isCallingCode = (callingCode: string): boolean => { }; @Command({ - name: 'upgrade-0.40:phone-calling-code-migrate-data', + name: 'upgrade-0.35:phone-calling-code-migrate-data', description: 'Add calling code and change country code with default one', }) export class PhoneCallingCodeMigrateDataCommand extends ActiveWorkspacesCommandRunner { diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-record-position-backfill.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-record-position-backfill.command.ts similarity index 96% rename from packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-record-position-backfill.command.ts rename to packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-record-position-backfill.command.ts index f0804e873077..7a342b920eb4 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-record-position-backfill.command.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-record-position-backfill.command.ts @@ -9,7 +9,7 @@ import { RecordPositionBackfillService } from 'src/engine/api/graphql/workspace- import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; @Command({ - name: 'upgrade-0.40:record-position-backfill', + name: 'upgrade-0.35:record-position-backfill', description: 'Backfill record position', }) export class RecordPositionBackfillCommand extends ActiveWorkspacesCommandRunner { diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-upgrade-version.command.ts similarity index 86% rename from packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command.ts rename to packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-upgrade-version.command.ts index e60b537bb398..7f0d7cdb08ba 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-upgrade-version.command.ts @@ -5,18 +5,18 @@ import { Repository } from 'typeorm'; import { ActiveWorkspacesCommandRunner } from 'src/database/commands/active-workspaces.command'; import { BaseCommandOptions } from 'src/database/commands/base.command'; -import { PhoneCallingCodeCreateColumnCommand } from 'src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-create-column.command'; -import { PhoneCallingCodeMigrateDataCommand } from 'src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-migrate-data.command'; -import { RecordPositionBackfillCommand } from 'src/database/commands/upgrade-version/0-40/0-40-record-position-backfill.command'; -import { ViewGroupNoValueBackfillCommand } from 'src/database/commands/upgrade-version/0-40/0-40-view-group-no-value-backfill.command'; +import { PhoneCallingCodeCreateColumnCommand } from 'src/database/commands/upgrade-version/0-35/0-35-phone-calling-code-create-column.command'; +import { PhoneCallingCodeMigrateDataCommand } from 'src/database/commands/upgrade-version/0-35/0-35-phone-calling-code-migrate-data.command'; +import { RecordPositionBackfillCommand } from 'src/database/commands/upgrade-version/0-35/0-35-record-position-backfill.command'; +import { ViewGroupNoValueBackfillCommand } from 'src/database/commands/upgrade-version/0-35/0-35-view-group-no-value-backfill.command'; import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; import { SyncWorkspaceMetadataCommand } from 'src/engine/workspace-manager/workspace-sync-metadata/commands/sync-workspace-metadata.command'; @Command({ - name: 'upgrade-0.40', - description: 'Upgrade to 0.40', + name: 'upgrade-0.35', + description: 'Upgrade to 0.35', }) -export class UpgradeTo0_40Command extends ActiveWorkspacesCommandRunner { +export class UpgradeTo0_35Command extends ActiveWorkspacesCommandRunner { constructor( @InjectRepository(Workspace, 'core') protected readonly workspaceRepository: Repository, diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.module.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-upgrade-version.module.ts similarity index 84% rename from packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.module.ts rename to packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-upgrade-version.module.ts index b19780ed8a17..aba95d1bb4d2 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.module.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-upgrade-version.module.ts @@ -1,11 +1,11 @@ import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; -import { PhoneCallingCodeCreateColumnCommand } from 'src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-create-column.command'; -import { PhoneCallingCodeMigrateDataCommand } from 'src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-migrate-data.command'; -import { RecordPositionBackfillCommand } from 'src/database/commands/upgrade-version/0-40/0-40-record-position-backfill.command'; -import { UpgradeTo0_40Command } from 'src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command'; -import { ViewGroupNoValueBackfillCommand } from 'src/database/commands/upgrade-version/0-40/0-40-view-group-no-value-backfill.command'; +import { PhoneCallingCodeCreateColumnCommand } from 'src/database/commands/upgrade-version/0-35/0-35-phone-calling-code-create-column.command'; +import { PhoneCallingCodeMigrateDataCommand } from 'src/database/commands/upgrade-version/0-35/0-35-phone-calling-code-migrate-data.command'; +import { RecordPositionBackfillCommand } from 'src/database/commands/upgrade-version/0-35/0-35-record-position-backfill.command'; +import { UpgradeTo0_35Command } from 'src/database/commands/upgrade-version/0-35/0-35-upgrade-version.command'; +import { ViewGroupNoValueBackfillCommand } from 'src/database/commands/upgrade-version/0-35/0-35-view-group-no-value-backfill.command'; import { RecordPositionBackfillModule } from 'src/engine/api/graphql/workspace-query-runner/services/record-position-backfill-module'; import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; import { FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity'; @@ -35,12 +35,12 @@ import { WorkspaceSyncMetadataCommandsModule } from 'src/engine/workspace-manage FieldMetadataModule, ], providers: [ - UpgradeTo0_40Command, - PhoneCallingCodeMigrateDataCommand, + UpgradeTo0_35Command, PhoneCallingCodeCreateColumnCommand, + PhoneCallingCodeMigrateDataCommand, WorkspaceMigrationFactory, RecordPositionBackfillCommand, ViewGroupNoValueBackfillCommand, ], }) -export class UpgradeTo0_40CommandModule {} +export class UpgradeTo0_35CommandModule {} diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-view-group-no-value-backfill.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-view-group-no-value-backfill.command.ts similarity index 98% rename from packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-view-group-no-value-backfill.command.ts rename to packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-view-group-no-value-backfill.command.ts index 63662563dd67..fabdf1154b7c 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-view-group-no-value-backfill.command.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-35/0-35-view-group-no-value-backfill.command.ts @@ -13,7 +13,7 @@ import { ViewGroupWorkspaceEntity } from 'src/modules/view/standard-objects/view import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.workspace-entity'; @Command({ - name: 'migrate-0.40:backfill-view-group-no-value', + name: 'migrate-0.35:backfill-view-group-no-value', description: 'Backfill view group no value', }) export class ViewGroupNoValueBackfillCommand extends ActiveWorkspacesCommandRunner { From 2651379ccc7c0c5694f39c4e8cbe1f3169e3a5d8 Mon Sep 17 00:00:00 2001 From: Samyak Piya <76403666+samyakpiya@users.noreply.github.com> Date: Sun, 22 Dec 2024 03:24:27 -0500 Subject: [PATCH 3/3] Add automatic company logo fetching during workspace creation (#9158) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #9151 ## Description This PR automatically sets a workspace's logo based on the user's work email domain during signup. When a user creates a new workspace using their work email (e.g., @airbnb.com), the system will fetch and set their company logo from twenty-icons.com as the default workspace logo. ## Implementation Details - Added a new `CompanyEnrichmentService` to handle company-related data enrichment - Created a modular architecture that supports future enrichment features (e.g., company name, details) - Integrated with existing work email detection - Maintains user ability to override the logo later ## Testing https://github.com/user-attachments/assets/f7855c99-462a-4053-9e52-29649e954275 I tested the following scenarios: - Signing up with a work email (e.g., @company.com) → Logo is automatically set - Signing up with a personal email (e.g., @gmail.com) → No logo is set - User can still upload a custom logo after automatic setting ## Technical Notes - Uses existing `isWorkEmail` utility - Structured for future extensibility (additional company data enrichment) - No breaking changes to existing functionality --------- Co-authored-by: Félix Malfait --- .vscode/twenty.code-workspace | 4 ++++ packages/twenty-server/jest-integration.config.ts | 1 + .../core-modules/auth/services/sign-in-up.service.ts | 12 ++++++++++-- .../services/create-company.service.ts | 3 ++- packages/twenty-server/tsconfig.json | 3 ++- .../src/constants/TwentyCompaniesBaseUrl.ts | 1 + .../src/constants/TwentyIconsBaseUrl.ts | 1 + packages/twenty-shared/src/index.ts | 2 ++ 8 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 packages/twenty-shared/src/constants/TwentyCompaniesBaseUrl.ts create mode 100644 packages/twenty-shared/src/constants/TwentyIconsBaseUrl.ts diff --git a/.vscode/twenty.code-workspace b/.vscode/twenty.code-workspace index 38d8b34543a6..57d28b0450b7 100644 --- a/.vscode/twenty.code-workspace +++ b/.vscode/twenty.code-workspace @@ -24,6 +24,10 @@ "name": "packages/twenty-emails", "path": "../packages/twenty-emails" }, + { + "name": "packages/twenty-shared", + "path": "../packages/twenty-shared" + }, { "name": "packages/twenty-server", "path": "../packages/twenty-server" diff --git a/packages/twenty-server/jest-integration.config.ts b/packages/twenty-server/jest-integration.config.ts index 5cf3ce61f371..cbb53051d1fd 100644 --- a/packages/twenty-server/jest-integration.config.ts +++ b/packages/twenty-server/jest-integration.config.ts @@ -21,6 +21,7 @@ const jestConfig: JestConfigWithTsJest = { }), '^test/(.*)$': '/test/$1', 'twenty-emails': '/../twenty-emails/dist/index.js', + 'twenty-shared': '/../twenty-shared/dist/index.js', }, fakeTimers: { enableGlobally: true, diff --git a/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts b/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts index f11b02d7dcd4..2f9a3beb8b2c 100644 --- a/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts +++ b/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts @@ -4,6 +4,7 @@ import { InjectRepository } from '@nestjs/typeorm'; import { isDefined } from 'class-validator'; import FileType from 'file-type'; +import { TWENTY_ICONS_BASE_URL } from 'twenty-shared'; import { Repository } from 'typeorm'; import { v4 } from 'uuid'; @@ -23,17 +24,19 @@ import { EnvironmentService } from 'src/engine/core-modules/environment/environm import { FileUploadService } from 'src/engine/core-modules/file/file-upload/services/file-upload.service'; import { OnboardingService } from 'src/engine/core-modules/onboarding/onboarding.service'; import { UserWorkspaceService } from 'src/engine/core-modules/user-workspace/user-workspace.service'; +import { UserService } from 'src/engine/core-modules/user/services/user.service'; import { User } from 'src/engine/core-modules/user/user.entity'; import { userValidator } from 'src/engine/core-modules/user/user.validate'; import { WorkspaceInvitationService } from 'src/engine/core-modules/workspace-invitation/services/workspace-invitation.service'; +import { WorkspaceAuthProvider } from 'src/engine/core-modules/workspace/types/workspace.type'; import { Workspace, WorkspaceActivationStatus, } from 'src/engine/core-modules/workspace/workspace.entity'; import { workspaceValidator } from 'src/engine/core-modules/workspace/workspace.validate'; +import { getDomainNameByEmail } from 'src/utils/get-domain-name-by-email'; import { getImageBufferFromUrl } from 'src/utils/image'; -import { WorkspaceAuthProvider } from 'src/engine/core-modules/workspace/types/workspace.type'; -import { UserService } from 'src/engine/core-modules/user/services/user.service'; +import { isWorkEmail } from 'src/utils/is-work-email'; export type SignInUpServiceInput = { email: string; @@ -333,12 +336,17 @@ export class SignInUpService { } } + const logo = isWorkEmail(email) + ? `${TWENTY_ICONS_BASE_URL}/${getDomainNameByEmail(email)}` + : undefined; + const workspaceToCreate = this.workspaceRepository.create({ subdomain: await this.domainManagerService.generateSubdomain(), displayName: '', domainName: '', inviteHash: v4(), activationStatus: WorkspaceActivationStatus.PENDING_CREATION, + logo, }); const workspace = await this.workspaceRepository.save(workspaceToCreate); diff --git a/packages/twenty-server/src/modules/contact-creation-manager/services/create-company.service.ts b/packages/twenty-server/src/modules/contact-creation-manager/services/create-company.service.ts index bed7f1509bb5..a8388ec2d285 100644 --- a/packages/twenty-server/src/modules/contact-creation-manager/services/create-company.service.ts +++ b/packages/twenty-server/src/modules/contact-creation-manager/services/create-company.service.ts @@ -2,6 +2,7 @@ import { Injectable } from '@nestjs/common'; import axios, { AxiosInstance } from 'axios'; import uniqBy from 'lodash.uniqby'; +import { TWENTY_COMPANIES_BASE_URL } from 'twenty-shared'; import { DeepPartial, EntityManager, ILike } from 'typeorm'; import { FieldActorSource } from 'src/engine/metadata-modules/field-metadata/composite-types/actor.composite-type'; @@ -25,7 +26,7 @@ export class CreateCompanyService { constructor(private readonly twentyORMGlobalManager: TwentyORMGlobalManager) { this.httpService = axios.create({ - baseURL: 'https://twenty-companies.com', + baseURL: TWENTY_COMPANIES_BASE_URL, }); } diff --git a/packages/twenty-server/tsconfig.json b/packages/twenty-server/tsconfig.json index 272cbdde673c..fe1ccbd7a8f5 100644 --- a/packages/twenty-server/tsconfig.json +++ b/packages/twenty-server/tsconfig.json @@ -27,7 +27,8 @@ "paths": { "src/*": ["packages/twenty-server/src/*"], "test/*": ["packages/twenty-server/test/*"], - "twenty-emails": ["packages/twenty-emails/dist"] + "twenty-emails": ["packages/twenty-emails/dist"], + "twenty-shared": ["packages/twenty-shared/dist"] } }, "ts-node": { diff --git a/packages/twenty-shared/src/constants/TwentyCompaniesBaseUrl.ts b/packages/twenty-shared/src/constants/TwentyCompaniesBaseUrl.ts new file mode 100644 index 000000000000..544ae6e730a0 --- /dev/null +++ b/packages/twenty-shared/src/constants/TwentyCompaniesBaseUrl.ts @@ -0,0 +1 @@ +export const TWENTY_COMPANIES_BASE_URL = 'https://twenty-companies.com'; diff --git a/packages/twenty-shared/src/constants/TwentyIconsBaseUrl.ts b/packages/twenty-shared/src/constants/TwentyIconsBaseUrl.ts new file mode 100644 index 000000000000..82e460872b52 --- /dev/null +++ b/packages/twenty-shared/src/constants/TwentyIconsBaseUrl.ts @@ -0,0 +1 @@ +export const TWENTY_ICONS_BASE_URL = 'https://twenty-icons.com'; diff --git a/packages/twenty-shared/src/index.ts b/packages/twenty-shared/src/index.ts index 7665115392af..894818340dcc 100644 --- a/packages/twenty-shared/src/index.ts +++ b/packages/twenty-shared/src/index.ts @@ -1 +1,3 @@ +export * from './constants/TwentyCompaniesBaseUrl'; +export * from './constants/TwentyIconsBaseUrl'; export * from './utils/image/getImageAbsoluteURI';