Refactor command menu items deprecated code (#19508)

- Removes the intermediate `CommandMenuItemConfig` /
`CommandConfigContext` / `CommandMenuItemDisplay` abstraction layers,
replacing them with a single `CommandMenuItemRenderer` that renders
directly from the command menu items from the backend
- Eliminates the server-items/ subdirectory by moving its contents
(hooks/, contexts/, states/, display/, edit/) up into the parent
command-menu-item/ module, removing an unnecessary nesting level.
This commit is contained in:
Raphaël Bosi
2026-04-10 11:28:27 +02:00
committed by GitHub
parent f13e7e01fe
commit 4b3a46d953
132 changed files with 1376 additions and 2723 deletions
@@ -1,26 +0,0 @@
import { type IconComponent } from 'twenty-ui/display';
export enum CommandType {
Navigate = 'Navigate',
Create = 'Create',
StandardAction = 'StandardAction',
WorkflowRun = 'WorkflowRun',
Fallback = 'Fallback',
}
export enum CommandScope {
Global = 'Global',
RecordSelection = 'RecordSelection',
Object = 'Object',
}
export type Command = {
id: string;
to?: string;
label: string;
description?: string;
type?: CommandType;
scope?: CommandScope;
Icon?: IconComponent;
hotKeys?: string[];
onCommandClick?: () => void;
};