From 508252b14c7da18433cb76bc5aa8f73bbba5e62b Mon Sep 17 00:00:00 2001 From: Nabhag Motivaras <65061890+Nabhag8848@users.noreply.github.com> Date: Sun, 13 Oct 2024 23:07:39 +0530 Subject: [PATCH] fix: API ObjectMetadata labelSingular and labelPlural which eventually solves typo in dropdown (#7614) ## ISSUE - Closes #7478 ## Description - Fixes typo in dropdown + in general any apikeys label around. --- .../mock-data/generated/mock-metadata-query-result.ts | 6 +++--- .../api-key/standard-objects/api-key.workspace-entity.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts b/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts index a090fca9a7..45cf893bae 100644 --- a/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts +++ b/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts @@ -1868,9 +1868,9 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", "nameSingular": "apiKey", "namePlural": "apiKeys", - "labelSingular": "Api Key", - "labelPlural": "Api Keys", - "description": "An api key", + "labelSingular": "API Key", + "labelPlural": "API Keys", + "description": "An API key", "icon": "IconRobot", "isCustom": false, "isRemote": false, diff --git a/packages/twenty-server/src/modules/api-key/standard-objects/api-key.workspace-entity.ts b/packages/twenty-server/src/modules/api-key/standard-objects/api-key.workspace-entity.ts index ee70a31719..ff48d1f328 100644 --- a/packages/twenty-server/src/modules/api-key/standard-objects/api-key.workspace-entity.ts +++ b/packages/twenty-server/src/modules/api-key/standard-objects/api-key.workspace-entity.ts @@ -11,9 +11,9 @@ import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync @WorkspaceEntity({ standardId: STANDARD_OBJECT_IDS.apiKey, namePlural: 'apiKeys', - labelSingular: 'Api Key', - labelPlural: 'Api Keys', - description: 'An api key', + labelSingular: 'API Key', + labelPlural: 'API Keys', + description: 'An API key', icon: 'IconRobot', labelIdentifierStandardId: API_KEY_STANDARD_FIELD_IDS.name, })