Make assemblies commands available for release (#6498)
* Make assemblies commands available for release Fixes #6497 * Break insert out of the group, new icon, add Clone disabled * Add rotate thanks to @franknoirot * Update relevant snapshots * Trigger CI
This commit is contained in:
@ -10,7 +10,6 @@ import {
|
||||
isEditingExistingSketch,
|
||||
pipeHasCircle,
|
||||
} from '@src/machines/modelingMachine'
|
||||
import { IS_NIGHTLY_OR_DEBUG } from '@src/routes/utils'
|
||||
|
||||
export type ToolbarModeName = 'modeling' | 'sketching'
|
||||
|
||||
@ -339,28 +338,28 @@ export const toolbarConfig: Record<ToolbarModeName, ToolbarMode> = {
|
||||
},
|
||||
'break',
|
||||
{
|
||||
id: 'modules',
|
||||
array: [
|
||||
id: 'insert',
|
||||
onClick: () =>
|
||||
commandBarActor.send({
|
||||
type: 'Find and select command',
|
||||
data: { name: 'Insert', groupId: 'code' },
|
||||
}),
|
||||
hotkey: 'I',
|
||||
icon: 'import',
|
||||
status: 'available',
|
||||
disabled: () => !isDesktop(),
|
||||
title: 'Insert',
|
||||
description: 'Insert from a file in the current project directory',
|
||||
links: [
|
||||
{
|
||||
id: 'insert',
|
||||
onClick: () =>
|
||||
commandBarActor.send({
|
||||
type: 'Find and select command',
|
||||
data: { name: 'Insert', groupId: 'code' },
|
||||
}),
|
||||
hotkey: 'I',
|
||||
icon: 'import',
|
||||
status: DEV || IS_NIGHTLY_OR_DEBUG ? 'available' : 'kcl-only',
|
||||
disabled: () => !isDesktop(),
|
||||
title: 'Insert',
|
||||
description: 'Insert from a file in the current project directory',
|
||||
links: [
|
||||
{
|
||||
label: 'API docs',
|
||||
url: 'https://zoo.dev/docs/kcl/import',
|
||||
},
|
||||
],
|
||||
label: 'API docs',
|
||||
url: 'https://zoo.dev/docs/kcl/import',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'transform',
|
||||
array: [
|
||||
{
|
||||
id: 'translate',
|
||||
onClick: () =>
|
||||
@ -368,7 +367,8 @@ export const toolbarConfig: Record<ToolbarModeName, ToolbarMode> = {
|
||||
type: 'Find and select command',
|
||||
data: { name: 'Translate', groupId: 'modeling' },
|
||||
}),
|
||||
status: DEV || IS_NIGHTLY_OR_DEBUG ? 'available' : 'kcl-only',
|
||||
icon: 'move',
|
||||
status: 'available',
|
||||
title: 'Translate',
|
||||
description: 'Apply a translation to a solid or sketch.',
|
||||
links: [
|
||||
@ -385,7 +385,8 @@ export const toolbarConfig: Record<ToolbarModeName, ToolbarMode> = {
|
||||
type: 'Find and select command',
|
||||
data: { name: 'Rotate', groupId: 'modeling' },
|
||||
}),
|
||||
status: DEV || IS_NIGHTLY_OR_DEBUG ? 'available' : 'kcl-only',
|
||||
icon: 'rotate',
|
||||
status: 'available',
|
||||
title: 'Rotate',
|
||||
description: 'Apply a rotation to a solid or sketch.',
|
||||
links: [
|
||||
@ -395,6 +396,20 @@ export const toolbarConfig: Record<ToolbarModeName, ToolbarMode> = {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'clone',
|
||||
onClick: () => undefined,
|
||||
status: 'kcl-only',
|
||||
title: 'Clone',
|
||||
icon: 'patternLinear3d', // TODO: add a clone icon
|
||||
description: 'Clone a solid or sketch.',
|
||||
links: [
|
||||
{
|
||||
label: 'API docs',
|
||||
url: 'https://zoo.dev/docs/kcl/clone',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
'break',
|
||||
|
Reference in New Issue
Block a user