When exporting a kanban we should export the kanban's main field (#6444)

This PR was created by [GitStart](https://gitstart.com/) to address the
requirements from this ticket:
[TWNTY-6046](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-6046).
This ticket was imported from:
[TWNTY-6046](https://github.com/twentyhq/twenty/issues/6046)

 --- 

### Description

- We are getting the `kanbanFieldMetadataNameState` , get the column
data, and if there is data and the use is on the Kanban view we add the
data to the result

### Refs

#6046

### Demo

<https://jam.dev/c/96f16211-40e4-4b49-a6f5-88f0692fb47a>

Fixes #6046

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com>
Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
gitstart-app[bot]
2024-08-09 10:23:06 +02:00
committed by GitHub
parent f2cc385710
commit a2a5ab488c
7 changed files with 416 additions and 3 deletions

View File

@ -1,9 +1,10 @@
import { CaptchaDriverType } from '~/generated/graphql';
import { ClientConfig } from '~/generated-metadata/graphql';
import { CaptchaDriverType } from '~/generated/graphql';
export const mockedClientConfig: ClientConfig = {
signInPrefilled: true,
signUpDisabled: false,
chromeExtensionId: 'MOCKED_EXTENSION_ID',
debugMode: false,
authProviders: {
google: true,

View File

@ -6,6 +6,8 @@ import {
User,
Workspace,
WorkspaceActivationStatus,
WorkspaceMemberDateFormatEnum,
WorkspaceMemberTimeFormatEnum,
} from '~/generated/graphql';
type MockedUser = Pick<
@ -85,6 +87,9 @@ export const mockedWorkspaceMemberData: WorkspaceMember = {
updatedAt: '2023-04-26T10:23:42.33625+00:00',
userId: '2603c1f9-0172-4ea6-986c-eeaccdf7f4cf',
userEmail: 'charles@test.com',
dateFormat: WorkspaceMemberDateFormatEnum.DayFirst,
timeFormat: WorkspaceMemberTimeFormatEnum.Hour_24,
timeZone: 'America/New_York',
};
export const mockedUserData: MockedUser = {