Feat/generic editable board card (#1089)

* Fixed BoardColumnMenu

* Fixed naming

* Optimized board loading

* Added GenericEditableField

* Introduce GenericEditableField for BoardCards

* remove logs

* delete unused files

* fix stories

---------

Co-authored-by: corentin <corentin@twenty.com>
This commit is contained in:
Lucas Bordeau
2023-08-09 05:08:37 +02:00
committed by GitHub
parent 77d356f78a
commit 3666980ccc
103 changed files with 1551 additions and 922 deletions

View File

@ -2,7 +2,15 @@ import { PipelineProgress, User } from '../../generated/graphql';
type MockedPipelineProgress = Pick<
PipelineProgress,
'id' | 'amount' | 'closeDate' | 'companyId' | 'pipelineStageId'
| 'id'
| 'amount'
| 'closeDate'
| 'companyId'
| 'pipelineStageId'
| 'probability'
| 'pointOfContact'
| 'pointOfContactId'
| 'personId'
> & {
accountOwner: Pick<
User,
@ -32,6 +40,10 @@ export const mockedPipelineProgressData: Array<MockedPipelineProgress> = [
companyId: '0',
accountOwner: accountOwner,
pipelineStageId: 'another-pipeline-stage-1',
probability: null,
pointOfContact: null,
pointOfContactId: null,
personId: null,
},
{
id: 'fe256b39-3ec3-4fe7-8998-b76aa0bfb600',
@ -40,6 +52,10 @@ export const mockedPipelineProgressData: Array<MockedPipelineProgress> = [
amount: 7,
closeDate: '2021-10-01T00:00:00.000Z',
accountOwner,
probability: null,
pointOfContact: null,
pointOfContactId: null,
personId: null,
},
{
id: '4a886c90-f4f2-4984-8222-882ebbb905d6',
@ -48,5 +64,9 @@ export const mockedPipelineProgressData: Array<MockedPipelineProgress> = [
closeDate: '2021-10-01T00:00:00.000Z',
accountOwner,
pipelineStageId: 'fe256b39-3ec3-4fe3-8998-b76aa0bfb600',
probability: null,
pointOfContact: null,
pointOfContactId: null,
personId: null,
},
];