refactor(machines) : remove TypeMachine skeleton system, simplify machine creation
- Remove TypeEdit*, TypeInfoDisplay, MachineSkeletonSummary, MachineCreatePreview components - Remove machine-skeleton pages and type pages - Remove useMachineTypesApi, useMachineSkeletonEditor, useMachineCreateSelections composables - Add AddEntityToMachineModal for direct entity linking - Update machine detail/create pages for direct custom fields - Fix SearchSelect, category display, and ipartial search filters Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -412,9 +412,6 @@ export const buildMachinePrintContext = ({
|
||||
}
|
||||
|
||||
const machineBadges = []
|
||||
if (machine?.typeMachine?.category) {
|
||||
machineBadges.push(machine.typeMachine.category)
|
||||
}
|
||||
if (machine?.site?.name) {
|
||||
machineBadges.push(`Site: ${machine.site.name}`)
|
||||
}
|
||||
@@ -480,10 +477,8 @@ export const buildMachinePrintContext = ({
|
||||
id: machine?.id || null,
|
||||
name: machineName,
|
||||
description: machine?.description || '',
|
||||
typeDescription: machine?.typeMachine?.description || '',
|
||||
reference: machineReference,
|
||||
site: machine?.site?.name || '',
|
||||
category: machine?.typeMachine?.category || '',
|
||||
badges: machineBadges,
|
||||
constructeurs: machineConstructeurs,
|
||||
constructeur: machineConstructeurs[0] || null,
|
||||
|
||||
Reference in New Issue
Block a user