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