338 on opportunities page when i associate a new company to a pipelinestage its persisted in db (#339)
* feature: add navigation for opportunities * chore: add companies in pipeline seed * feature: make the board scrollable * feature: make the board scrollable vertically * feature: remove board container * feature: fix newButton style * feature: add onClickNew method on board * feature: call backend with hardcoded id for new pipeline progressable * feature: refetch board on click on new * feature: use pipelineProgressId instead of entityId to ensure unicity of itemKey * feature: avoid rerender of columns when refetching
This commit is contained in:
@ -8,7 +8,7 @@ export const seedPipelines = async (prisma: PrismaClient) => {
|
||||
name: 'Sales pipeline',
|
||||
icon: '💰',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
pipelineProgressableType: 'Person',
|
||||
pipelineProgressableType: 'Company',
|
||||
},
|
||||
});
|
||||
|
||||
@ -84,8 +84,47 @@ export const seedPipelines = async (prisma: PrismaClient) => {
|
||||
id: 'twenty-fe256b39-3ec3-4fe7-8998-b76aa0bfb600',
|
||||
pipelineId: 'twenty-fe256b39-3ec3-4fe3-8997-b75aa0bfb400',
|
||||
pipelineStageId: 'twenty-fe256b39-3ec3-4fe3-8998-b76aa0bfb600',
|
||||
progressableType: 'Person',
|
||||
progressableId: 'twenty-755035db-623d-41fe-92e7-dd45b7c568e1',
|
||||
progressableType: 'Company',
|
||||
progressableId: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfa408',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
},
|
||||
});
|
||||
|
||||
await prisma.pipelineProgress.upsert({
|
||||
where: { id: 'twenty-4a886c90-f4f2-4984-8222-882ebbb905d6' },
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-4a886c90-f4f2-4984-8222-882ebbb905d6',
|
||||
pipelineId: 'twenty-fe256b39-3ec3-4fe3-8997-b75aa0bfb400',
|
||||
pipelineStageId: 'twenty-fe256b39-3ec3-4fe4-8998-b76aa0bfb600',
|
||||
progressableType: 'Company',
|
||||
progressableId: 'twenty-118995f3-5d81-46d6-bf83-f7fd33ea6102',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
},
|
||||
});
|
||||
|
||||
await prisma.pipelineProgress.upsert({
|
||||
where: { id: 'twenty-af92f3eb-d51d-4528-9b97-b8f132865b00' },
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-af92f3eb-d51d-4528-9b97-b8f132865b00',
|
||||
pipelineId: 'twenty-fe256b39-3ec3-4fe3-8997-b75aa0bfb400',
|
||||
pipelineStageId: 'twenty-fe256b39-3ec3-4fe5-8998-b76aa0bfb600',
|
||||
progressableType: 'Company',
|
||||
progressableId: 'twenty-04b2e9f5-0713-40a5-8216-82802401d33e',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
},
|
||||
});
|
||||
|
||||
await prisma.pipelineProgress.upsert({
|
||||
where: { id: 'twenty-08369b1a-acdb-43d6-95f9-67ac7436941a' },
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-08369b1a-acdb-43d6-95f9-67ac7436941a',
|
||||
pipelineId: 'twenty-fe256b39-3ec3-4fe3-8997-b75aa0bfb400',
|
||||
pipelineStageId: 'twenty-fe256b39-3ec3-4fe5-8998-b76aa0bfb600',
|
||||
progressableType: 'Company',
|
||||
progressableId: 'twenty-460b6fb1-ed89-413a-b31a-962986e67bb4',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user