refactor(command-menu-item): rename Actions to CommandMenuItem (#18489)
actions are being renamed to command menu item, they will be migrated to server and will be served as headless front components --------- Co-authored-by: Raphaël Bosi <71827178+bosiraphael@users.noreply.github.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { type Decorator } from '@storybook/react-vite';
|
||||
import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';
|
||||
|
||||
import { ActionMenuComponentInstanceContext } from '@/action-menu/states/contexts/ActionMenuComponentInstanceContext';
|
||||
import { getActionMenuIdFromRecordIndexId } from '@/action-menu/utils/getActionMenuIdFromRecordIndexId';
|
||||
import { CommandMenuComponentInstanceContext } from '@/command-menu/states/contexts/CommandMenuComponentInstanceContext';
|
||||
import { getCommandMenuIdFromRecordIndexId } from '@/command-menu-item/utils/getCommandMenuIdFromRecordIndexId';
|
||||
import { MAIN_CONTEXT_STORE_INSTANCE_ID } from '@/context-store/constants/MainContextStoreInstanceId';
|
||||
import { contextStoreCurrentViewIdComponentState } from '@/context-store/states/contextStoreCurrentViewIdComponentState';
|
||||
import { labelIdentifierFieldMetadataItemSelector } from '@/object-metadata/states/labelIdentifierFieldMetadataItemSelector';
|
||||
@@ -191,7 +191,7 @@ const InternalTableContextProviders = ({
|
||||
value={{
|
||||
onCloseTableCell: () => {},
|
||||
onOpenTableCell: () => {},
|
||||
onActionMenuDropdownOpened: () => {},
|
||||
onCommandMenuDropdownOpened: () => {},
|
||||
onMoveFocus: () => {},
|
||||
onMoveHoverToCurrentCell: () => {},
|
||||
}}
|
||||
@@ -235,9 +235,9 @@ export const RecordTableDecorator: Decorator = (Story, context) => {
|
||||
<RecordComponentInstanceContextsWrapper
|
||||
componentInstanceId={recordIndexId}
|
||||
>
|
||||
<ActionMenuComponentInstanceContext.Provider
|
||||
<CommandMenuComponentInstanceContext.Provider
|
||||
value={{
|
||||
instanceId: getActionMenuIdFromRecordIndexId(recordIndexId),
|
||||
instanceId: getCommandMenuIdFromRecordIndexId(recordIndexId),
|
||||
}}
|
||||
>
|
||||
<InternalTableContextProviders
|
||||
@@ -248,7 +248,7 @@ export const RecordTableDecorator: Decorator = (Story, context) => {
|
||||
/>
|
||||
<Story />
|
||||
</InternalTableContextProviders>
|
||||
</ActionMenuComponentInstanceContext.Provider>
|
||||
</CommandMenuComponentInstanceContext.Provider>
|
||||
</RecordComponentInstanceContextsWrapper>
|
||||
</ViewComponentInstanceContext.Provider>
|
||||
</RecordTableComponentInstanceContext.Provider>
|
||||
|
||||
Reference in New Issue
Block a user