feat: toggle board field visibilities (#1547)
Closes #1537, Closes #1539
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { companiesAvailableColumnDefinitions } from '@/companies/constants/companiesAvailableColumnDefinitions';
|
||||
import { pipelineAvailableFieldDefinitions } from '@/pipeline/constants/pipelineAvailableFieldDefinitions';
|
||||
import {
|
||||
Company,
|
||||
Favorite,
|
||||
@ -168,6 +169,19 @@ export const mockedCompanyBoardViews: View[] = [
|
||||
},
|
||||
];
|
||||
|
||||
export const mockedCompanyBoardCardFields =
|
||||
pipelineAvailableFieldDefinitions.map<Omit<ViewField, 'view'>>(
|
||||
(viewFieldDefinition) => ({
|
||||
__typename: 'ViewField',
|
||||
name: viewFieldDefinition.name,
|
||||
index: viewFieldDefinition.index,
|
||||
isVisible: true,
|
||||
key: viewFieldDefinition.key,
|
||||
objectId: 'company',
|
||||
viewId: mockedCompanyBoardViews[0].id,
|
||||
}),
|
||||
);
|
||||
|
||||
export const mockedCompanyTableViews: View[] = [
|
||||
{
|
||||
__typename: 'View',
|
||||
|
||||
Reference in New Issue
Block a user