New WorkerConfigurationField type for corpus exports

Erwan Rouchet
2025-11-27T10:33:33Z

https://redmine.teklia.com/issues/12393

Requires backend#1978

The new `corpus_export` type should be declared in the `FieldTypeOptions` of `src/types/workerConfiguration.ts`. It cannot have a default value, cannot be a list, and maps t...

https://redmine.teklia.com/issues/12393

Requires backend#1978 (closed)

The new corpus_export type should be declared in the FieldTypeOptions of src/types/workerConfiguration.ts. It cannot have a default value, cannot be a list, and maps to a UUID. The FIELD_TYPE_NAMES in config.ts should also be updated to add a display name for this field.

A new component for this field should be created in src/components/WorkerConfiguration/Fields/CorpusExportField.vue. In WorkerConfiguration/Fields/index.ts, FIELD_COMPONENTS should be updated to declare this new component.

The whole section of the ExportProcessModal.vue component dedicated to selecting an existing export or using the current project state can be moved into this field. If possible, the ExportProcessModal.vue should try to use this field even outside of the context of a WorkerConfiguration, so that the modal already gets somewhat simplified and the full switch to a modern configuration can be easier.