Add custom objects to command menu search + use ilike for notes search (#8564)
In this PR - Re-introduce previously used search based on "ILIKE" queries for search on notes since the tsvector search with json text is not working correctly (@charlesBochet) - Add search on custom objects in Command Menu bar (closes https://github.com/twentyhq/twenty/issues/8522) https://github.com/user-attachments/assets/0cc064cf-889d-4f2c-8747-6d8670f35a39
This commit is contained in:
@ -0,0 +1,37 @@
|
||||
export enum CoreObjectNamePlural {
|
||||
Activity = 'activities',
|
||||
ActivityTarget = 'activityTargets',
|
||||
ApiKey = 'apiKeys',
|
||||
Attachment = 'attachments',
|
||||
Blocklist = 'blocklists',
|
||||
CalendarChannel = 'calendarChannels',
|
||||
CalendarEvent = 'calendarEvents',
|
||||
Comment = 'comments',
|
||||
Company = 'companies',
|
||||
ConnectedAccount = 'connectedAccounts',
|
||||
TimelineActivity = 'timelineActivities',
|
||||
Favorite = 'favorites',
|
||||
Message = 'messages',
|
||||
MessageChannel = 'messageChannels',
|
||||
MessageParticipant = 'messageParticipants',
|
||||
MessageThread = 'messageThreads',
|
||||
Note = 'notes',
|
||||
NoteTarget = 'noteTargets',
|
||||
Opportunity = 'opportunities',
|
||||
Person = 'people',
|
||||
Task = 'tasks',
|
||||
TaskTarget = 'taskTargets',
|
||||
View = 'views',
|
||||
ViewField = 'viewFields',
|
||||
ViewFilter = 'viewFilters',
|
||||
ViewFilterGroup = 'viewFilterGroups',
|
||||
ViewSort = 'viewSorts',
|
||||
ViewGroup = 'viewGroups',
|
||||
Webhook = 'webhooks',
|
||||
WorkspaceMember = 'workspaceMembers',
|
||||
MessageThreadSubscriber = 'messageThreadSubscribers',
|
||||
Workflow = 'workflows',
|
||||
MessageChannelMessageAssociation = 'messageChannelMessageAssociations',
|
||||
WorkflowVersion = 'workflowVersions',
|
||||
WorkflowRun = 'workflowRuns',
|
||||
}
|
||||
Reference in New Issue
Block a user