mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-29 19:10:19 +03:00
changed the createdByName to Twenty(Sample data). (#7424)
I changed the createdByName from' system' to 'Twenty(Sample Data)'. --------- Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
parent
2f223f3294
commit
ae2bd66f45
@ -4,6 +4,7 @@ import {
|
||||
IconCsv,
|
||||
IconGmail,
|
||||
IconGoogleCalendar,
|
||||
IconRobot,
|
||||
IconSettingsAutomation,
|
||||
IconUserCircle,
|
||||
} from 'twenty-ui';
|
||||
@ -52,5 +53,12 @@ export const getSourceEnumOptions = (
|
||||
AvatarIcon: IconSettingsAutomation,
|
||||
isIconInverted: true,
|
||||
},
|
||||
{
|
||||
id: 'SYSTEM',
|
||||
name: 'System',
|
||||
isSelected: selectedItemIds.includes('SYSTEM'),
|
||||
AvatarIcon: IconRobot,
|
||||
isIconInverted: true,
|
||||
},
|
||||
];
|
||||
};
|
||||
|
@ -7,6 +7,7 @@ import {
|
||||
IconCalendar,
|
||||
IconCsv,
|
||||
IconGmail,
|
||||
IconRobot,
|
||||
} from 'twenty-ui';
|
||||
|
||||
type ActorDisplayProps = Partial<FieldActorValue> & {
|
||||
@ -29,12 +30,15 @@ export const ActorDisplay = ({
|
||||
return IconGmail;
|
||||
case 'CALENDAR':
|
||||
return IconCalendar;
|
||||
case 'SYSTEM':
|
||||
return IconRobot;
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
}, [source]);
|
||||
|
||||
const isIconInverted = source === 'API' || source === 'IMPORT';
|
||||
const isIconInverted =
|
||||
source === 'API' || source === 'IMPORT' || source === 'SYSTEM';
|
||||
|
||||
return (
|
||||
<AvatarChip
|
||||
|
@ -12,6 +12,7 @@ export enum FieldActorSource {
|
||||
API = 'API',
|
||||
IMPORT = 'IMPORT',
|
||||
MANUAL = 'MANUAL',
|
||||
SYSTEM = 'SYSTEM',
|
||||
}
|
||||
|
||||
export const actorCompositeType: CompositeType = {
|
||||
|
@ -1,5 +1,7 @@
|
||||
import { EntityManager } from 'typeorm';
|
||||
|
||||
import { FieldActorSource } from 'src/engine/metadata-modules/field-metadata/composite-types/actor.composite-type';
|
||||
|
||||
export const AIRBNB_ID = 'c776ee49-f608-4a77-8cc8-6fe96ae1e43f';
|
||||
export const QONTO_ID = 'f45ee421-8a3e-4aa5-a1cf-7207cc6754e1';
|
||||
export const STRIPE_ID = '1f70157c-4ea5-4d81-bc49-e1401abfbb94';
|
||||
@ -43,7 +45,7 @@ export const companyPrefillData = async (
|
||||
addressAddressCountry: 'United States',
|
||||
employees: 5000,
|
||||
position: 1,
|
||||
createdBySource: 'MANUAL',
|
||||
createdBySource: FieldActorSource.SYSTEM,
|
||||
createdByWorkspaceMemberId: null,
|
||||
createdByName: 'System',
|
||||
},
|
||||
@ -59,7 +61,7 @@ export const companyPrefillData = async (
|
||||
addressAddressCountry: 'France',
|
||||
employees: 800,
|
||||
position: 2,
|
||||
createdBySource: 'MANUAL',
|
||||
createdBySource: FieldActorSource.SYSTEM,
|
||||
createdByWorkspaceMemberId: null,
|
||||
createdByName: 'System',
|
||||
},
|
||||
@ -75,7 +77,7 @@ export const companyPrefillData = async (
|
||||
addressAddressCountry: 'Ireland',
|
||||
employees: 8000,
|
||||
position: 3,
|
||||
createdBySource: 'MANUAL',
|
||||
createdBySource: FieldActorSource.SYSTEM,
|
||||
createdByWorkspaceMemberId: null,
|
||||
createdByName: 'System',
|
||||
},
|
||||
@ -91,7 +93,7 @@ export const companyPrefillData = async (
|
||||
addressAddressCountry: 'United States',
|
||||
employees: 800,
|
||||
position: 4,
|
||||
createdBySource: 'MANUAL',
|
||||
createdBySource: FieldActorSource.SYSTEM,
|
||||
createdByWorkspaceMemberId: null,
|
||||
createdByName: 'System',
|
||||
},
|
||||
@ -107,7 +109,7 @@ export const companyPrefillData = async (
|
||||
addressAddressCountry: 'United States',
|
||||
employees: 400,
|
||||
position: 5,
|
||||
createdBySource: 'MANUAL',
|
||||
createdBySource: FieldActorSource.SYSTEM,
|
||||
createdByWorkspaceMemberId: null,
|
||||
createdByName: 'System',
|
||||
},
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { EntityManager } from 'typeorm';
|
||||
|
||||
import { FieldActorSource } from 'src/engine/metadata-modules/field-metadata/composite-types/actor.composite-type';
|
||||
import {
|
||||
AIRBNB_ID,
|
||||
FIGMA_ID,
|
||||
@ -40,7 +41,7 @@ export const personPrefillData = async (
|
||||
avatarUrl:
|
||||
'https://twentyhq.github.io/placeholder-images/people/image-3.png',
|
||||
position: 1,
|
||||
createdBySource: 'MANUAL',
|
||||
createdBySource: FieldActorSource.SYSTEM,
|
||||
createdByWorkspaceMemberId: null,
|
||||
createdByName: 'System',
|
||||
phonesPrimaryPhoneNumber: '1234567890',
|
||||
@ -55,7 +56,7 @@ export const personPrefillData = async (
|
||||
avatarUrl:
|
||||
'https://twentyhq.github.io/placeholder-images/people/image-89.png',
|
||||
position: 2,
|
||||
createdBySource: 'MANUAL',
|
||||
createdBySource: FieldActorSource.SYSTEM,
|
||||
createdByWorkspaceMemberId: null,
|
||||
createdByName: 'System',
|
||||
phonesPrimaryPhoneNumber: '677118822',
|
||||
@ -70,7 +71,7 @@ export const personPrefillData = async (
|
||||
avatarUrl:
|
||||
'https://twentyhq.github.io/placeholder-images/people/image-47.png',
|
||||
position: 3,
|
||||
createdBySource: 'MANUAL',
|
||||
createdBySource: FieldActorSource.SYSTEM,
|
||||
createdByWorkspaceMemberId: null,
|
||||
createdByName: 'System',
|
||||
phonesPrimaryPhoneNumber: '987625341',
|
||||
@ -85,7 +86,7 @@ export const personPrefillData = async (
|
||||
avatarUrl:
|
||||
'https://twentyhq.github.io/placeholder-images/people/image-40.png',
|
||||
position: 4,
|
||||
createdBySource: 'MANUAL',
|
||||
createdBySource: FieldActorSource.SYSTEM,
|
||||
createdByWorkspaceMemberId: null,
|
||||
createdByName: 'System',
|
||||
phonesPrimaryPhoneNumber: '09882261',
|
||||
@ -100,7 +101,7 @@ export const personPrefillData = async (
|
||||
avatarUrl:
|
||||
'https://twentyhq.github.io/placeholder-images/people/image-68.png',
|
||||
position: 5,
|
||||
createdBySource: 'MANUAL',
|
||||
createdBySource: FieldActorSource.SYSTEM,
|
||||
createdByWorkspaceMemberId: null,
|
||||
createdByName: 'System',
|
||||
phonesPrimaryPhoneNumber: '88226173',
|
||||
|
@ -139,10 +139,11 @@ export {
|
||||
IconPilcrow,
|
||||
IconPlayerPlay,
|
||||
IconPlayerStop,
|
||||
IconPower,
|
||||
IconPlaylistAdd,
|
||||
IconPlaystationSquare,
|
||||
IconPlug,
|
||||
IconPlus,
|
||||
IconPower,
|
||||
IconPresentation,
|
||||
IconProgressCheck,
|
||||
IconPuzzle,
|
||||
@ -154,6 +155,7 @@ export {
|
||||
IconReload,
|
||||
IconRepeat,
|
||||
IconRestore,
|
||||
IconRobot,
|
||||
IconRocket,
|
||||
IconRotate,
|
||||
IconRotate2,
|
||||
@ -183,8 +185,7 @@ export {
|
||||
IconVideo,
|
||||
IconWand,
|
||||
IconWorld,
|
||||
IconX,
|
||||
IconPlaylistAdd,
|
||||
IconX
|
||||
} from '@tabler/icons-react';
|
||||
|
||||
export type { TablerIconsProps } from '@tabler/icons-react';
|
||||
|
Loading…
Reference in New Issue
Block a user